From: coffeedude Date: Mon, 12 May 2008 22:33:01 +0000 (-0500) Subject: net ads: Upper case he realm name when calling kinit() using machine creds. X-Git-Tag: samba-3.3.0pre1~1259 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=aebae0b71b427838fdc6344d69d6dea87a5dd58b;p=thirdparty%2Fsamba.git net ads: Upper case he realm name when calling kinit() using machine creds. Needed fix for the DNS Update option as part of "net ads join" --- diff --git a/source/utils/net_ads.c b/source/utils/net_ads.c index 8efc64fa8ce..77d16297149 100644 --- a/source/utils/net_ads.c +++ b/source/utils/net_ads.c @@ -1228,6 +1228,7 @@ int net_ads_join(struct net_context *c, int argc, const char **argv) ads_dns->auth.password = secrets_fetch_machine_password( r->out.netbios_domain_name, NULL, NULL ); ads_dns->auth.realm = SMB_STRDUP( r->out.dns_domain_name ); + strupper_m(ads_dns->auth.realm ); ads_kinit_password( ads_dns ); }