summaryrefslogtreecommitdiffstats
path: root/source/smbd
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2002-01-20 01:24:59 +0000
committerAndrew Bartlett <abartlet@samba.org>2002-01-20 01:24:59 +0000
commite870f0e727952aeb8599cf93ad2650ae56eca033 (patch)
tree7d1bd14caac6b16a428aedf8d34eea3b230b5ab4 /source/smbd
parent7c5c035e417b45acebc3580c4fdc80a7ef3306ce (diff)
downloadsamba-e870f0e727952aeb8599cf93ad2650ae56eca033.tar.gz
samba-e870f0e727952aeb8599cf93ad2650ae56eca033.tar.xz
samba-e870f0e727952aeb8599cf93ad2650ae56eca033.zip
This patch makes the 'winbind use default domain' code interact better with
smbd, and also makes it much cleaner inside winbindd. It is mostly my code, with a few changes and testing performed by Alexander Bokovoy <a.bokovoy@sam-solutions.net>. ab has tested it in security=domain and security=ads, but more testing is always appricatiated. The idea is that we no longer cart around a 'domain\user' string, we keep them seperate until the last moment - when we push that string into a pwent on onto the socket. This removes the need to be constantly parsing that string - the domain prefix is almost always already provided, (only a couple of functions actually changed arguments in all this). Some consequential changes to the RPC client code, to stop it concatonating the two strings (it now passes them both back as params). I havn't changed the cache code, however the usernames will no longer have a double domain prefix in the key string. The actual structures are unchanged - but the meaning of 'username' in the 'rid' will have changed. (The cache is invalidated at startup, so on-disk formats are not an issue here). Andrew Bartlett
Diffstat (limited to 'source/smbd')
-rw-r--r--source/smbd/uid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/smbd/uid.c b/source/smbd/uid.c
index 8df08a0e72e..d9cedaf7b5d 100644
--- a/source/smbd/uid.c
+++ b/source/smbd/uid.c
@@ -453,7 +453,7 @@ BOOL lookup_name(const char *name, DOM_SID *psid, enum SID_NAME_USE *name_type)
/* If we are looking up a domain user, make sure it is
for the local machine only */
- if (strchr_m(name, sep[0]) || strchr_m(name, '\\')) {
+ if (strchr_m(name, sep[0]) || strchr_m(name, '\\') || lp_winbind_use_default_domain()) {
fstring domain, username;
split_domain_name(name, domain, username);