I'm trying to extract the networkAddress attribute from eDirectory using
PHP code on a SUSE server.

The code only returns part of the IP address: specifically, the part up to
any zero in the IP address.
eg:for someone logged in to, I can correctly display,
but for someone logged in to, my code displays either 10.2 or depending how I write it.

I think it may be a problem with PHP since an LDAP browser I have seems to
give the entire IP address, and code I've written using Windows & ASP
seems to be OK.

Does anybody know anything about this? Or, even better, know a solution!

Our versions of everything are fairly up-to-date. I've searched this
forum, but couldn't find anything.

Paul Green