Update of /cvsroot/perl-ldap/website
In directory usw-pr-cvs1:/tmp/cvs-serv609/website
Modified Files:
FAQ.html
Log Message:
Added text about how to simulate server failover.
Index: FAQ.html
===================================================================
RCS file: /cvsroot/perl-ldap/website/FAQ.html,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- FAQ.html 2001/08/26 22:14:37 1.7
+++ FAQ.html 2001/12/17 16:50:02 1.8
@@ -112,6 +112,7 @@
<LI><A HREF="#How_do_I_add_an_ACI_ACL_entry_to">How do I add an ACI/ACL entry to a directory server with</A>
<LI><A HREF="#How_do_I_avoid_file_type_and_dat">How do I avoid file type and data type miss-matching when loading</A>
<LI><A HREF="#How_do_I_create_a_Microsoft_Exch">How do I create a Microsoft Exchange user.</A>
+ <LI><A HREF="#How_can_I_simiulate_server_failo">How can I simiulate server failover.</A>
</UL>
<LI><A HREF="#Using_X_509_certificates_">Using X.509 certificates.</A>
@@ -626,7 +627,7 @@
<DT><STRONG><A NAME="item_URI">URI::ldap</A></STRONG><DD>
<P>
This module is optional. You only need to install URI::ldap if you are
-going to need to parse ldap referrals. <A HREF="/Net/LDAP|Net/LDAP.html">Net::LDAP|Net::LDAP</A> does not do this automatically yet, so this module is not used by
+going to need to parse ldap referrals. <A HREF="/Net/LDAP.html">Net::LDAP</A> does not do this automatically yet, so this module is not used by
perl-ldap.
<P>
@@ -688,7 +689,7 @@
<H2><A NAME="How_can_I_tell_when_the_server_r">How can I tell when the server returns an error, bind() always returns
true ?</A></H2>
<P>
-Most methods in Net::LDAP return a <A HREF="/Net/LDAP/Message|Net/LDAP/Message.html">Net::LDAP::Message|Net::LDAP::Message</A>
+Most methods in Net::LDAP return a <A HREF="/Net/LDAP/Message.html">Net::LDAP::Message</A>
object, or a sub-class of that. This object will hold the results from the
server, including the result code.
@@ -738,14 +739,14 @@
<P>
<CODE>$mesg</CODE> is a search object container. It is a reference blessed
into the
-<A HREF="/Net/LDAP/Search|Net/LDAP/Search.html">Net::LDAP::Search|Net::LDAP::Search</A> package. By calling methods on this object you can obtain information about
+<A HREF="/Net/LDAP/Search.html">Net::LDAP::Search</A> package. By calling methods on this object you can obtain information about
the result and also the individual entries.
<P>
The first thing to check is if the search was successful. This is done with
with the method $mesg->code. This method will return the status code
that the server returned. A success will yield a zero value, but there are
-other values, some of which could also be considered a success. See <A HREF="/Net/LDAP/Constant|Net/LDAP/Constant.html">Net::LDAP::Constant|Net::LDAP::Constant</A>
+other values, some of which could also be considered a success. See <A HREF="/Net/LDAP/Constant.html">Net::LDAP::Constant</A>
@@ -783,7 +784,7 @@
</PRE>
<P>
In each case <CODE>$entry</CODE> is an entry object container. It is a
-reference blessed into the <A HREF="/Net/LDAP/Entry|Net/LDAP/Entry.html">Net::LDAP::Entry|Net::LDAP::Entry</A> package. By calling methods on this object you can obtain information about
+reference blessed into the <A HREF="/Net/LDAP/Entry.html">Net::LDAP::Entry</A> package. By calling methods on this object you can obtain information about
the entry.
<P>
@@ -1402,6 +1403,27 @@
</PRE>
<P>
<HR>
+<H2><A NAME="How_can_I_simiulate_server_failo">How can I simiulate server failover.</A></H2>
+<P>
+Perl-LDAP does not do server failover, however there are several
+programming options for getting around this situation.
+
+<P>
+Here is one possible solution.
+
+<P>
+<PRE> unless ( $ldaps =
+ Net::LDAPS->new($ldapserverone,
+ port=>636,timeout=>5) )
+ {
+ $ldaps = Net::LDAPS->new($ldapservertwo,
+ port=>636,timeout=>20) ||
+ return
+ "Can't connect to $ldapserverone or $ldapservertwo via LDAPS: $@";
+ }
+</PRE>
+<P>
+<HR>
<H1><A NAME="Using_X_509_certificates_">Using X.509 certificates.</A></H1>
<P>
<HR>
@@ -1539,12 +1561,11 @@
HREF="http://www.java.sun.com/jndi/">http://www.java.sun.com/jndi/</A>
<P>
-Eine deutsche LDAP Website<br>
-A german LDAP Website<br>
-<A HREF="http://verzeichnisdienst.de/ldap/Perl/index.html">http://verzeichnisdienst.de/ldap/Perl/index.html</a>
+Eine deutsche LDAP Website A german LDAP Website <A
+HREF="http://verzeichnisdienst.de/ldap/Perl/index.html">http://verzeichnisdienst.de/ldap/Perl/index.html</A>
-<P>
+<P>
The 2 following URLs deal mainly with Microsoft's Active Directory.
<P>
|