[Date Prev][Date Next] [Chronological] [Thread] [Top]

Newbie question - insufficient access



I use PHp to modify a ldap directory

syntax :

$server = "ldap://benzecri"; ;
$rootdn = "cn=ldap_admin, o=gide, c=net"
$ds=ldap_connect($server);
$r=ldap_bind($ds,$rootdn,$rootpw);

$entry["cn"] = "Leroyer Benoit" ;
$entry["sn"] = "Benoit" ;
$entry["mail"][0] = "benrit@gide.net" ;
$entry["objectclass"] = "person" ;
$r=ldap_modify($ds, "cn=Leroyer Benoit, o=gide, c=net",$entry);
echo "Erreur : ".ldap_error($ds);

Error--> Insuffisient access

Can somebody help me ?



--
------------------------------------------
Benoit LEROYER - G.I.D.E (benoit@gide.net)
Tél : 02.40.89.92.87
Web : http://www.gide.net
------------------------------------------