I finally got it to create the user.  I had to remove the "memberOf" 
attributes. 
 
Apparently you have to add the User to the Group rather than the Group to the 
User. 
Now I need to figure out how to enable the user and set the password. 
As well as adding the User to the desired Groups.


----- Original Message ----
From: Daniel Brown <danbr...@php.net>
To: CHARLES HUNT <ch5...@yahoo.com>
Cc: php-general@lists.php.net
Sent: Wed, January 26, 2011 9:39:32 AM
Subject: Re: [PHP] ldap_add - Server is unwilling to peform

On Wed, Jan 26, 2011 at 10:17, CHARLES HUNT <ch5...@yahoo.com> wrote:
> Hello-
> I am trying to add create a user account with the ldap_add function.  However 
I
> get the error below when it is invoked.  Does anyone have ideas what may be
> causing this error?  What I can look into?  Anything would be helpful.
>
> Warning: ldap_add() [function.ldap-add]: Add: Server is unwilling to perform
> in C:\xampp\htdocs\Infrastructure\al_ldap.php on line 354

    What LDAP server are you using (Active Directory, openLDAP,
iPlanet, eDirectory, et cetera)?  You may want to try swapping out
ldap_add() for ldap_mod_add().

        http://php.net/ldap_mod_add


-- 
</Daniel P. Brown>
Network Infrastructure Manager
Documentation, Webmaster Teams
http://www.php.net/


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to