summaryrefslogtreecommitdiff
path: root/source4/setup/provision
diff options
context:
space:
mode:
authorGeza Gemes <geza@kzsdabas.hu>2012-07-12 16:05:04 +0200
committerAndrew Bartlett <abartlet@samba.org>2012-07-13 06:00:17 +0200
commit70de501d6a628e8b08a93134753e25e9f037c995 (patch)
tree7f617169e85c3e9cd1f949b1f663ff60b7addd22 /source4/setup/provision
parent5a9ce8b94acf201ddb3d8e34dd962955284f1c5f (diff)
downloadsamba-70de501d6a628e8b08a93134753e25e9f037c995.tar.gz
samba-70de501d6a628e8b08a93134753e25e9f037c995.tar.bz2
samba-70de501d6a628e8b08a93134753e25e9f037c995.zip
s4-provision: Provide YP/NIS subtree to allow ADUC to see and set rfc2307 attrs
When provisioning with --use_rfc2307=yes populate the subtree: CN=ypServ30,CN=RpcServices,CN=System,${DOMAINDN} This makes it possible to manipulate the posix attributes via ADUC (commit message adjusted by abartlet) Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4/setup/provision')
-rwxr-xr-xsource4/setup/provision4
1 files changed, 3 insertions, 1 deletions
diff --git a/source4/setup/provision b/source4/setup/provision
index 339b05e038..2df718e4ec 100755
--- a/source4/setup/provision
+++ b/source4/setup/provision
@@ -124,6 +124,7 @@ parser.add_option("--ol-mmr-urls", type="string", metavar="LDAPSERVER",
help="List of LDAP-URLS [ ldap://<FQHN>:<PORT>/ (where <PORT> has to be different than 389!) ] separated with comma (\",\") for use with OpenLDAP-MMR (Multi-Master-Replication), e.g.: \"ldap://s4dc1:9000,ldap://s4dc2:9000\"")
parser.add_option("--use-xattrs", type="choice", choices=["yes", "no", "auto"], help="Define if we should use the native fs capabilities or a tdb file for storing attributes likes ntacl, auto tries to make an inteligent guess based on the user rights and system capabilities", default="auto")
parser.add_option("--use-ntvfs", action="store_true", help="Use NTVFS for the fileserver (default = no)")
+parser.add_option("--use-rfc2307", action="store_true", help="Use AD to store posix attributes (default = no)")
opts = parser.parse_args()[0]
@@ -257,7 +258,8 @@ try:
serverrole=opts.server_role, dom_for_fun_level=dom_for_fun_level,
backend_type=opts.ldap_backend_type,
ldapadminpass=opts.ldapadminpass, ol_mmr_urls=opts.ol_mmr_urls,
- useeadb=eadb, next_rid=opts.next_rid, lp=lp, use_ntvfs=(opts.use_ntvfs))
+ useeadb=eadb, next_rid=opts.next_rid, lp=lp, use_ntvfs=(opts.use_ntvfs),
+ use_rfc2307=(opts.use_rfc2307))
except ProvisioningError, e:
print str(e)
sys.exit(1)