Andrew Bartlett
5e26e94092
s3-talloc Change TALLOC_ZERO_ARRAY() to talloc_zero_array()
...
Using the standard macro makes it easier to move code into common, as
TALLOC_ZERO_ARRAY isn't standard talloc.
2011-06-09 12:40:08 +02:00
Andrew Bartlett
3d15137653
s3-talloc Change TALLOC_ARRAY() to talloc_array()
...
Using the standard macro makes it easier to move code into common, as
TALLOC_ARRAY isn't standard talloc.
2011-06-09 12:40:08 +02:00
Volker Lendecke
ddfeccc6e4
s3: Use wbcSidsToUnixIds in create_local_token
...
Signed-off-by: Jeremy Allison <jra@samba.org>
2011-04-13 14:13:25 -07:00
Günther Deschner
2f36ef7225
s3-passdb: add passdb.h where needed.
...
Guenther
2011-03-30 01:13:07 +02:00
Günther Deschner
d85f140826
s3-winbind: remove global inclusion of libwbclient.
...
Guenther
2011-03-30 01:13:06 +02:00
Volker Lendecke
16b007c223
Quite some callers of sid_split_rid do not care about the rid
2011-03-10 18:48:34 +01:00
Volker Lendecke
ae28029f67
s3: Remove an obsolete comment
2011-03-03 22:08:49 +01:00
Gregor Beck
6710561c27
s3: add functions to remove entries from idmap memcache
2011-02-28 12:58:43 +01:00
Gregor Beck
01e7611050
s3: add functions to flush the idmap memcache
2011-02-28 12:58:37 +01:00
Volker Lendecke
ecb65332ea
s3: Fix some nonempty blank lines
2011-02-22 19:18:57 +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
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
Günther Deschner
2b41f421fd
s3-idmap: only include idmap headers where needed.
...
Guenther
2010-08-26 00:20:29 +02:00
Günther Deschner
aba1bf4b5e
s3-build: only include memcache.h where needed.
...
Guenther
2010-08-26 00:20:28 +02:00
Günther Deschner
c136b84f0d
s3-secrets: only include secrets.h when needed.
...
Guenther
2010-08-05 10:12:25 +02:00
Andreas Schneider
a81b97ff34
s3-passdb: Make sure that we don't assign garbage.
2010-06-28 10:18:12 +02:00
Simo Sorce
0a7ff14617
s3:passdb Export function to calculate the proper primary group sid
...
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>
2010-06-07 22:53:08 +10:00
Günther Deschner
f9f8007361
s3-build: only use ndr_security.h where needed.
...
Guenther
2010-05-31 11:32:37 +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
Jelmer Vernooij
b8268cf7b0
s3: Remove use of iconv_convenience.
2010-05-18 11:45:31 +02:00
Volker Lendecke
5197d76faa
s3: Make a debug msg more readable
2010-04-28 10:55:50 +02:00
Volker Lendecke
48251c3370
s3: Use sid_check_is_in_our_domain instead of a direct sid_peek_check_rid
2010-01-10 20:56:16 +01:00
Volker Lendecke
3ea64e0ad8
s3: Replace most calls to sid_append_rid() by sid_compose()
2010-01-10 20:56:16 +01:00
Michael Adam
30ab3a762e
s3:passdb: remove the uid_to_rid method - we only need uid_to_sid
...
Michael
2009-11-14 01:28:50 +01:00
Günther Deschner
1f4d26c487
s3-lsa: allow to lookup BUILTIN\ in lsa_LookupNames.
...
Found by RPC-LSA-LOOKUPNAMES torture test.
Guenther
2009-10-20 15:28:31 +02:00
Volker Lendecke
a488334bf1
Rename LOOKUP_NAME_EXPLICIT to LOOKUP_NAME_NO_NSS
...
It took me a bit to understand what this flag does. I hope this is
a bit clearer, at least it is to me.
2009-07-31 23:19:05 +02:00
Michael Adam
a4bc5bfa95
s3:passdb: fix bug #6509 : use gid (not uid) cache in fetch_gid_from_cache().
...
With the previous code, the cache can never have been hit at all.
Michael
2009-06-26 14:15:44 +02:00
Marc VanHeyningen
75de7c0e87
s3: zero an uninitialized array
...
Invalid pointers were being dereferenced in lookup_sids causing
occasional seg faults.
Signed-off-by: Tim Prouty <tprouty@samba.org>
2009-05-27 12:37:35 -07:00
Aravind Srinivasan
5aefb44bf0
s3: Fallback to the legacy sid_to_(uid|gid) instead of returning NULL.
...
This is very similar to be1dfff02d562e42a7847bd02fed8538630d3f41
2009-05-12 17:13:40 -07: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
Volker Lendecke
f91565544f
Fix bug 6097
...
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!
2009-03-24 11:59:42 +01:00
Tim Prouty
ef89c4bc0d
s3 passdb: Add back some useful debug statements
...
Originally removed in be1dfff02d562e42a7847bd02fed8538630d3f41
2009-03-03 16:49:36 -08:00
Dan Sledz
be1dfff02d
It appears that the first time we see a uid/gid that winbind can't map,
...
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.
2009-03-02 16:50:19 -08:00
Jelmer Vernooij
08259c1c52
Add iconv_convenience argument to size functions.
2009-01-01 04:45:33 +01:00
Günther Deschner
992c03a192
s4-lsa: merge lsa_LookupSids/{2,3} from s3 lsa idl.
...
Guenther
2008-10-27 19:33:23 +01:00
Simo Sorce
3fa16da8c7
Revert "Split lookup_name() and create a new functiong called"
...
This reverts commit 8594edf666c29fd4ddf1780da842683dd81483b6.
(This used to be commit ad462e2e2d025a7fc23e7dea32b2b442b528970b)
2008-09-03 14:36:43 -04:00
Simo Sorce
c5894e1477
Merge branch 'v3-devel' of ssh://git.samba.org/data/git/samba into v3-devel
...
(This used to be commit 8e4dca3b9416d9b5e535bda5e4befc073bfc1641)
2008-09-03 11:52:54 -04:00
Jeremy Allison
dc3f6b0861
Fix bug spotted by Simo - don't use legacy if expired entry.
...
Jeremy.
(This used to be commit a7bbd33139c5835cf32efdbe0ef187117699e3e4)
2008-08-26 18:05:34 -07:00
Jeremy Allison
d1f140a9ba
Don't ask winbindd if we got a -ve cache entry.
...
Jeremy.
(This used to be commit 91f85d0dcaa917b7a90a77852f3a778a0ad99c4d)
2008-08-26 16:14:25 -07:00
Simo Sorce
a1de4e988d
Merge branch 'v3-devel' of ssh://git.samba.org/data/git/samba into v3-devel
...
(This used to be commit e038f1cf9fb305fc1e7a4189208e451d30aaa1f0)
2008-08-26 18:56:49 -04:00
Jeremy Allison
95cc5ee395
Fix the build :-(. Ask winbindd if we find a negative cache entry (or should
...
we just call the legacy function ?).
Jeremy.
(This used to be commit 566d3b6e76afeca8e862cb36202a5283b86920e4)
2008-08-26 15:51:56 -07:00
Jeremy Allison
d2f223d83d
Get smbd to look (read-only) into the winbindd cache for uid/gid <--> sid mappings.
...
Jeremy.
(This used to be commit 31ba955d6950420096b9141454aa95b2510a3d9a)
2008-08-26 14:52:11 -07:00
Simo Sorce
5e7655fa27
Split lookup_name() and create a new functiong called
...
lookup_domain_name(). This new function accept separated
strings for domain and name.
(This used to be commit 8594edf666c29fd4ddf1780da842683dd81483b6)
2008-08-17 19:54:41 -04:00
Volker Lendecke
e613ecbea5
Revert "Make use of sid_check_is_in_unix_users/groups"
...
This reverts commit cd8e63b2b45402091d6d328b3c6ca593fc19ac92.
(This used to be commit 061e55d4f48d269dc45fad6739e0872501b9433d)
2008-07-11 17:53:25 +02:00
Volker Lendecke
68071e94a5
Revert "Don't scream, better explain a bit in comments"
...
This reverts commit dcc39ed00453a075b23daece2844ca4817bfbfaf.
(This used to be commit 26ca09a3570a0df051d042bef586ea57ad9f198c)
2008-07-11 17:53:25 +02:00
Volker Lendecke
d803fa6e46
Revert "Remove an unused variable"
...
This reverts commit 454cb852e06fa3d8bdd0eebb3ebdb24b3d74ecd0.
(This used to be commit cae8ec3199d5b0ffe0bfb6f15adaa5a12343c763)
2008-07-11 17:53:25 +02:00
Volker Lendecke
b611fd9550
Remove an unused variable
...
(This used to be commit 454cb852e06fa3d8bdd0eebb3ebdb24b3d74ecd0)
2008-07-03 16:44:13 +02:00
Volker Lendecke
d1635687ae
Don't scream, better explain a bit in comments
...
(This used to be commit dcc39ed00453a075b23daece2844ca4817bfbfaf)
2008-07-03 11:08:51 +02:00
Volker Lendecke
abb42b267b
Make use of sid_check_is_in_unix_users/groups
...
Don't replicate code unnecessarily
(This used to be commit cd8e63b2b45402091d6d328b3c6ca593fc19ac92)
2008-07-03 11:08:51 +02:00
Volker Lendecke
3643aa9a63
Fix a panic in the [ug]id2sid valgrind bug fix
...
Always, always run "make test" before pushing stuff :-)
(This used to be commit 1444db8be1de00a3e9c805f1accd8f1f4670d729)
2008-05-06 13:56:21 +02:00