[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Newbie question - insufficient access
- To: openldap-software@OpenLDAP.org
- Subject: Newbie question - insufficient access
- From: Benoit LEROYER <benoit@gide.net>
- Date: Fri, 31 May 2002 12:24:27 +0200
- User-agent: Mozilla/5.0 (X11; U; Linux i686; fr-FR; rv:0.9.4) Gecko/20011126 Netscape6/6.2.1
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
------------------------------------------