I can  add user through ldap server by using command line. and my ldif file
is like this :
dn: uid=pang,dc=graduate,dc=com
uid: pang
cn: Sayumporn Darunwanna
sn: Darunwanna
userPassword: pang
objectClass: uidobject
objectClass: person

But when I try to write php script. I can bind to ldap server. Then I
prepare data like this:
$info["uid"]="beau";
$info["cn"]="beau";
$info["sn"]="beau";
$info["userPassword"]="beau";
$info["objectClass"]="uidobject";
$info["objectClass"]="person";
And using
$a=ldap_add($ds, "uid=beau, dc=graduate, dc=com", $info);
but it's an error
Waring LDAP: add operation could not be complete in. <my php file>

_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to