1
0
mirror of https://github.com/samba-team/samba.git synced 2025-07-22 16:59:09 +03:00

s4-join: not all versions of w2003 have msDS-SupportedEncryptionTypes

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Mon Nov 15 22:28:16 UTC 2010 on sn-devel-104
This commit is contained in:
Andrew Tridgell
2010-11-16 07:41:54 +11:00
parent 10a1606baf
commit 6ff009cacc

View File

@ -303,7 +303,7 @@ class dc_join:
"samaccountname" : ctx.samname,
"userAccountControl" : str(ctx.userAccountControl),
"dnshostname" : ctx.dnshostname}
if ctx.behavior_version >= samba.dsdb.DS_DOMAIN_FUNCTION_2003:
if ctx.behavior_version >= samba.dsdb.DS_DOMAIN_FUNCTION_2008:
rec['msDS-SupportedEncryptionTypes'] = str(samba.dsdb.ENC_ALL_TYPES)
if ctx.managedby:
rec["managedby"] = ctx.managedby
@ -335,8 +335,10 @@ class dc_join:
"systemFlags" : str(samba.dsdb.SYSTEM_FLAG_DISALLOW_MOVE_ON_DELETE),
"dMDLocation" : ctx.schema_dn}
if ctx.behavior_version >= samba.dsdb.DS_DOMAIN_FUNCTION_2003:
if ctx.behavior_version >= samba.dsdb.DS_DOMAIN_FUNCTION_2008:
rec["msDS-Behavior-Version"] = str(ctx.behavior_version)
if ctx.behavior_version >= samba.dsdb.DS_DOMAIN_FUNCTION_2003:
rec["msDS-HasDomainNCs"] = ctx.base_dn
if ctx.RODC: