diff options
author | Andreas Gohr <andi@splitbrain.org> | 2006-03-07 20:19:15 +0100 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2006-03-07 20:19:15 +0100 |
commit | 1f574040494630bf4bb5384fc049b3d830e9ea9b (patch) | |
tree | b1719e82270c82613b21fff6d01b608ebb77a1a4 | |
parent | e08860f378b1f7c64b7a3b664d7ba33bb894684e (diff) | |
download | rpg-1f574040494630bf4bb5384fc049b3d830e9ea9b.tar.gz rpg-1f574040494630bf4bb5384fc049b3d830e9ea9b.tar.bz2 |
fixed port assignment in ldap backend
darcs-hash:20060307191915-7ad00-70d98478ebfd00fdbab4901bb254b96d20287348.gz
-rw-r--r-- | inc/auth/ldap.class.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/auth/ldap.class.php b/inc/auth/ldap.class.php index 852634e3d..f30606379 100644 --- a/inc/auth/ldap.class.php +++ b/inc/auth/ldap.class.php @@ -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; |