diff options
author | Volker Lendecke <vlendec@samba.org> | 2004-07-10 17:00:53 +0000 |
---|---|---|
committer | Volker Lendecke <vlendec@samba.org> | 2004-07-10 17:00:53 +0000 |
commit | 9a43d9c9cc22d0d82911be1b177a409899ef032f (patch) | |
tree | dae7f81692245fdc95712c4a0daea289a1f811eb /source/sam/idmap.c | |
parent | 9d2b7b7d32a5a7df101a65b34feb3f226e30ea73 (diff) | |
download | samba-9a43d9c9cc22d0d82911be1b177a409899ef032f.tar.gz samba-9a43d9c9cc22d0d82911be1b177a409899ef032f.tar.xz samba-9a43d9c9cc22d0d82911be1b177a409899ef032f.zip |
r1430: Although prepared for only one remote backend, make the 'idmap backend'
parameter a list instead of a string. This makes
idmap backend = ldap:"ldap://localhost/ ldap://fallback/"
possible.
Volker
Diffstat (limited to 'source/sam/idmap.c')
-rw-r--r-- | source/sam/idmap.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/source/sam/idmap.c b/source/sam/idmap.c index bbb4980c766..d541776f391 100644 --- a/source/sam/idmap.c +++ b/source/sam/idmap.c @@ -96,7 +96,7 @@ NTSTATUS smb_register_idmap(int version, const char *name, struct idmap_methods Initialise idmap cache and a remote backend (if configured). **********************************************************************/ -BOOL idmap_init(const char *remote_backend) +BOOL idmap_init(const char **remote_backend) { if (!backends) static_init_idmap; @@ -115,8 +115,9 @@ BOOL idmap_init(const char *remote_backend) } } - if (!remote_map && remote_backend && *remote_backend != 0) { - char *rem_backend = smb_xstrdup(remote_backend); + if ((remote_map == NULL) && (remote_backend != NULL) && + (*remote_backend != NULL) && (**remote_backend != '\0')) { + char *rem_backend = smb_xstrdup(*remote_backend); fstring params = ""; char *pparams; |