1
0
mirror of https://github.com/samba-team/samba.git synced 2025-09-11 09:44:19 +03:00

r9522: Give better error-message when "NDS Universal Password" change fails.

Guenther
This commit is contained in:
Günther Deschner
2005-08-23 13:58:05 +00:00
committed by Gerald (Jerry) Carter
parent 8d34756191
commit df90ea016a

View File

@@ -714,9 +714,13 @@ int pdb_nds_set_password(
if (rc == LDAP_SUCCESS) { if (rc == LDAP_SUCCESS) {
DEBUG(5,("NDS Universal Password changed for user %s\n", object_dn)); DEBUG(5,("NDS Universal Password changed for user %s\n", object_dn));
} else { } else {
char *ld_error = NULL;
ldap_get_option(ld, LDAP_OPT_ERROR_STRING, &ld_error);
/* This will fail if Universal Password is not enabled for the user's context */ /* This will fail if Universal Password is not enabled for the user's context */
DEBUG(3,("NDS Universal Password could not be changed for user %s: %d\n", DEBUG(3,("NDS Universal Password could not be changed for user %s: %s (%s)\n",
object_dn, rc)); object_dn, ldap_err2string(rc), ld_error?ld_error:"unknown"));
SAFE_FREE(ld_error);
} }
/* Set eDirectory Password */ /* Set eDirectory Password */