Skip to content

Commit 8771dd5

Browse files
bryank-cssimonLeary42
authored andcommitted
add gecos field
1 parent e614cdc commit 8771dd5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

resources/lib/UnityUser.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ public function init($send_mail = true)
7171
$ldapUserEntry->setAttribute("uid", $this->uid);
7272
$ldapUserEntry->setAttribute("givenname", $this->getFirstname());
7373
$ldapUserEntry->setAttribute("sn", $this->getLastname());
74+
$ldapUserEntry->setAttribute("gecos", "{$this->getFirstname()} {$this->getLastname()}");
7475
$ldapUserEntry->setAttribute("mail", $this->getMail());
7576
$ldapUserEntry->setAttribute("o", $this->getOrg());
7677
$ldapUserEntry->setAttribute("homedirectory", self::HOME_DIR . $this->uid);

0 commit comments

Comments
 (0)