Author: gd Date: 2005-01-25 20:36:24 +0000 (Tue, 25 Jan 2005) New Revision: 4989
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=4989 Log: Display failed LDAP-server-uri. Guenther Modified: branches/SAMBA_3_0/source/lib/smbldap.c trunk/source/lib/smbldap.c Changeset: Modified: branches/SAMBA_3_0/source/lib/smbldap.c =================================================================== --- branches/SAMBA_3_0/source/lib/smbldap.c 2005-01-25 19:56:01 UTC (rev 4988) +++ branches/SAMBA_3_0/source/lib/smbldap.c 2005-01-25 20:36:24 UTC (rev 4989) @@ -855,7 +855,8 @@ ldap_get_option(ldap_state->ldap_struct, LDAP_OPT_ERROR_STRING, &ld_error); DEBUG(ldap_state->num_failures ? 2 : 0, - ("failed to bind to server with dn= %s Error: %s\n\t%s\n", + ("failed to bind to server %s with dn=\"%s\" Error: %s\n\t%s\n", + ldap_state->uri, ldap_dn ? ldap_dn : "(unknown)", ldap_err2string(rc), ld_error ? ld_error : "(unknown)")); SAFE_FREE(ld_error); Modified: trunk/source/lib/smbldap.c =================================================================== --- trunk/source/lib/smbldap.c 2005-01-25 19:56:01 UTC (rev 4988) +++ trunk/source/lib/smbldap.c 2005-01-25 20:36:24 UTC (rev 4989) @@ -855,7 +855,8 @@ ldap_get_option(ldap_state->ldap_struct, LDAP_OPT_ERROR_STRING, &ld_error); DEBUG(ldap_state->num_failures ? 2 : 0, - ("failed to bind to server with dn= %s Error: %s\n\t%s\n", + ("failed to bind to server %s with dn=\"%s\" Error: %s\n\t%s\n", + ldap_state->uri, ldap_dn ? ldap_dn : "(unknown)", ldap_err2string(rc), ld_error ? ld_error : "(unknown)")); SAFE_FREE(ld_error);