Günther Deschner
cc94bcb952
s3-winbindd: copy acct_info to wb_acct_info so we dont need passdb for it.
...
Guenther
2011-03-30 01:13:08 +02:00
Günther Deschner
0e771263ee
s3-includes: only include system/filesys.h when needed.
...
Guenther
2011-03-30 01:13:07 +02:00
Volker Lendecke
d3ba16a500
s3: Remove unused args from nss_get_info_cached
2011-03-06 12:51:01 +01:00
Volker Lendecke
fff6fa7576
s3: Remove unused args from nss_get_info
2011-03-06 12:51:01 +01:00
Volker Lendecke
52c0fb359f
s3:winbind: Protect against invalid winbindd_cache entries in lookuprids
2011-01-21 10:10:03 +01:00
Volker Lendecke
a159958065
s3: wcache_invalidate_samlogon only needs the SID
2010-12-19 23:25:06 +01:00
Volker Lendecke
e113b1c64f
s3: netsamlogon_clear_cached_user only needs the SID
2010-12-19 23:25:06 +01:00
Volker Lendecke
0a6b684cac
s3: Use sid_check_is..
2010-11-22 22:30:38 +01:00
Volker Lendecke
92e8fd0513
s3: Call sid_check_is_domain instead of dom_sid_equal
...
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Thu Nov 18 15:32:32 UTC 2010 on sn-devel-104
2010-11-18 15:32:32 +00:00
Christian Ambach
51ddddfa9f
s3:winbind add wcache_tdc_fetch_domainbysid
...
add a function to lookup a domain in the winbind cache by domain SID
2010-11-08 13:39:51 +01:00
Volker Lendecke
69155e4103
s3: Put some parentheses around conditionals
2010-11-08 13:39:51 +01:00
Volker Lendecke
cbe399155d
s3: Consistently use stdbool types in new code
2010-11-08 13:39:51 +01:00
Christian Ambach
57b3d32c8d
s3:winbind add timeouts to winbind cache
...
This adds a timeout value to cache entries and the NDR records
in the winbind cache.
The previous approach of just comparing the sequence number has some issues,
e.g. when retrying a wbinfo -n operation for a user in a not yet trusted
domain was always failing even after the trusted domain was added.
The new approach compares sequence number and timeout value to
determine if a cache entry is still valid or not.
I increased the cache version number so an old cache will be wiped
automatically after upgrade.
2010-11-08 13:39:51 +01:00
Andrew Bartlett
f768b32e37
libcli/security Provide a common, top level libcli/security/security.h
...
This will reduce the noise from merges of the rest of the
libcli/security code, without this commit changing what code
is actually used.
This includes (along with other security headers) dom_sid.h and
security_token.h
Andrew Bartlett
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Tue Oct 12 05:54:10 UTC 2010 on sn-devel-104
2010-10-12 05:54:10 +00:00
Jeremy Allison
f98d217514
Change to using TDB_INCOMPATIBLE_HASH (the jenkins hash) on all
...
TDB_CLEAR_IF_FIRST tdb's. For tdb's like gencache where we open
without CLEAR_IF_FIRST and then with CLEAR_IF_FIRST if corrupt
this is still safe to use as if opening an existing tdb the new
hash will be ignored - it's only used on creating a new tdb not
opening an old one.
Jeremy.
2010-09-27 17:18:54 -07:00
Günther Deschner
bf38287c76
s3-winbindd: another attempt to fix the non-ldap build.
...
Guenther
2010-09-21 00:20:00 -07:00
Günther Deschner
4dbd743e46
s3-util_sid: use shared dom_sid_compare_auth and dom_sid_equal_X functions.
...
Guenther
2010-09-20 14:04:37 -07:00
Björn Jacke
1c82ca01c3
s3/winbind: remove unused winbindd_check_cache_size
2010-09-19 22:58:33 -07:00
Volker Lendecke
eaf778593f
s3: Remove "mem_ctx" from wcache_save_creds()
2010-09-09 06:19:24 +02:00
Volker Lendecke
d38e1d13ea
s3: Remove "mem_ctx" from lookup_cached_name()
2010-09-09 06:19:24 +02:00
Günther Deschner
e7a6a3ec0d
s3: avoid global include of ads.h.
...
Guenther
2010-08-05 00:32:02 +02:00
Andreas Schneider
f85167a161
s3-winbind: Don't cache queries to builtin and own sam domain.
2010-07-13 19:17:41 +02:00
Günther Deschner
11ae9aff97
s3-winbind: Fixed the winbind caching.
2010-07-06 18:38:14 +02:00
Günther Deschner
d1538add73
s3-nss_info: only include nss_info.h where needed.
...
Guenther
2010-07-01 23:20:40 +02:00
Andrew Bartlett
cba7f8b827
s3:dom_sid Global replace of DOM_SID with struct dom_sid
...
This matches the structure that new code is being written to,
and removes one more of the old-style named structures, and
the need to know that is is just an alias for struct dom_sid.
Andrew Bartlett
Signed-off-by: Günther Deschner <gd@samba.org>
2010-05-21 10:39:59 +02:00
Bo Yang
aaafadb7d5
s3: Fix unnecessary traversing winbindd_cache.tdb in SIGHUP handler.
...
Signed-off-by: Bo Yang <boyang@samba.org>
2010-03-06 20:58:23 +08:00
Bo Yang
9fed9011ff
s3: Don't invalidate cache for uninitialized domains.
...
Signed-off-by: Bo Yang <boyang@samba.org>
2010-02-09 17:06:14 +08:00
Volker Lendecke
026b23062e
s3: Fix a winbind segfault in "trusted_domains"
...
We have to initialize domain->backend by calling "get_cache" before doing a
query
Thanks to Christian Ambach to find this :-)
2010-01-13 12:22:31 +01:00
Volker Lendecke
3ea64e0ad8
s3: Replace most calls to sid_append_rid() by sid_compose()
2010-01-10 20:56:16 +01:00
Bo Yang
d06fb8e027
s3: List trusted domains from wcache when domain is offline.
...
Signed-off-by: Bo Yang <boyang@samba.org>
2010-01-06 19:19:52 +08:00
Bo Yang
133638c8ae
s3: Make winbindd_cache.c aware of domain offline to avoid unnecessary backend query.
...
Signed-off-by: Bo Yang <boyang@samba.org>
2010-01-06 19:19:43 +08:00
Volker Lendecke
b8fcba9cb8
s3: Pass netr_DomainTrustList instead of names and sids through (*trusted_domains)
2009-12-28 15:54:13 +01:00
Volker Lendecke
2c49678ce5
s3: Remove some unused code
...
Watch the #if 0 -- we never stored this in the cache anymore
2009-12-28 14:59:46 +01:00
Volker Lendecke
0a6a13dd07
s3: Fix a typo found by Matthias Dieter Wallnöfer <mdw@samba.org> -- thanks :-)
2009-12-26 15:21:09 +01:00
Volker Lendecke
634d084517
s3: Replace IS_DOMAIN_OFFLINE by a function
2009-12-26 12:26:07 +01:00
Volker Lendecke
5aa0d97464
s3: wbinfo --ping-dc is not cacheable
2009-12-23 13:11:55 +01:00
Günther Deschner
a3306e352d
s3-winbindd: add wbint_ChangeMachineAccount implementation.
...
Guenther
2009-10-13 12:42:44 +02:00
Günther Deschner
efaa98e824
s3-winbindd: NDR_WBINT_CHECKMACHINEACCOUNT should not be cacheable.
...
Guenther
2009-10-08 10:40:42 +02:00
Volker Lendecke
360436b656
s3:winbind: Fix Coverity ID 940: Resource Leak
2009-09-04 07:53:56 +02:00
Volker Lendecke
0cae043b0c
w3:winbind: Convert WINBINDD_ALLOCATE_GID to the new API
2009-08-30 09:48:28 +02:00
Volker Lendecke
9e7c6f12fd
w3:winbind: Convert WINBINDD_ALLOCATE_UID to the new API
2009-08-30 09:48:28 +02:00
Volker Lendecke
129562206a
s3:winbind: add a fake NDR winbind cache validator
2009-08-29 19:42:27 +02:00
Volker Lendecke
99cf696150
s3:winbind: Fix a bug found by RPC-SAMR
...
We need to enumerate passdb alias members
Thanks to gd for bugging me :-)
2009-08-29 10:44:13 +02:00
Volker Lendecke
94948f7a40
s3:winbind: Some calls are not cacheable
2009-08-27 15:04:09 +02:00
Volker Lendecke
2f16bf5445
s3:winbind: Factor out wcache_store_seqnum()
2009-08-27 15:04:09 +02:00
Volker Lendecke
f3d71d3e8c
s3:winbind: Add a generic cache for NDR based parent-child requests
2009-08-27 15:04:09 +02:00
Volker Lendecke
3532c8b9d8
s3:winbind: Factor out wcache_fetch_seqnum
2009-08-27 15:04:09 +02:00
Volker Lendecke
d49ab9226f
s3:winbind: Fix Coverity ID 942: Resource Leak
2009-08-26 18:20:06 +02:00
Volker Lendecke
3d46eaf411
s3:winbind: Make wcache_lookup_groupmem available publically
2009-08-16 12:38:19 +02:00
Volker Lendecke
c6b36ce573
s3:winbind: WINBIND_USERINFO -> wbint_userinfo
2009-08-16 10:38:24 +02:00