This is code from a working script to add a user account to a Novell NDS
database via Novell's LDAPv3.
Hope this helps.
//connect to LDAP
$ds=ldap_connect("172.17.20.10"); // must be a valid LDAP server!
if (!$ds) {
echo "Connection to LDAP server failed";
exit();
}
//bind to LDAP
$r=ldap_bi
I can bind to ldap server successful but ldap add operation couldn't
complete.
>From: "Richard Lynch" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Subject: Re: [PHP] add user to ldap using php
>Date: Mon, 19 Feb 2001 02:13:16 -0600
>
> > $a=ldap
> $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.
I don't know much about LDAP:
Have you checked that $ds is a valid LDAP connection?
Can you get your own record out of LDAP using it?
Presumably LDAP has some n
3 matches
Mail list logo