Re: LDAP trouble! Need help

From: Date: Thu, 21 Jun 2001 05:46:15 +0000
Subject: Re: LDAP trouble! Need help
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-54675@lists.php.net to get a copy of this message
Hei On Wed, Jun 20, 2001 at 03:04:06PM +0200, Stig-Ørjan Smelror wrote: > I have some problems while printing out values of attributes-types which > have "Equality" and/or "Substrings" values. > > Example: > > $get_values = "".$info[0]["title"][0]; # OK. (prints out the value > correct) > > $get_values = "".$info[0]["postalCode"][0]; # NOT OK. (prints out > nothing) > > the "title" and "postalCode" attributes are even in the same objectclass > (organizationalPerson), but > the "postalCode" attribute has Equality=caseignoreMatch and > Substrings=caseIgnoreSubstringsMatch ... The matching doesn't make any difference. I bet the reason is that you need to use "postalcode" rather than "postalCode" as index. It might be a good idea to do var_dump($info) to see what it contains. Stig

« previous php.general (#54675) next »