Honor the "port" setting again, by properly detecting when there isn't a port number given in the URI. --- nss_ldap/ldap-nss.c 2007-11-02 15:05:29.000000000 -0400 +++ nss_ldap/ldap-nss.c 2007-11-02 15:05:25.000000000 -0400 @@ -1016,7 +1016,7 @@ do_init_session (LDAP ** ld, const char /* we should be looking for the second instance to find the port number */ if (p != NULL) { - p = strchr (p, ':'); + p = strchr (p + 1, ':'); } #ifdef HAVE_LDAP_INITIALIZE