note 23654 added to function.ldap-connect

From: Date: Wed, 24 Jul 2002 11:05:28 +0000
Subject: note 23654 added to function.ldap-connect
Groups: php.notes 
Request: Send a blank email to php-notes+get-33485@lists.php.net to get a copy of this message
<p>Note that hostname can be a space-separated list of LDAP host names. This is very useful for failover; if the first ldap host is down, ldap_connect will ask the second LDAP host. Of course, you _must_ have LDAP replicates before doing this. :) Read the LDAP API documentation for more information. This can also be useful, apart from failover, for LDAP load balancing. Just use a random generator function that will return a different space-separated list every time. This is because the first host in the list is always tried first. Be careful when doing LDAP writes; be sure to always connect to your master host when you are about to modify the database, so that the replicates will get the changes as expected. Alexandros Vellis -- http://www.php.net/manual/en/function.ldap-connect.php http://master.php.net/manage/user-notes.php?action=edit+23654 http://master.php.net/manage/user-notes.php?action=delete+23654 http://master.php.net/manage/user-notes.php?action=reject+23654

« previous php.notes (#33485) next »