php-general Digest 27 Jan 2011 21:29:43 -0000 Issue 7155
Topics (messages 311059 through 311062):
Re: Pear Problems
311059 by: Adam Richardson
Re: [PHP-DB] 2nd Pair of eyes please
311060 by: Donovan Brooke
311061 by: Donovan Brooke
Re: ldap_add - Server is unwilling to peform
311062 by: CHARLES HUNT
Administrivia:
To subscribe to the digest, e-mail:
php-general-digest-subscr...@lists.php.net
To unsubscribe from the digest, e-mail:
php-general-digest-unsubscr...@lists.php.net
To post to the list, e-mail:
php-gene...@lists.php.net
----------------------------------------------------------------------
--- Begin Message ---
On Thu, Jan 27, 2011 at 1:01 AM, Ethan Rosenberg <eth...@earthlink.net>wrote:
> Dear List -
>
> I am executing the command pear list.
>
> This is what I get -
>
> ethan@rosenberg:/usr/bin$ pear list
> PHP: syntax error, unexpected '&' in /etc/php5/cli/php.ini on line 510
> Installed packages, channel pear.php.net:
> =========================================
> Package Version State
> Archive_Tar 1.3.7 stable
> Console_Getopt 1.2.3 stable
> PEAR 1.9.1 stable
> Structures_Graph 1.0.3 stable
> Validate_US 0.5.4 beta
> XML_Util 1.2.1 stable
> ethan@rosenberg:/usr/bin$
>
> This is line 510
>
> Default Value: E_ALL & ~E_NOTICE
That line should likely be commented out (it was probably originally
commented out and then somebody accidentally uncommented.) Most php.ini
files follow the convention (notice that there's no colon in the example):
some_name = some_value
Happy coding,
Adam
--
Nephtali: A simple, flexible, fast, and security-focused PHP framework
http://nephtaliproject.com
--- End Message ---
--- Begin Message ---
Hello,
to respond to some of the comments/questions..
No, it wasn't parsing anything... and yes, I put
ini_set('display_errors', 1);
error_reporting(E_ALL | E_STRICT);
at the top of the page.
(as well as there is a custom built PHP management app that
allows to turn on the display_errors.. which is apparently
done.)
Having said all that, this server config (of which I have very limited
access) does appear to shut down parsing
entirely more quickly than my dev machines that are set
as mentioned.
..usually not a problem (old hat in troubleshooting) and am nearing the
end of the this job... but yes, strange that small errors trigger
shutting down parsing entirely.
Daevid,
Lot's of misc. comments for not being able to spot my syntax issue and
not knowing the details of my project! ;-)
However, I will take a look some time at your wrapper for future reference.
Cheers,
Donovan (1 block of code at a time)
--
D Brooke
--- End Message ---
--- Begin Message ---
Oops, sorry, this was suppose to go to the PHP-DB list!
Ignore!
thx,
Donovan
--
D Brooke
--- End Message ---
--- Begin Message ---
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-gene...@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/
--- End Message ---