summaryrefslogtreecommitdiffstats
path: root/source3/passdb/lookup_sid.c
Commit message (Collapse)AuthorAgeFilesLines
* pdb-interface: Do not use unid_t hereSimo Sorce2011-10-181-6/+8
| | | | | | | | This interface needs to be publicly available, unid_t here is not really useful and makes it harder to use it as unid_t is not a public union. Autobuild-User: Simo Sorce <idra@samba.org> Autobuild-Date: Tue Oct 18 20:57:16 CEST 2011 on sn-devel-104
* s3-group-mapping: Remove fstrings from GROUP_MAP.Simo Sorce2011-10-121-3/+9
| | | | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Wed Oct 12 19:28:12 CEST 2011 on sn-devel-104
* s3-id_cache: Move id caches mgmt out of smbdAndreas Schneider2011-08-211-65/+0
| | | | | | | | | | We must leave the MSG_IDMAP_KILL operation in SMBD as it uses smbd specific internal globals and makes sense only in the context of a smbd daemon. The rest is moved under lib/ as we need to deal with id cache cleanups in other daemons too (like lsasd). Signed-off-by: Simo Sorce <idra@samba.org>
* s3-talloc Change TALLOC_ZERO_ARRAY() to talloc_zero_array()Andrew Bartlett2011-06-091-2/+2
| | | | | Using the standard macro makes it easier to move code into common, as TALLOC_ZERO_ARRAY isn't standard talloc.
* s3-talloc Change TALLOC_ARRAY() to talloc_array()Andrew Bartlett2011-06-091-5/+5
| | | | | Using the standard macro makes it easier to move code into common, as TALLOC_ARRAY isn't standard talloc.
* s3: Use wbcSidsToUnixIds in create_local_tokenVolker Lendecke2011-04-131-0/+103
| | | | Signed-off-by: Jeremy Allison <jra@samba.org>
* s3-passdb: add passdb.h where needed.Günther Deschner2011-03-301-0/+1
| | | | Guenther
* s3-winbind: remove global inclusion of libwbclient.Günther Deschner2011-03-301-0/+1
| | | | Guenther
* Quite some callers of sid_split_rid do not care about the ridVolker Lendecke2011-03-101-2/+1
|
* s3: Remove an obsolete commentVolker Lendecke2011-03-031-3/+1
|
* s3: add functions to remove entries from idmap memcacheGregor Beck2011-02-281-0/+52
|
* s3: add functions to flush the idmap memcacheGregor Beck2011-02-281-0/+14
|
* s3: Fix some nonempty blank linesVolker Lendecke2011-02-221-10/+10
|
* libcli/security Provide a common, top level libcli/security/security.hAndrew Bartlett2010-10-121-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
* s3-util_sid: use shared dom_sid_compare_auth and dom_sid_equal_X functions.Günther Deschner2010-09-201-3/+4
| | | | Guenther
* s3-idmap: only include idmap headers where needed.Günther Deschner2010-08-261-0/+1
| | | | Guenther
* s3-build: only include memcache.h where needed.Günther Deschner2010-08-261-0/+1
| | | | Guenther
* s3-secrets: only include secrets.h when needed.Günther Deschner2010-08-051-0/+1
| | | | Guenther
* s3-passdb: Make sure that we don't assign garbage.Andreas Schneider2010-06-281-1/+1
|
* s3:passdb Export function to calculate the proper primary group sidSimo Sorce2010-06-071-0/+124
| | | | | | | | Don't keep it buried in passdb, this function need to be available for use in places where we do not want to construct an artificial samu struct just to play tricks. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s3-build: only use ndr_security.h where needed.Günther Deschner2010-05-311-0/+1
| | | | Guenther
* s3:dom_sid Global replace of DOM_SID with struct dom_sidAndrew Bartlett2010-05-211-26/+26
| | | | | | | | | | 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>
* s3: Remove use of iconv_convenience.Jelmer Vernooij2010-05-181-8/+8
|
* s3: Make a debug msg more readableVolker Lendecke2010-04-281-1/+1
|
* s3: Use sid_check_is_in_our_domain instead of a direct sid_peek_check_ridVolker Lendecke2010-01-101-4/+2
|
* s3: Replace most calls to sid_append_rid() by sid_compose()Volker Lendecke2010-01-101-10/+5
|
* s3:passdb: remove the uid_to_rid method - we only need uid_to_sidMichael Adam2009-11-141-4/+1
| | | | Michael
* s3-lsa: allow to lookup BUILTIN\ in lsa_LookupNames.Günther Deschner2009-10-201-0/+8
| | | | | | Found by RPC-LSA-LOOKUPNAMES torture test. Guenther
* Rename LOOKUP_NAME_EXPLICIT to LOOKUP_NAME_NO_NSSVolker Lendecke2009-07-311-4/+8
| | | | | It took me a bit to understand what this flag does. I hope this is a bit clearer, at least it is to me.
* s3:passdb: fix bug #6509: use gid (not uid) cache in fetch_gid_from_cache().Michael Adam2009-06-261-1/+1
| | | | | | With the previous code, the cache can never have been hit at all. Michael
* s3: zero an uninitialized arrayMarc VanHeyningen2009-05-271-1/+4
| | | | | | | Invalid pointers were being dereferenced in lookup_sids causing occasional seg faults. Signed-off-by: Tim Prouty <tprouty@samba.org>
* s3: Fallback to the legacy sid_to_(uid|gid) instead of returning NULL.Aravind Srinivasan2009-05-121-9/+4
| | | | This is very similar to be1dfff02d562e42a7847bd02fed8538630d3f41
* Fix a bunch of compiler warnings about wrong format types.Jeremy Allison2009-05-111-2/+2
| | | | | Should make Solaris 10 builds look cleaner. Jeremy.
* Fix bug 6097Volker Lendecke2009-03-241-1/+1
| | | | | | | A client sent a SID with authority 0 and 0 sub-authorities. W2k3 replies with NT_STATUS_INVALID_SID, even if other SIDs in the list are valid. Thanks to Pavel <wylda@volny.cz> for the bug report!
* s3 passdb: Add back some useful debug statementsTim Prouty2009-03-031-18/+24
| | | | Originally removed in be1dfff02d562e42a7847bd02fed8538630d3f41
* It appears that the first time we see a uid/gid that winbind can't map,Dan Sledz2009-03-021-14/+22
| | | | | | | | | | we end up returning the null sid instead of falling back to the legacy code. Next time through the code we'll hit the negative cache and do the right thing, but we still fail the first time. If we fail the winbind id to sid mapping, call the legacy version. This catches the case where we don't have a negative cache entry for the mapping. This is better than returning the NULL sid to the caller.
* Add iconv_convenience argument to size functions.Jelmer Vernooij2009-01-011-8/+8
|
* s4-lsa: merge lsa_LookupSids/{2,3} from s3 lsa idl.Günther Deschner2008-10-271-4/+4
| | | | Guenther
* Revert "Split lookup_name() and create a new functiong called"Simo Sorce2008-09-031-93/+78
| | | | | This reverts commit 8594edf666c29fd4ddf1780da842683dd81483b6. (This used to be commit ad462e2e2d025a7fc23e7dea32b2b442b528970b)
* Merge branch 'v3-devel' of ssh://git.samba.org/data/git/samba into v3-develSimo Sorce2008-09-031-4/+38
|\ | | | | | | (This used to be commit 8e4dca3b9416d9b5e535bda5e4befc073bfc1641)
| * Fix bug spotted by Simo - don't use legacy if expired entry.Jeremy Allison2008-08-261-4/+4
| | | | | | | | | | Jeremy. (This used to be commit a7bbd33139c5835cf32efdbe0ef187117699e3e4)
| * Don't ask winbindd if we got a -ve cache entry.Jeremy Allison2008-08-261-4/+38
| | | | | | | | | | Jeremy. (This used to be commit 91f85d0dcaa917b7a90a77852f3a778a0ad99c4d)
* | Merge branch 'v3-devel' of ssh://git.samba.org/data/git/samba into v3-develSimo Sorce2008-08-261-33/+63
|\| | | | | | | (This used to be commit e038f1cf9fb305fc1e7a4189208e451d30aaa1f0)
| * Fix the build :-(. Ask winbindd if we find a negative cache entry (or shouldJeremy Allison2008-08-261-5/+17
| | | | | | | | | | | | we just call the legacy function ?). Jeremy. (This used to be commit 566d3b6e76afeca8e862cb36202a5283b86920e4)
| * Get smbd to look (read-only) into the winbindd cache for uid/gid <--> sid ↵Jeremy Allison2008-08-261-33/+51
| | | | | | | | | | | | | | mappings. Jeremy. (This used to be commit 31ba955d6950420096b9141454aa95b2510a3d9a)
* | Split lookup_name() and create a new functiong calledSimo Sorce2008-08-171-78/+93
|/ | | | | | lookup_domain_name(). This new function accept separated strings for domain and name. (This used to be commit 8594edf666c29fd4ddf1780da842683dd81483b6)
* Revert "Make use of sid_check_is_in_unix_users/groups"Volker Lendecke2008-07-111-16/+11
| | | | | This reverts commit cd8e63b2b45402091d6d328b3c6ca593fc19ac92. (This used to be commit 061e55d4f48d269dc45fad6739e0872501b9433d)
* Revert "Don't scream, better explain a bit in comments"Volker Lendecke2008-07-111-8/+10
| | | | | This reverts commit dcc39ed00453a075b23daece2844ca4817bfbfaf. (This used to be commit 26ca09a3570a0df051d042bef586ea57ad9f198c)
* Revert "Remove an unused variable"Volker Lendecke2008-07-111-0/+1
| | | | | This reverts commit 454cb852e06fa3d8bdd0eebb3ebdb24b3d74ecd0. (This used to be commit cae8ec3199d5b0ffe0bfb6f15adaa5a12343c763)
* Remove an unused variableVolker Lendecke2008-07-031-1/+0
| | | | (This used to be commit 454cb852e06fa3d8bdd0eebb3ebdb24b3d74ecd0)