1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-27 03:21:53 +03:00

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 commit is contained in:
Lars Müller 2006-01-14 15:25:33 +00:00 committed by Gerald (Jerry) Carter
parent 93461646ce
commit 34c7d8c069

View File

@ -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));