mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
r16261: Smaller fixes for net ads password.
Guenther
This commit is contained in:
parent
95763b94f7
commit
689ae22c80
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user