summaryrefslogtreecommitdiffstats
path: root/source/passdb/pdb_nds.c
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2005-08-23 13:58:05 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:01:11 -0500
commitdf90ea016a1e5b48ad5731f9bee3764cf5478bc8 (patch)
tree7e4bc2028f7a55dbcc4f758a6b22e0a357a21856 /source/passdb/pdb_nds.c
parent8d347561919ded19b1e7096aceb119c66f461c61 (diff)
downloadsamba-df90ea016a1e5b48ad5731f9bee3764cf5478bc8.tar.gz
samba-df90ea016a1e5b48ad5731f9bee3764cf5478bc8.tar.xz
samba-df90ea016a1e5b48ad5731f9bee3764cf5478bc8.zip
r9522: Give better error-message when "NDS Universal Password" change fails.
Guenther
Diffstat (limited to 'source/passdb/pdb_nds.c')
-rw-r--r--source/passdb/pdb_nds.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/source/passdb/pdb_nds.c b/source/passdb/pdb_nds.c
index 0b1d39a81bb..3e5f8d1b930 100644
--- a/source/passdb/pdb_nds.c
+++ b/source/passdb/pdb_nds.c
@@ -714,9 +714,13 @@ int pdb_nds_set_password(
if (rc == LDAP_SUCCESS) {
DEBUG(5,("NDS Universal Password changed for user %s\n", object_dn));
} 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 */
- DEBUG(3,("NDS Universal Password could not be changed for user %s: %d\n",
- object_dn, rc));
+ DEBUG(3,("NDS Universal Password could not be changed for user %s: %s (%s)\n",
+ object_dn, ldap_err2string(rc), ld_error?ld_error:"unknown"));
+ SAFE_FREE(ld_error);
}
/* Set eDirectory Password */