Index: class.common.inc.php =================================================================== RCS file: /var/cvs/phpgroupware/phpgwapi/inc/class.common.inc.php,v retrieving revision 1.123.2.9.2.28 diff -u -r1.123.2.9.2.28 class.common.inc.php --- class.common.inc.php 2 Mar 2004 22:25:04 -0000 1.123.2.9.2.28 +++ class.common.inc.php 30 Mar 2004 15:37:17 -0000 @@ -240,7 +240,13 @@ } // connect to ldap server - if (! $ds = ldap_connect($host)) + $location = explode(':', $host); + $host = $location[0]; + if (! $port = intval($location[1])) + { + $port = '389'; + } + if (! $ds = ldap_connect($host, $port)) { /* log does not exist in setup(, yet) */ if(is_object($GLOBALS['phpgw']->log))