summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2010-06-15 23:01:51 +1000
committerAndrew Bartlett <abartlet@samba.org>2010-06-16 09:57:52 +1000
commit35237d5356d50be16963b9561b17b045cd2c2999 (patch)
tree41b1326d5f426adc362149d113441f1fb8156a0a /source4
parent25abcb68185ed21ecf030ee6b081e2c912a687f5 (diff)
downloadsamba-35237d5356d50be16963b9561b17b045cd2c2999.tar.gz
samba-35237d5356d50be16963b9561b17b045cd2c2999.tar.bz2
samba-35237d5356d50be16963b9561b17b045cd2c2999.zip
s4:libnet Remove 'ads min function level' checks.
We support Windows 2000 native now. Andrew Bartlett
Diffstat (limited to 'source4')
-rw-r--r--source4/libnet/libnet_become_dc.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/source4/libnet/libnet_become_dc.c b/source4/libnet/libnet_become_dc.c
index 6af52069d4..16ffb5c77d 100644
--- a/source4/libnet/libnet_become_dc.c
+++ b/source4/libnet/libnet_become_dc.c
@@ -744,13 +744,6 @@ static int32_t get_dc_function_level(struct loadparm_context *lp_ctx)
DS_DC_FUNCTION_2008);
}
-static int32_t get_min_function_level(struct loadparm_context *lp_ctx)
-{
- /* per default it is (Windows) 2003 Native compatible */
- return lp_parm_int(lp_ctx, NULL, "ads", "min function level",
- DS_DOMAIN_FUNCTION_2003);
-}
-
static void becomeDC_recv_cldap(struct tevent_req *req);
static void becomeDC_send_cldap(struct libnet_BecomeDC_state *s)
@@ -919,14 +912,6 @@ static NTSTATUS becomeDC_ldap1_crossref_behavior_version(struct libnet_BecomeDC_
}
s->forest.crossref_behavior_version = ldb_msg_find_attr_as_uint(r->msgs[0], "msDs-Behavior-Version", 0);
- if (s->forest.crossref_behavior_version <
- get_min_function_level(s->libnet->lp_ctx)) {
- talloc_free(r);
- DEBUG(0,("The servers function level %u is below 'ads:min function level' of %u\n",
- s->forest.crossref_behavior_version,
- get_min_function_level(s->libnet->lp_ctx)));
- return NT_STATUS_NOT_SUPPORTED;
- }
if (s->forest.crossref_behavior_version >
get_dc_function_level(s->libnet->lp_ctx)) {
talloc_free(r);
@@ -964,14 +949,6 @@ static NTSTATUS becomeDC_ldap1_domain_behavior_version(struct libnet_BecomeDC_st
}
s->domain.behavior_version = ldb_msg_find_attr_as_uint(r->msgs[0], "msDs-Behavior-Version", 0);
- if (s->domain.behavior_version <
- get_min_function_level(s->libnet->lp_ctx)) {
- talloc_free(r);
- DEBUG(0,("The servers function level %u is below 'ads:min function level' of %u\n",
- s->forest.crossref_behavior_version,
- get_min_function_level(s->libnet->lp_ctx)));
- return NT_STATUS_NOT_SUPPORTED;
- }
if (s->domain.behavior_version >
get_dc_function_level(s->libnet->lp_ctx)) {
talloc_free(r);