1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-27 08:23:49 +03:00
Commit Graph

21 Commits

Author SHA1 Message Date
Jeremy Allison
e61ad0c158 Split the winbindd_passdb backend into a 'builtin' and a 'sam'
backend. This allows winbindd when running on a Samba PDC to
correctly answer wbinfo -u lists and other queries.
Jeremy.
2008-05-30 23:49:36 -07:00
Steven Danneman
037b9689d9 Make WINBINDD_LIST_GROUPS handler asynchronous.
Previously WINBINDD_LIST_GROUPS requests (ex: wbinfo -g) were handled by the
winbindd parent process in a sequential fashion.  This patch, delegates the work
to the winbindd children so that the request is handled much faster in large
domain topologies, and doesn't block the parent from receiving new requests.

The core group enumeration and conversion that was handled in
winbindd_list_groups() has been moved into winbindd_dual_list_groups() to be
done by the child.

The parent winbindd_list_groups() simply calls each of the children
asynchronously.

listgroups_recv() aggregates the final group list that will be returned to the
client and tracks how many of the children have returned their lists.

The domain name of the child is passed back through the callbacks to be used in
debugging messages.

There are also several fixes to typos in various comments.
2008-05-22 13:55:57 -05:00
Michael Adam
e489f3d988 winbindd_cache: simplify logic in new key length check for UA keys.
This reduces indentation by combining common code paths,
and wraps long lines.

Holger: sorry, I could not resist. I think it is much easier to
understand what is going on when we only have one check and
determine the max allowed key length in advance.

Michael
2008-04-23 14:55:51 +02:00
Holger Hetterich
fcd35232e1 winbindd_cache: recognize and allow longer UA keys
UA keys consist of a potientally large number of concatenated SID strings which
can grow much larger than 1024 bytes in complex environments. We catch those keys
and allow them exclusivly to be larger.
2008-04-23 13:57:14 +02:00
Michael Adam
641b5e3fec winbindd: only call winbindd_validate_cache when not in offline logon mode.
originally, the cache was cleared before calling validate, but
this way, we skipt the validation of the database when not in
offline logon mode.

This is put into a new wrapper function winbindd_cache_validate_and_initialize()
which is now called in winbindd.c instead calling validate and
initialize functions separately.

Michael
2008-04-10 13:23:30 +02:00
Bo Yang
8671f9767d Only cache password policy results that worked, otherwise we
cannot login until the cache expires even if a connection
to a DC has been restored.
2008-04-07 09:51:42 -04:00
Michael Adam
6d3fc63bfa winbindd_cache: add missing validation function for pwinfo cache entry
Michael
2008-03-29 02:10:41 +01:00
Volker Lendecke
0d617f639a Fix wbinfo -a trusted\\user%password on a Samba DC with trusts
Winbind can't be allowed to connect to the local smbd.
2008-03-27 13:11:10 +01:00
Günther Deschner
d9502eb753 Use netr_SamInfo3 everywhere in winbindd.
Guenther
2008-02-17 02:12:00 +01:00
Günther Deschner
dd9fa33e96 Use rpccli_samr_QueryDomainInfo() in winbindd.
Guenther
2008-02-06 02:09:44 +01:00
Michael Adam
3f89aea8e4 Fix prototype: Add a void to an empty function parameter list.
Michael
2008-01-09 01:47:10 +01:00
Michael Adam
6f673b7f10 Use the proper boolean constants.
Michael
2008-01-07 11:27:54 +01:00
Michael Adam
dba24ceae7 Make wcache_invalidate_cache() return bool, not int.
Michael
2008-01-07 10:59:14 +01:00
Michael Adam
66fc1db1d1 Add some braces to if statement.
Michael
2008-01-07 10:41:09 +01:00
Andreas Schneider
d0c0f91fb9 Prevent winbindd from segfaulting due to corrupted cache tdb.
If we try to flush the caches and due to a corrupted tdb we and have no tdb
context close the tdb and validate it. Initialize the cache afterwards again.
2008-01-07 10:24:34 +01:00
Volker Lendecke
eb523ba776 s/sid_to_string/sid_to_fstring/
least surprise for callers
2007-12-15 22:47:30 +01:00
Volker Lendecke
c7c885078b Replace sid_string_static with sid_to_string
This adds 28 fstrings on the stack, but I think an fstring on the stack is
still far better than a static one.
2007-12-15 22:09:37 +01:00
Volker Lendecke
bb35e794ec Replace sid_string_static by sid_string_dbg in DEBUGs 2007-12-15 22:09:36 +01:00
Andreas Schneider
aabe9b33fc Don't restart winbind if a corrupted tdb is found during initialization.
The tdb is validated before it gets initialized. Since then sighandlers changed
a restart isn't needed anymore.
2007-12-12 13:51:13 +01:00
Jeremy Allison
f35a266b3c RIP BOOL. Convert BOOL -> bool. I found a few interesting
bugs in various places whilst doing this (places that assumed
BOOL == int). I also need to fix the Samba4 pidl generation
(next checkin).
Jeremy.
2007-10-18 17:40:25 -07:00
Stefan Metzmacher
3ac7566ae1 r25154: move winbindd code into winbindd/
metze
2007-10-10 12:30:46 -05:00