note 96933 rejected from function.ldap-add by danbrown
| From: | danbrown@php.net | Date: | Tue, 23 Mar 2010 20:33:57 +0000 |
| Subject: | note 96933 rejected from function.ldap-add by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-167332@lists.php.net to get a copy of this message | ||
Note Submitter: robert at langebo dot se
----
ldap_bind($ds, "admin@domain.local", "secret")
$info["CN"] = "johjon";
$info["sAMAccountName"] = "johjon";
$info["sn"] = "Jones";
$info["mail"] = "jonj@example.com";
$info["givenName"] = "John";
$info["objectclass"][0] = "top";
$info["objectclass"][1] = "person";
$info["objectclass"][2] = "organizationalPerson";
$info["objectclass"][3] = "user";
$info["userPassword"] = "secret";
$info["userAccountControl"] = "544";
ldap_add($ds, "cn=johjon, ou=test, dc=domain, dc=local", $info);
I run this against Windows 2003 Server. It works aside from two things:
1. It won't set password.
2. It won't set login name.
Anyone who can help?