summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorLars Müller <lmuelle@samba.org>2006-01-14 15:25:33 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:06:08 -0500
commit4dea23da0445c84596bb924f7d1a6f94476f86d6 (patch)
tree2469d7cc2320eed181546f99682e2aef979b8b31 /source3
parenta02415bf363e3c1b6863b135bdae3b2e2708db3b (diff)
downloadsamba-4dea23da0445c84596bb924f7d1a6f94476f86d6.tar.gz
samba-4dea23da0445c84596bb924f7d1a6f94476f86d6.tar.bz2
samba-4dea23da0445c84596bb924f7d1a6f94476f86d6.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. (This used to be commit 34c7d8c0694369760340843318f873e26546cb2e)
Diffstat (limited to 'source3')
-rw-r--r--source3/sam/idmap.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/sam/idmap.c b/source3/sam/idmap.c
index ec3ccb2985..900f25f9c1 100644
--- a/source3/sam/idmap.c
+++ b/source3/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));