From 70de501d6a628e8b08a93134753e25e9f037c995 Mon Sep 17 00:00:00 2001 From: Geza Gemes Date: Thu, 12 Jul 2012 16:05:04 +0200 Subject: 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 --- source4/setup/provision | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source4/setup/provision') 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://:/ (where 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) -- cgit