Allow users to set/update their display name in LDAP
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build is failing

This commit is contained in:
Râu Cao
2023-05-27 19:59:49 +02:00
parent 32d1992632
commit f74227fedb
9 changed files with 79 additions and 41 deletions

View File

@@ -0,0 +1,12 @@
module LdapManager
class UpdateDisplayName < LdapManagerService
def initialize(dn, display_name)
@dn = dn
@display_name = display_name
end
def call
replace_attribute @dn, :displayName, @display_name
end
end
end

View File

@@ -6,7 +6,7 @@ module LdapManager
end
def call
replace_attribute @dn, :mail, [ @address ]
replace_attribute @dn, :mail, @address
end
end
end