Getting LDAP attribute values

From: Date: Tue, 20 Feb 2001 21:56:50 +0000
Subject: Getting LDAP attribute values
Groups: php.general 
Request: Send a blank email to php-general+get-40819@lists.php.net to get a copy of this message
I'm trying to read some LDAP entries from a Novell LDAPv3 server on NetWare 5.1. Here's a piece of my code. <snip> $base = "ou=Corp, o=PMX"; $filter = "sn=*"; $attrib = array("lastLoginTime", "sn", "mail", "telephoneNumber", "homeDirectory"); // Search surname entry $sr=ldap_search($ds, $base, $filter, $attrib); $info = ldap_get_entries($ds, $sr); </snip> I can get the values for sn and mail but can't get lastLoginTime, telephoneNumber, or homeDirectory. These are valid LDAP attributes as defined by Novell. Novell developer support told me this. "These are operational attributes. For a list of operational attributes see http://developer.novell.com/ndk/doc/docui/index.htm#../ndslib/schm_enu/data/ hotadinr.htm Operational attributes are not automatically returned in search results; they must be requested by name in the search operation." Does anyone have any ideas? I'm doing an authenticated bind and am using an account with full rights to the tree. Thanks, Pat

« previous php.general (#40819) next »