ispman/lib/ISPMan LDAP.pm,1.75,1.76

[email protected]
Newsgroups gmane.comp.isp.ispman.cvs
Message-ID <[email protected]>
Update of /cvsroot/ispman/ispman/lib/ISPMan
In directory sc8-pr-cvs1:/tmp/cvs-serv25919a/lib/ISPMan

Modified Files:
	LDAP.pm 
Log Message:
This patch adds a new configuration parameter, ldapVersion. The parameter defaults to ldap v3, as most servers used today support this. The behaviour is defined in ispman.conf using the configuration parameter ldapVersion.
(supplied by Tarjei Huse)


Index: LDAP.pm
===================================================================
RCS file: /cvsroot/ispman/ispman/lib/ISPMan/LDAP.pm,v
retrieving revision 1.75
retrieving revision 1.76
diff -u -d -r1.75 -r1.76
--- LDAP.pm	4 Jan 2004 18:56:15 -0000	1.75
+++ LDAP.pm	14 Jan 2004 22:49:46 -0000	1.76
@@ -98,7 +98,7 @@
 
    if  (!$LDAP || $reconnect) {
    	#if ($LDAP=Net::LDAP->new($self->{'host'} , onerror => \&LDAPERROR)  ){
-        if ($LDAP=Net::LDAP->new($self->{'host'})  ){
+        if ($LDAP=Net::LDAP->new($self->{'host'},version=>$self->{'Config'}->{'ldapVersion'})  ){
            $self->ldap_bind();
         } else {
            print STDERR "Cannot make a connection to LDAP server";




-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.