summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2006-06-15 16:09:31 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:17:28 -0500
commite942ca4e0a2a28ad5132abb2bf165f064d792c44 (patch)
treefa03e2b9ea1270f41cfc5375424a4dd7151fe915 /source3
parent22b52b818b9a137c0dcc86d170736b22ceddf7b7 (diff)
downloadsamba-e942ca4e0a2a28ad5132abb2bf165f064d792c44.tar.gz
samba-e942ca4e0a2a28ad5132abb2bf165f064d792c44.tar.bz2
samba-e942ca4e0a2a28ad5132abb2bf165f064d792c44.zip
r16261: Smaller fixes for net ads password.
Guenther (This used to be commit 689ae22c80a890278610d9ada1eb4fa5e37bd5ce)
Diffstat (limited to 'source3')
-rw-r--r--source3/utils/net_ads.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/utils/net_ads.c b/source3/utils/net_ads.c
index e82eece0f9..0393644494 100644
--- a/source3/utils/net_ads.c
+++ b/source3/utils/net_ads.c
@@ -1472,7 +1472,7 @@ static int net_ads_password(int argc, const char **argv)
/* use the realm so we can eventually change passwords for users
in realms other than default */
- if (!(ads = ads_init(realm, NULL, NULL))) {
+ if (!(ads = ads_init(realm, opt_workgroup, NULL))) {
return -1;
}
@@ -1496,7 +1496,7 @@ static int net_ads_password(int argc, const char **argv)
ret = kerberos_set_password(ads->auth.kdc_server, auth_principal,
auth_password, user, new_password, ads->auth.time_offset);
if (!ADS_ERR_OK(ret)) {
- d_fprintf(stderr, "Password change failed :-( ...\n");
+ d_fprintf(stderr, "Password change failed: %s\n", ads_errstr(ret));
ads_destroy(&ads);
return -1;
}