add user to ldap using php

From: Date: Mon, 19 Feb 2001 01:26:27 +0000
Subject: add user to ldap using php
Groups: php.general 
Request: Send a blank email to php-general+get-40488@lists.php.net to get a copy of this message
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.

« previous php.general (#40488) next »