summaryrefslogtreecommitdiff
path: root/selftest
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2009-10-28 15:28:31 -0500
committerAndrew Bartlett <abartlet@samba.org>2009-11-02 16:36:54 +1100
commite035433bab87cb5f2f12def900e194da877e6925 (patch)
tree12777d2026f53c9b7a5b495552b329b919d2b061 /selftest
parent40a06c0101bf6426e0752cd695044049a8058f54 (diff)
downloadsamba-e035433bab87cb5f2f12def900e194da877e6925.tar.gz
samba-e035433bab87cb5f2f12def900e194da877e6925.tar.bz2
samba-e035433bab87cb5f2f12def900e194da877e6925.zip
s4 - SID allocation using FDS DNA plugin
Diffstat (limited to 'selftest')
-rw-r--r--selftest/target/Samba4.pm14
1 files changed, 13 insertions, 1 deletions
diff --git a/selftest/target/Samba4.pm b/selftest/target/Samba4.pm
index db2793e36b..f178849197 100644
--- a/selftest/target/Samba4.pm
+++ b/selftest/target/Samba4.pm
@@ -471,6 +471,7 @@ sub provision_raw_prepare($$$$$$$)
$ctx->{realm} = "SAMBA.EXAMPLE.COM";
$ctx->{dnsname} = "samba.example.com";
$ctx->{basedn} = "dc=samba,dc=example,dc=com";
+ $ctx->{sid_generator} = "internal";
my $unix_name = ($ENV{USER} or $ENV{LOGNAME} or `whoami`);
chomp $unix_name;
@@ -578,7 +579,14 @@ sub provision_raw_step1($$)
#We don't want to pass our self-tests if the PAC code is wrong
gensec:require_pac = true
log level = $ctx->{server_loglevel}
- lanman auth = Yes
+ lanman auth = Yes";
+
+ if (defined($ctx->{sid_generator}) && $ctx->{sid_generator} ne "internal") {
+ print CONFFILE "
+ sid generator = $ctx->{sid_generator}";
+ }
+
+ print CONFFILE "
# Begin extra options
$ctx->{smb_conf_extra_options}
@@ -778,6 +786,10 @@ sub provision($$$$$$$)
$ldap_uri =~ s|/|%2F|g;
$ldap_uri = "ldapi://$ldap_uri";
$ctx->{ldap_uri} = $ldap_uri;
+
+ if ($self->{ldap} eq "fedora-ds") {
+ $ctx->{sid_generator} = "backend";
+ }
}
my $ret = $self->provision_raw_step1($ctx);