note 23654 modified in function.ldap-connect by irchtml

From: Date: Thu, 04 Mar 2004 05:43:58 +0000
Subject: note 23654 modified in function.ldap-connect by irchtml
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-66223@lists.php.net to get a copy of this message
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 --was-- <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

« previous php.notes (#66223) next »