diff options
author | Andrew Bartlett <abartlet@samba.org> | 2003-03-17 22:58:24 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2003-03-17 22:58:24 +0000 |
commit | 83a580f49a3a7f5aff0aab3946faee0892239251 (patch) | |
tree | 850fef0d49a8c76e88a04d589465f25142265f51 /source3/utils | |
parent | ad0d6509a761154c113e040a82ad78e72a3ccf30 (diff) | |
download | samba-83a580f49a3a7f5aff0aab3946faee0892239251.tar.gz samba-83a580f49a3a7f5aff0aab3946faee0892239251.tar.bz2 samba-83a580f49a3a7f5aff0aab3946faee0892239251.zip |
Merge from HEAD:
net ads password
Heimdal compile fixes.
Andrew Bartlett
(This used to be commit 3aa4f923e99f453310bb4a8d43ce43757591909d)
Diffstat (limited to 'source3/utils')
-rw-r--r-- | source3/utils/net_ads.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source3/utils/net_ads.c b/source3/utils/net_ads.c index 8cd3bac802..b4697d73dd 100644 --- a/source3/utils/net_ads.c +++ b/source3/utils/net_ads.c @@ -899,6 +899,15 @@ static int net_ads_password(int argc, const char **argv) in realms other than default */ if (!(ads = ads_init(realm, NULL, NULL))) return -1; + /* we don't actually need a full connect, but it's the easy way to + fill in the KDC's addresss */ + ads_connect(ads); + + if (!ads || !ads->config.realm) { + d_printf("Didn't find the kerberos server!\n"); + return -1; + } + asprintf(&prompt, "Enter new password for %s:", argv[0]); new_password = getpass(prompt); |