Re: [PHP] ldap_add - Server is unwilling to peform
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 To: CHARLES HUNT 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 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 -- 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
Re: [PHP] ldap_add - Server is unwilling to peform
Do I need to be using SSL? Not sure how to implement that. (if you can't tell I'm pretty new to PHP) - Original Message From: Daniel Brown To: CHARLES HUNT 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 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 -- 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
Re: [PHP] ldap_add - Server is unwilling to peform
You could add a line in to your code: include "ldap-blue-pill"; That should fix any performance issues ;) (note, I did try posting earlier with a much funnier reply, but the email was rejected because of a certain 'v' word!) Thanks, Ash http://www.ashleysheridan.co.uk - Reply message - From: "CHARLES HUNT" Date: Wed, Jan 26, 2011 15:53 Subject: [PHP] ldap_add - Server is unwilling to peform To: "Daniel Brown" Cc: Win 2000 Active Directory. I'll give ldap_mod_add a shot. - Original Message From: Daniel Brown To: CHARLES HUNT 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 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 -- 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
Re: [PHP] ldap_add - Server is unwilling to peform
It seems ldap_mod_add is for adding attributes to a dn that is already there. I get the error: "Modify: No such object in..." - Original Message From: Daniel Brown To: CHARLES HUNT 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 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 -- 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
Re: [PHP] ldap_add - Server is unwilling to peform
Win 2000 Active Directory. I'll give ldap_mod_add a shot. - Original Message From: Daniel Brown To: CHARLES HUNT 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 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 -- 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
Re: [PHP] ldap_add - Server is unwilling to peform
On Wed, Jan 26, 2011 at 10:17, CHARLES HUNT 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 -- 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