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
Volker Lendecke
718a26fd29
s3:winbind: Make wcache_lookup_usergroups externally visible
2009-08-05 03:21:24 -04:00
Volker Lendecke
ff3ce9016a
s3:winbind: Make wcache_lookup_useraliases available publically
2009-08-05 03:21:24 -04:00
Volker Lendecke
360227a0fe
s3:winbind: Make wcache_query_user externally visible
2009-08-05 03:21:22 -04:00
Volker Lendecke
f6554611ab
s3:winbind: Make wcache_name_to_sid visible externally
2009-08-05 03:21:20 -04:00
Volker Lendecke
2d6589fb02
s3:winbind: Make wcache_sid_to_name externally visible
2009-08-05 03:21:19 -04:00
Volker Lendecke
7180ae0b8e
Add some const to winbind_userinfo
2009-08-03 22:48:45 +02:00
Volker Lendecke
4f147388c0
Refactor 9b78af1f: Fix lookupname recursion
...
Pass a "flags" argument instead of the original winbind command down the
name_to_sid chain. This way we are independent of the winbind commands and
can take the decision at a much higher level
2009-08-02 11:24:48 +02:00
Volker Lendecke
c67037d986
Refactoring: mem_ctx is not needed as an argument to centry_sid
2009-07-31 23:49:08 +02:00
Volker Lendecke
d3f21d0a1f
Fix some nonempty blank lines
2009-07-27 12:50:48 +02:00
Volker Lendecke
0834574fdd
Remove some unused code
2009-06-14 11:25:47 +02:00
Jeremy Allison
b4c9cfb2af
Fix a bunch of compiler warnings about wrong format types.
...
Should make Solaris 10 builds look cleaner.
Jeremy.
2009-05-11 21:56:57 -07:00
Andrew Bartlett
f28f113d8e
Rework Samba3 to use new libcli/auth code (partial)
...
This commit is mostly to cope with the removal of SamOemHash (replaced
by arcfour_crypt()) and other collisions (such as changed function
arguments compared to Samba3).
We still provide creds_hash3 until Samba3 uses the credentials code in
netlogon server
Andrew Bartlett
2009-04-14 16:23:35 +10:00
Volker Lendecke
b17f9e15ef
Make opt_nocache static to winbindd.c
2009-03-12 10:20:08 +01:00
Jeremy Allison
faa1100d22
More warning fixes for Solaris.
...
Jeremy.
2009-02-23 16:22:43 -08:00