Mise à jour ldap
This commit is contained in:
parent
a28ff7bfe1
commit
c01e7c3482
@ -103,7 +103,7 @@ class Contact
|
|||||||
|
|
||||||
if (defined('MAIN_MODULE_LDAP') && MAIN_MODULE_LDAP)
|
if (defined('MAIN_MODULE_LDAP') && MAIN_MODULE_LDAP)
|
||||||
{
|
{
|
||||||
update_ldap($user);
|
$this->update_ldap($user);
|
||||||
}
|
}
|
||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
@ -158,7 +158,7 @@ class Contact
|
|||||||
$info["objectclass"][1] = "inetOrgPerson";
|
$info["objectclass"][1] = "inetOrgPerson";
|
||||||
$info["objectclass"][2] = "phpgwContact"; // compatibilite egroupware
|
$info["objectclass"][2] = "phpgwContact"; // compatibilite egroupware
|
||||||
|
|
||||||
$info['uidnumber'] = $id;
|
$info['uidnumber'] = $this->id;
|
||||||
|
|
||||||
$info['phpgwTz'] = 0;
|
$info['phpgwTz'] = 0;
|
||||||
$info['phpgwMailType'] = 'INTERNET';
|
$info['phpgwMailType'] = 'INTERNET';
|
||||||
@ -182,6 +182,7 @@ class Contact
|
|||||||
if (! ldap_add($ds, $dn, $info))
|
if (! ldap_add($ds, $dn, $info))
|
||||||
{
|
{
|
||||||
$this->error[0] = ldap_err2str(ldap_errno($ds));
|
$this->error[0] = ldap_err2str(ldap_errno($ds));
|
||||||
|
var_dump($info);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user