Skip to content

Commit 19e407e

Browse files
authored
Update cn attribute too when changing first or last name (#616)
1 parent b9e0b12 commit 19e407e

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

templates/default/ldap/modify_user.ldif

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,8 @@ changetype: modify
4646
add: memberUid
4747
memberUid: {{ user.uid }}
4848
{% endif %}
49+
{% if user.firstname and user.lastname %}
50+
-
51+
replace: cn
52+
cn: {{ user.firstname }} {{ user.lastname }}
53+
{% endif %}

0 commit comments

Comments
 (0)