From ca70c3cde7b2068f7665a4bf11359c10e75bc85a Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Fri, 6 Apr 2007 19:55:45 +0000 Subject: [PATCH] r22109: Readonly is automatically set in the generic init code, let's just log the fact there and remove the specific, but redundant, code in idmap_ad.c (This used to be commit f127803734f9ae16e400b8a91e1e1910fd49b7f3) --- source3/nsswitch/idmap.c | 1 + source3/nsswitch/idmap_ad.c | 5 ----- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/source3/nsswitch/idmap.c b/source3/nsswitch/idmap.c index 104be86777fb..1bd93affac86 100644 --- a/source3/nsswitch/idmap.c +++ b/source3/nsswitch/idmap.c @@ -407,6 +407,7 @@ NTSTATUS idmap_init(void) /* check the set_mapping function exists otherwise mark the module as readonly */ if ( ! dom->methods->set_mapping) { + DEBUG(5, ("Forcing to readonly, as ithis module can't store arbitrary mappings.\n")); dom->readonly = True; } diff --git a/source3/nsswitch/idmap_ad.c b/source3/nsswitch/idmap_ad.c index 3fb893d94b7f..5ec543819ef6 100644 --- a/source3/nsswitch/idmap_ad.c +++ b/source3/nsswitch/idmap_ad.c @@ -194,11 +194,6 @@ static NTSTATUS idmap_ad_initialize(struct idmap_domain *dom, const char *params } } - if ( !dom->readonly ) { - DEBUG(1, ("WARNING: forcing to readonly, as idmap_ad can't write on AD.\n")); - dom->readonly = true; - } - dom->private_data = ctx; talloc_free(config_option); -- 2.34.1