projects
/
mirror
/
userdir-ldap-cgi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make it work on lenny too
[mirror/userdir-ldap-cgi.git]
/
search.cgi
diff --git
a/search.cgi
b/search.cgi
index
648e9c6
..
ff99da3
100755
(executable)
--- a/
search.cgi
+++ b/
search.cgi
@@
-84,6
+84,7
@@
if (!$dosearch) {
# Now, we are ready to connect to the LDAP server.
$ldap = Net::LDAP->new($config{ldaphost}) || &Util::HTMLError($!);
# Now, we are ready to connect to the LDAP server.
$ldap = Net::LDAP->new($config{ldaphost}) || &Util::HTMLError($!);
+ &Util::UpgradeConnection($ldap) unless $config{usessl} eq 'False';
my $auth = 0;
my $mesg;
my $auth = 0;
my $mesg;