[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: Newbie question - insufficient access
Is your `$rootpw' set ?
On Fri, 31 May 2002, Benoit LEROYER wrote:
> 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