note 16266 added to function.ldap-explode-dn

From: Date: Tue, 23 Oct 2001 08:02:52 +0000
Subject: note 16266 added to function.ldap-explode-dn
Groups: php.notes 
Request: Send a blank email to php-notes+get-19310@lists.php.net to get a copy of this message
Copying is much better than typing!!!! Just modify the constants. Best wishes (and thanX 4 this helpfull site), Bernd Schwaegerl Mueller-Knoche GmbH, Systemhaus fuer EDV-Loesungen # Example: $HOST = "Yourhostname"; $USER_DN = "Yourldapuser_dn"; $PWD = "Ldapuserpassword"; $BASE_DN = "o=Your_organisation"; $SEARCH_OBJECT="sn=YOUR_SEARCH_PERSON_OBJECTS_SN"; $ldap_handle=ldap_connect($HOST); $bind_result=ldap_bind($ldap_handle,$USER_DN,$PWD); $search_result=ldap_search($ldap_handle,$BASE_DN,$SEARCH_OBJECT); $result=ldap_get_entries($ldap_handle,$search_result); $result_array=ldap_get_entries($ldap_handle,$result); $whole_dn=$result_array[0]["dn"]; $dn_parts=ldap_explode_dn($whole_dn,0); -- http://www.php.net/manual/en/function.ldap-explode-dn.php http://master.php.net/manage/user-notes.php?action=edit+16266 http://master.php.net/manage/user-notes.php?action=delete+16266 http://master.php.net/manage/user-notes.php?action=reject+16266

« previous php.notes (#19310) next »