summaryrefslogtreecommitdiffstats
path: root/source/nsswitch/winbindd_util.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2000-05-12 06:27:34 +0000
committerAndrew Tridgell <tridge@samba.org>2000-05-12 06:27:34 +0000
commit0189af544244d7d20e4042cd1238f370968cb7a9 (patch)
tree358908284683ebf54cdf13cdc59b6665d3f94a52 /source/nsswitch/winbindd_util.c
parent11328f27816160d77934fb9b2409263f442e4f42 (diff)
downloadsamba-0189af544244d7d20e4042cd1238f370968cb7a9.tar.gz
samba-0189af544244d7d20e4042cd1238f370968cb7a9.tar.xz
samba-0189af544244d7d20e4042cd1238f370968cb7a9.zip
use "winbind separator" in tng as well
Diffstat (limited to 'source/nsswitch/winbindd_util.c')
-rw-r--r--source/nsswitch/winbindd_util.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/nsswitch/winbindd_util.c b/source/nsswitch/winbindd_util.c
index daffb1ef8c7..1eea8f8fc72 100644
--- a/source/nsswitch/winbindd_util.c
+++ b/source/nsswitch/winbindd_util.c
@@ -619,7 +619,9 @@ char *winbindd_cmd_to_string(enum winbindd_cmd cmd)
void parse_domain_user(char *domuser, fstring domain, fstring user)
{
char *p;
- p = strchr(domuser,'/');
+ char *sep = lp_winbind_separator();
+ if (!sep) sep = "\\";
+ p = strchr(domuser,*sep);
if (!p) p = strchr(domuser,'\\');
if (!p) {
fstrcpy(domain,"");