Re: LDAP - Undefined index errors

From: Date: Thu, 22 Feb 2001 17:43:13 +0000
Subject: Re: LDAP - Undefined index errors
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-5698@lists.php.net to get a copy of this message
I found my own answer... Problems: 1. I wasn't authenticating with enough rights to see certain fields. 2. I was getting the error if the field was empty. 3. I wasn't including all the fields in my search parameters. 4. You must use all lowercase when referring to fields. ie givenname, not givenName. ""Troy Moreland"" <tbmoreland@myrealbox.com> wrote in message news:973hp3$1sv$1@toye.p.sourceforge.net... > I am able to connect and get information from my directory now, thanks to a > lot of peoples help! :) > > I now have a problem returning certain fields. For example, I am able to > retrieve dn, surname, mail, and ou. I am NOT able to get givenName, > telephoneNumber, title and company. I get the following message on these > fields: > > Warning: Undefined index: givenName in c:\inetpub\wwwroot\php\ldap.php on > line 34 > > Line 34 in my code reads: > echo "given name entry is: ". $info[$i]["givenName"][0] . > "<br>"; > > I have lines similar to this one calling all of the above mentioned fields > and some work, some don't. > > Thanks in advance for you're help! > > Troy Moreland > > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net > For additional commands, e-mail: php-windows-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.windows (#5698) next »