Commit f3590035 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

ldap auth: Don't try to set profile fields before creating user record (bug #649409)

Signed-off-by: default avatarRichard Mansfield <>
parent f56d9ffc
......@@ -119,7 +119,7 @@ class AuthLdap extends Auth {
$ldap_login = @ldap_bind($ldapconnection, $ldap_user_dn, $password);
if ($ldap_login) {
if ($update) {
if ($user->id && $update) {
// Define ldap attributes
$ldapattributes = array();
$ldapattributes['firstname'] = $this->config['firstnamefield'];
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment