Skip to content
Snippets Groups Projects
Commit 1f574040 authored by Andreas Gohr's avatar Andreas Gohr
Browse files

fixed port assignment in ldap backend

darcs-hash:20060307191915-7ad00-70d98478ebfd00fdbab4901bb254b96d20287348.gz
parent e08860f3
No related branches found
No related tags found
No related merge requests found
......@@ -273,8 +273,8 @@ class auth_ldap extends auth_basic {
function _openLDAP(){
if($this->con) return true; // connection already established
if(!$this->cnf['port']) $port = 636;
$this->con = @ldap_connect($this->cnf['server'],$this->cnf['port']);
$port = ($this->cnf['port']) ? $this->cnf['port'] : 636;
$this->con = @ldap_connect($this->cnf['server'],$port);
if(!$this->con){
msg("LDAP: couldn't connect to LDAP server",-1);
return false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment