Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2011-06-20 | tdb_compat: Higher level API fixes. | Rusty Russell | 1 | -1/+1 | |
My previous patches fixed up all direct TDB callers, but there are a few utility functions and the db_context functions which are still using the old -1 / 0 return codes. It's clearer to fix up all the callers of these too, so everywhere is consistent: non-zero means an error. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> | |||||
2011-06-20 | tdb_compat: use tdb_errorstr_compat() | Rusty Russell | 1 | -2/+2 | |
Since TDB2 functions return the error directly, tdb_errorstr() taken an error code, not the tdb as it does in TDB1. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> | |||||
2011-06-20 | tdb_traverse/tdb_traverse_read: check returns for negative, not -1. | Rusty Russell | 1 | -1/+1 | |
TDB2 returns a negative error number on failure. This is compatible if we always check for < 0 instead of == -1. Also, there's no tdb_traverse_read in TDB2: we don't try to make traverse reliable any more, so there are no write locks anyway. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> | |||||
2011-06-20 | tdb_delete: check returns for 0, not -1. | Rusty Russell | 1 | -1/+1 | |
TDB2 returns a negative error number on failure. This is compatible if we always check for != 0 instead of == -1. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> | |||||
2011-06-20 | tdb_fetch_compat: use instead of tdb_fetch. | Rusty Russell | 1 | -5/+5 | |
This is a noop for tdb1. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> | |||||
2011-06-09 | s3-talloc Change TALLOC_ZERO_ARRAY() to talloc_zero_array() | Andrew Bartlett | 1 | -1/+1 | |
Using the standard macro makes it easier to move code into common, as TALLOC_ZERO_ARRAY isn't standard talloc. | |||||
2011-06-09 | s3-talloc Change TALLOC_P() to talloc() | Andrew Bartlett | 1 | -2/+2 | |
Using the standard macro makes it easier to move code into common, as TALLOC_P isn't standard talloc. | |||||
2011-06-09 | s3-talloc Change TALLOC_ARRAY() to talloc_array() | Andrew Bartlett | 1 | -9/+9 | |
Using the standard macro makes it easier to move code into common, as TALLOC_ARRAY isn't standard talloc. | |||||
2011-06-09 | s3-talloc Change TALLOC_REALLOC_ARRAY() to talloc_realloc() | Andrew Bartlett | 1 | -1/+1 | |
Using the standard macro makes it easier to move code into common, as TALLOC_REALLOC_ARRAY isn't standard talloc. Andrew Bartlett | |||||
2011-06-08 | s3-winbindd: make sure we obey the -n switch also for samlogon cache access. | Günther Deschner | 1 | -0/+4 | |
Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Wed Jun 8 14:44:31 CEST 2011 on sn-devel-104 | |||||
2011-05-06 | s3: only include tdb headers where needed. | Günther Deschner | 1 | -0/+1 | |
Guenther | |||||
2011-05-05 | More simple const fixups. | Jeremy Allison | 1 | -2/+2 | |
2011-04-01 | s3: Fix Coverity ID 1137: CONSTANT_EXPRESSION_RESULT | Volker Lendecke | 1 | -2/+2 | |
Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Fri Apr 1 09:35:19 CEST 2011 on sn-devel-104 | |||||
2011-03-30 | s3-passdb: use passdb headers where needed. | Günther Deschner | 1 | -0/+1 | |
Guenther | |||||
2011-03-30 | s3-winbindd: copy acct_info to wb_acct_info so we dont need passdb for it. | Günther Deschner | 1 | -4/+4 | |
Guenther | |||||
2011-03-30 | s3-includes: only include system/filesys.h when needed. | Günther Deschner | 1 | -0/+1 | |
Guenther | |||||
2011-03-06 | s3: Remove unused args from nss_get_info_cached | Volker Lendecke | 1 | -1/+0 | |
2011-03-06 | s3: Remove unused args from nss_get_info | Volker Lendecke | 1 | -1/+1 | |
2011-01-21 | s3:winbind: Protect against invalid winbindd_cache entries in lookuprids | Volker Lendecke | 1 | -1/+2 | |
2010-12-19 | s3: wcache_invalidate_samlogon only needs the SID | Volker Lendecke | 1 | -7/+4 | |
2010-12-19 | s3: netsamlogon_clear_cached_user only needs the SID | Volker Lendecke | 1 | -1/+1 | |
2010-11-22 | s3: Use sid_check_is.. | Volker Lendecke | 1 | -2/+2 | |
2010-11-18 | s3: Call sid_check_is_domain instead of dom_sid_equal | Volker Lendecke | 1 | -1/+1 | |
Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Thu Nov 18 15:32:32 UTC 2010 on sn-devel-104 | |||||
2010-11-08 | s3:winbind add wcache_tdc_fetch_domainbysid | Christian Ambach | 1 | -0/+52 | |
add a function to lookup a domain in the winbind cache by domain SID | |||||
2010-11-08 | s3: Put some parentheses around conditionals | Volker Lendecke | 1 | -2/+2 | |
2010-11-08 | s3: Consistently use stdbool types in new code | Volker Lendecke | 1 | -11/+11 | |
2010-11-08 | s3:winbind add timeouts to winbind cache | Christian Ambach | 1 | -14/+57 | |
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-10-12 | libcli/security Provide a common, top level libcli/security/security.h | Andrew Bartlett | 1 | -1/+1 | |
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-09-27 | Change to using TDB_INCOMPATIBLE_HASH (the jenkins hash) on all | Jeremy Allison | 1 | -2/+5 | |
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-21 | s3-winbindd: another attempt to fix the non-ldap build. | Günther Deschner | 1 | -0/+3 | |
Guenther | |||||
2010-09-20 | s3-util_sid: use shared dom_sid_compare_auth and dom_sid_equal_X functions. | Günther Deschner | 1 | -3/+4 | |
Guenther | |||||
2010-09-19 | s3/winbind: remove unused winbindd_check_cache_size | Björn Jacke | 1 | -29/+0 | |
2010-09-09 | s3: Remove "mem_ctx" from wcache_save_creds() | Volker Lendecke | 1 | -1/+0 | |
2010-09-09 | s3: Remove "mem_ctx" from lookup_cached_name() | Volker Lendecke | 1 | -2/+1 | |
2010-08-05 | s3: avoid global include of ads.h. | Günther Deschner | 1 | -0/+1 | |
Guenther | |||||
2010-07-13 | s3-winbind: Don't cache queries to builtin and own sam domain. | Andreas Schneider | 1 | -3/+29 | |
2010-07-06 | s3-winbind: Fixed the winbind caching. | Günther Deschner | 1 | -0/+8 | |
2010-07-01 | s3-nss_info: only include nss_info.h where needed. | Günther Deschner | 1 | -0/+1 | |
Guenther | |||||
2010-05-21 | s3:dom_sid Global replace of DOM_SID with struct dom_sid | Andrew Bartlett | 1 | -32/+32 | |
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-03-06 | s3: Fix unnecessary traversing winbindd_cache.tdb in SIGHUP handler. | Bo Yang | 1 | -0/+6 | |
Signed-off-by: Bo Yang <boyang@samba.org> | |||||
2010-02-09 | s3: Don't invalidate cache for uninitialized domains. | Bo Yang | 1 | -0/+27 | |
Signed-off-by: Bo Yang <boyang@samba.org> | |||||
2010-01-13 | s3: Fix a winbind segfault in "trusted_domains" | Volker Lendecke | 1 | -3/+4 | |
We have to initialize domain->backend by calling "get_cache" before doing a query Thanks to Christian Ambach to find this :-) | |||||
2010-01-10 | s3: Replace most calls to sid_append_rid() by sid_compose() | Volker Lendecke | 1 | -2/+1 | |
2010-01-06 | s3: List trusted domains from wcache when domain is offline. | Bo Yang | 1 | -24/+139 | |
Signed-off-by: Bo Yang <boyang@samba.org> | |||||
2010-01-06 | s3: Make winbindd_cache.c aware of domain offline to avoid unnecessary ↵ | Bo Yang | 1 | -2/+263 | |
backend query. Signed-off-by: Bo Yang <boyang@samba.org> | |||||
2009-12-28 | s3: Pass netr_DomainTrustList instead of names and sids through ↵ | Volker Lendecke | 1 | -11/+2 | |
(*trusted_domains) | |||||
2009-12-28 | s3: Remove some unused code | Volker Lendecke | 1 | -101/+0 | |
Watch the #if 0 -- we never stored this in the cache anymore | |||||
2009-12-26 | s3: Fix a typo found by Matthias Dieter Wallnöfer <mdw@samba.org> -- thanks :-) | Volker Lendecke | 1 | -1/+1 | |
2009-12-26 | s3: Replace IS_DOMAIN_OFFLINE by a function | Volker Lendecke | 1 | -2/+2 | |
2009-12-23 | s3: wbinfo --ping-dc is not cacheable | Volker Lendecke | 1 | -0/+1 | |