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"" <[EMAIL PROTECTED]> wrote in message
973hp3$1sv$[EMAIL PROTECTED]">news:973hp3$1sv$[EMAIL PROTECTED]...
> 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to