diff options
author | Andrew Tridgell <tridge@samba.org> | 2000-05-12 06:27:34 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2000-05-12 06:27:34 +0000 |
commit | 7738941ccf4ebcaccea872619c465a45fb7bf0ae (patch) | |
tree | 3f8cce962e99bb7c3ca83bea12db842704e72d52 /source3/nsswitch/winbindd_util.c | |
parent | a17db82c63b1c39014e2c26145e28f22d5b74307 (diff) | |
download | samba-7738941ccf4ebcaccea872619c465a45fb7bf0ae.tar.gz samba-7738941ccf4ebcaccea872619c465a45fb7bf0ae.tar.bz2 samba-7738941ccf4ebcaccea872619c465a45fb7bf0ae.zip |
use "winbind separator" in tng as well
(This used to be commit 0189af544244d7d20e4042cd1238f370968cb7a9)
Diffstat (limited to 'source3/nsswitch/winbindd_util.c')
-rw-r--r-- | source3/nsswitch/winbindd_util.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/nsswitch/winbindd_util.c b/source3/nsswitch/winbindd_util.c index daffb1ef8c..1eea8f8fc7 100644 --- a/source3/nsswitch/winbindd_util.c +++ b/source3/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,""); |