]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
net ads: Upper case he realm name when calling kinit() using machine creds.
authorcoffeedude <coffeedude@drizzt.ad.plainjoe.org>
Mon, 12 May 2008 22:33:01 +0000 (17:33 -0500)
committercoffeedude <coffeedude@drizzt.ad.plainjoe.org>
Mon, 12 May 2008 22:37:28 +0000 (17:37 -0500)
Needed fix for the DNS Update option as part of "net ads join"
(cherry picked from commit aebae0b71b427838fdc6344d69d6dea87a5dd58b)

source/utils/net_ads.c

index 3df9e2cff036da5e1fddd87cabfae5e5b6f967c9..ad8882c9a26de428b824e9189f8736c94b391841 100644 (file)
@@ -1227,6 +1227,7 @@ int net_ads_join(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 );
                }