diff --git a/resources/lib/UnityUser.php b/resources/lib/UnityUser.php index aaf64675..a94df075 100644 --- a/resources/lib/UnityUser.php +++ b/resources/lib/UnityUser.php @@ -71,6 +71,7 @@ public function init($send_mail = true) $ldapUserEntry->setAttribute("uid", $this->uid); $ldapUserEntry->setAttribute("givenname", $this->getFirstname()); $ldapUserEntry->setAttribute("sn", $this->getLastname()); + $ldapUserEntry->setAttribute("gecos", "{$this->getFirstname()} {$this->getLastname()}"); $ldapUserEntry->setAttribute("mail", $this->getMail()); $ldapUserEntry->setAttribute("o", $this->getOrg()); $ldapUserEntry->setAttribute("homedirectory", self::HOME_DIR . $this->uid);