From 0eeb0973e9ccf4583c918562b92a0c8921c122da Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 3 Oct 2004 10:31:12 +0000 Subject: r2804: - setup some reasonable default SAM to unixName mappings in the provisioning. - enable the unixuid module by default on all backends (This used to be commit e335cd4933fccc1bb53641131eb6505faca857ce) --- source4/script/provision.pl | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'source4/script') diff --git a/source4/script/provision.pl b/source4/script/provision.pl index 60ab5653a0..cc08c94bfb 100755 --- a/source4/script/provision.pl +++ b/source4/script/provision.pl @@ -139,10 +139,11 @@ sub FileLoad($) ####################################################################### # add a foreign security principle -sub add_foreign($$) +sub add_foreign($$$) { my $sid = shift; my $desc = shift; + my $unixname = shift; return " dn: CN=$sid,CN=ForeignSecurityPrincipals,\${BASEDN} objectClass: top @@ -160,6 +161,7 @@ name: $sid objectGUID: \${NEWGUID} objectSid: $sid objectCategory: CN=Foreign-Security-Principal,CN=Schema,CN=Configuration,\${BASEDN} +unixName: $unixname "; } @@ -209,9 +211,9 @@ $basedn = "DC=" . join(",DC=", split(/\./, $opt_realm)); my $data = FileLoad("provision.ldif") || die "Unable to load provision.ldif\n"; -$data .= add_foreign("S-1-5-7", "Anonymous"); -$data .= add_foreign("S-1-5-18", "System"); -$data .= add_foreign("S-1-5-11", "Authenticated Users"); +$data .= add_foreign("S-1-5-7", "Anonymous", "nobody"); +$data .= add_foreign("S-1-5-18", "System", "root"); +$data .= add_foreign("S-1-5-11", "Authenticated Users", "users"); if (!$opt_adminpass) { $opt_adminpass = randpass(); -- cgit