Fix another bug... seems to be working... ldap://root.openldap.org/

This commit is contained in:
Kurt Zeilenga 2000-05-11 01:12:48 +00:00
parent 560fe7ade0
commit f9411ca154
2 changed files with 5 additions and 3 deletions

View file

@ -106,7 +106,9 @@ int ldap_dn2domain(
return -5;
}
if( domain != NULL ) {
if( domain == NULL ) {
ndomain[0] = '\0';
} else {
strcat( ndomain, "." );
}
strcat( ndomain, dc );

View file

@ -76,8 +76,8 @@ dnssrv_back_request(
}
Statslog( LDAP_DEBUG_STATS,
"conn=%ld op=%d DNSSRV dn=\"%s\" domain=%d url=\"%s\"\n",
op->o_connid, op->o_opid, dn, domain, urls[0]->bv_val );
"conn=%ld op=%d DNSSRV p=%d dn=\"%s\" url=\"%s\"\n",
op->o_connid, op->o_opid, op->o_protocol, dn, urls[0]->bv_val );
Debug( LDAP_DEBUG_TRACE, "DNSSRV: dn=\"%s\" -> url=\"%s\"\n",
dn == NULL ? "" : dn,