diff --git a/tasks/populate_webfinger_from_ldap.yml b/tasks/populate_webfinger_from_ldap.yml index 8791341..c4f9057 100644 --- a/tasks/populate_webfinger_from_ldap.yml +++ b/tasks/populate_webfinger_from_ldap.yml @@ -12,7 +12,7 @@ - uid - mail - memberOf - - displayName + - cn - givenName - sn register: ldap_users diff --git a/templates/user-template.json b/templates/user-template.json index 6fdf68d..a541df1 100644 --- a/templates/user-template.json +++ b/templates/user-template.json @@ -2,11 +2,10 @@ "subject" : "acct:{{ acct }}", "properties" : { - "http://packetizer.com/ns/name" : "{{ user.displayName }}" + "http://packetizer.com/ns/name" : "{{ user.cn }}" }, "aliases" : [ - "https://mastodon.libretic.fr/users/{{ user.uid | replace('.', '') }}" ], "links" :