summaryrefslogtreecommitdiffstats
path: root/source/libsmb/trusts_util.c
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2003-06-30 20:45:14 +0000
committerGerald Carter <jerry@samba.org>2003-06-30 20:45:14 +0000
commite1d6094d066d4c16ab73075caba40a1ae6c56b1e (patch)
treee3c669887fc35367507853c54d5176893b4c3083 /source/libsmb/trusts_util.c
parent492a96e9922c1ef96b967f2965f8bba1f5bc8f23 (diff)
downloadsamba-e1d6094d066d4c16ab73075caba40a1ae6c56b1e.tar.gz
samba-e1d6094d066d4c16ab73075caba40a1ae6c56b1e.tar.xz
samba-e1d6094d066d4c16ab73075caba40a1ae6c56b1e.zip
* cleanup more DC name resolution issues in check_*domain_security()
* is_trusted_domain() is broken without winbind. Still working on this. * get_global_sam_name() should return the workgroup name unless we are a standalone server (verified by volker) * Get_Pwnam() should always fall back to the username (minus domain name) even if it is not our workgroup so that TRUSTEDOMAIN\user can logon if 'user' exists in the local list of accounts (on domain members w/o winbind) Tested using Samba PDC with trusts (running winbindd) and a Samba 3.0 domain member not running winbindd. notes: make_user_info_map() is slightly broken now due to the fact that is_trusted_domain() only works with winbindd. disabled checks temporarily until I can sort this out.
Diffstat (limited to 'source/libsmb/trusts_util.c')
-rw-r--r--source/libsmb/trusts_util.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/source/libsmb/trusts_util.c b/source/libsmb/trusts_util.c
index e0c5e795958..569b0521be1 100644
--- a/source/libsmb/trusts_util.c
+++ b/source/libsmb/trusts_util.c
@@ -153,8 +153,16 @@ BOOL is_trusted_domain(const char* dom_name)
/*
* Query the trustdom_cache updated periodically. The only
* way for domain member server.
+ *
+ * Sure...it's all fun and games until someone gets hurt...
+ * This call cannot work without winbindd running since it
+ * is the only process updating the cache currently.
+ *
+ * FIXME!!! make this always true for now until I figure
+ * out what to do --jerry
*/
- if (trustdom_cache_fetch(dom_name, &trustdom_sid)) {
+
+ if (True || trustdom_cache_fetch(dom_name, &trustdom_sid)) {
return True;
}