r8056: make the realm lowercase in our ldb (better matches w2k3)
authorAndrew Tridgell <tridge@samba.org>
Fri, 1 Jul 2005 12:20:24 +0000 (12:20 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:19:03 +0000 (13:19 -0500)
source/setup/provision.pl

index fcd3b646d157edba53af7d4f981204cb4790f275..7c739f4515d8be828f6d9198564e1bf8e566eb20 100755 (executable)
@@ -30,7 +30,7 @@ sub nttime()
        my $t = time();
        $t += (369.0*365.25*24*60*60-(3.0*24*60*60+6.0*60*60));
        $t *= 1.0e7;
-       return sprintf("%lld", $t);
+       return sprintf("%.0f", $t);
 }
 
 # generate a random guid. Not a good algorithm.
@@ -325,7 +325,7 @@ if ($opt_help ||
        ShowHelp();
 }
 
-$opt_realm=uc($opt_realm);
+$opt_realm=lc($opt_realm);
 $opt_domain=uc($opt_domain);
 $opt_hostname=lc($opt_hostname);
 $netbiosname=uc($opt_hostname);