summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Müller <lmuelle@samba.org>2006-01-14 15:25:33 +0000
committerLars Müller <lmuelle@samba.org>2006-01-14 15:25:33 +0000
commit899deef9831b090aba832dd511a2f805d28c0f3c (patch)
tree4d4f8b40292a48a486a53d4137623a8397333703
parent3511c376402da620f4203658ca0d6f6b7b64c8a1 (diff)
downloadsamba-899deef9831b090aba832dd511a2f805d28c0f3c.tar.gz
samba-899deef9831b090aba832dd511a2f805d28c0f3c.tar.xz
samba-899deef9831b090aba832dd511a2f805d28c0f3c.zip
r12936: Fix bug #3264.
If we detect a leading 'idmap_' for the idmap backend setting we strip this and inform about the deprecated config with DEBUG 0. I'm not sure if we should set a TTL of one year or five additional releases from now for this code. This is required for the changes Günther made as the first step to solve bug #3264. With this fix we can even run with an old config. This is very important as we else will break existing configurations with an update.
-rw-r--r--source/sam/idmap.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/sam/idmap.c b/source/sam/idmap.c
index ec3ccb29859..900f25f9c11 100644
--- a/source/sam/idmap.c
+++ b/source/sam/idmap.c
@@ -128,6 +128,12 @@ BOOL idmap_init(const char **remote_backend)
pparams++;
fstrcpy( params, pparams );
}
+
+ /* strip any leading idmap_ prefix of */
+ if ( strncmp( rem_backend, "idmap_", 6) == 0 ) {
+ rem_backend += 6;
+ DEBUG(0, ("idmap_init: idmap backend uses deprecated 'idmap_' prefix. Please replace 'idmap_%s' by '%s' in %s\n", rem_backend, rem_backend, dyn_CONFIGFILE));
+ }
DEBUG(3, ("idmap_init: using '%s' as remote backend\n", rem_backend));