ispman/ispman-web/htdocs/control_panel index.cgi,1.10,1.11
| Newsgroups | gmane.comp.isp.ispman.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/ispman/ispman/ispman-web/htdocs/control_panel
In directory sc8-pr-cvs1:/tmp/cvs-serv25919a/ispman-web/htdocs/control_panel
Modified Files:
index.cgi
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: index.cgi
===================================================================
RCS file: /cvsroot/ispman/ispman/ispman-web/htdocs/control_panel/index.cgi,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- index.cgi 4 Jan 2004 18:56:14 -0000 1.10
+++ index.cgi 14 Jan 2004 22:49:46 -0000 1.11
@@ -29,7 +29,7 @@
require Net::LDAP;
import Net::LDAP;
- my $ldap = Net::LDAP->new($config->{'ldapHost'}) or die "$@";
+ my $ldap = Net::LDAP->new($config->{'ldapHost'},version=>$config->{'ldapVersion'}) or die "$@";
my $result=$ldap->bind( $dn, password => $cgi->param("pass"));
if ($result->code) {
# There was an error.
-------------------------------------------------------
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