summaryrefslogtreecommitdiff
path: root/source3/winbindd/winbindd_creds.c
diff options
context:
space:
mode:
authorDavid Disseldorp <ddiss@samba.org>2012-11-06 12:29:24 +0100
committerAndreas Schneider <asn@cryptomilk.org>2012-11-09 16:41:05 +0100
commit9195792a38027eb30b6ac36a134d52be4db0087c (patch)
tree0b885feeede48a6dbec5ffb16fc027342194f9ce /source3/winbindd/winbindd_creds.c
parentec0104b1e0eea73331c58d26ea96b5167c2847ed (diff)
downloadsamba-9195792a38027eb30b6ac36a134d52be4db0087c.tar.gz
samba-9195792a38027eb30b6ac36a134d52be4db0087c.tar.bz2
samba-9195792a38027eb30b6ac36a134d52be4db0087c.zip
Revert "s3-winbindd: make sure we obey the -n switch also for samlogon cache access."
This reverts commit ae6a779bf9f816680e724ede37324b7f5355996b. Bug 9125 analysis from Volker: The problem is that there are no network calls possible at all that would do what the samlogon cache does for us. There is just no way to retrieve the group membership in a complex trusted environment. If you have just a single domain with Samba as domain controller it might be possible, but even within a single domain it is not possible to correctly retrieve all group memberships using LDAP calls due to ACLs on directory objects. The call to get that is called NetSamLogon on the NETLOGON pipe. But this call requires user credentials and might trigger updating counts on the server. So to correctly implement wbinfo -r after a user has logged in, you have two alternatives: Save the info3 struct or the PAC in the netsamlogon cache. If you insist on doing network calls, you need to cache the user credentials somewhere to re-do the NetSamLogon call every time the wbinfo -r is requested. Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'source3/winbindd/winbindd_creds.c')
-rw-r--r--source3/winbindd/winbindd_creds.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/source3/winbindd/winbindd_creds.c b/source3/winbindd/winbindd_creds.c
index a160f7a6b5..6bbd0ffd9d 100644
--- a/source3/winbindd/winbindd_creds.c
+++ b/source3/winbindd/winbindd_creds.c
@@ -38,10 +38,6 @@ NTSTATUS winbindd_get_creds(struct winbindd_domain *domain,
struct netr_SamInfo3 *info;
NTSTATUS status;
- if (!winbindd_use_cache()) {
- return NT_STATUS_OBJECT_NAME_NOT_FOUND;
- }
-
status = wcache_get_creds(domain, mem_ctx, sid, cached_nt_pass, cred_salt);
if (!NT_STATUS_IS_OK(status)) {
return status;