summaryrefslogtreecommitdiff
path: root/source4/script
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-10-03 10:31:12 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:59:36 -0500
commit0eeb0973e9ccf4583c918562b92a0c8921c122da (patch)
tree0c95e3ef268ddd892ddd65391b4ca7c0c08204c9 /source4/script
parentfe3294f7f02c7ed57aab8ea17f0072f721284a8c (diff)
downloadsamba-0eeb0973e9ccf4583c918562b92a0c8921c122da.tar.gz
samba-0eeb0973e9ccf4583c918562b92a0c8921c122da.tar.bz2
samba-0eeb0973e9ccf4583c918562b92a0c8921c122da.zip
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)
Diffstat (limited to 'source4/script')
-rwxr-xr-xsource4/script/provision.pl10
1 files changed, 6 insertions, 4 deletions
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();