diff options
author | Andrew Bartlett <abartlet@samba.org> | 2002-01-27 12:12:22 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2002-01-27 12:12:22 +0000 |
commit | 7b671e34f599b9d27c615c1be35db4ae10ce6481 (patch) | |
tree | 6695be8dfea1451944f0b5af2a8b0170aecbdf30 /source3/smbd/service.c | |
parent | 184cc84adab4ead8fde1b79c449ef47f23567165 (diff) | |
download | samba-7b671e34f599b9d27c615c1be35db4ae10ce6481.tar.gz samba-7b671e34f599b9d27c615c1be35db4ae10ce6481.tar.xz samba-7b671e34f599b9d27c615c1be35db4ae10ce6481.zip |
Some more 'winbind default domain' support patches from Alexander Bokovoy
<a.bokovoy@sam-solutions.net>.
This patch is designed to remove the 'special cases' required for this support.
In particular this now kills off winbind_initgroups, as it appears no longer to
be required.
Andrew Bartlett
(This used to be commit f1d8d509766e9169d39332559162cfec249bfc70)
Diffstat (limited to 'source3/smbd/service.c')
-rw-r--r-- | source3/smbd/service.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/source3/smbd/service.c b/source3/smbd/service.c index ac2e2ee548f..a9b9a9d4d94 100644 --- a/source3/smbd/service.c +++ b/source3/smbd/service.c @@ -84,7 +84,7 @@ int add_home_service(const char *service, const char *homedir) int iHomeService; int iService; fstring new_service; - char *usr_p = NULL; + fstring domain; if (!service || !homedir) return -1; @@ -99,11 +99,7 @@ int add_home_service(const char *service, const char *homedir) * include any macros. */ - fstrcpy(new_service, service); - - if ((usr_p = strchr_m(service,*lp_winbind_separator())) != NULL) - fstrcpy(new_service, usr_p+1); - + split_domain_and_name(service, domain, new_service); lp_add_home(new_service, iHomeService, homedir); iService = lp_servicenumber(new_service); |