summaryrefslogtreecommitdiffstats
path: root/source3/winbindd
Commit message (Collapse)AuthorAgeFilesLines
* s3:winbindd: we don't need to call message_dispatch() anymore it's event ↵Stefan Metzmacher2009-01-222-10/+0
| | | | | | triggered now metze
* s3: always call run_events() before and after sys_select()Stefan Metzmacher2009-01-222-9/+26
| | | | | | And always setup the fd events. metze
* Memory leaks and other fixes found by Coveritytodd stecher2009-01-214-6/+32
|
* s3:idmap_tdb: convert to the dbwrap apiStefan Metzmacher2009-01-191-244/+223
| | | | metze
* Fix the same bug as 8b618d0 fixes, this time in winbindd_passdb.cVolker Lendecke2009-01-191-2/+4
|
* s3:winbindd: put winbindd_cache.tdb into cache_dir, not lock_dir.Michael Adam2009-01-161-6/+6
| | | | Michael
* s3: make better use of ccache by not including version.h in every C-file.Michael Adam2009-01-152-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | version.h changes rather frequently. Since it is included via includes.h, this means each C file will be a cache miss. This applies to the following situations: * When building a new package with a new Samba version * building in a git branch after calling mkversion.sh after a new commit (i.e. virtually always) This patch improves the situation in the following way: * remove inlude "version.h" from includes.h * Use samba_version_string() instead of SAMBA_VERSION_STRING in files that use no other macro from version.h instead of SAMBA_VERSION_STRING. * explicitly include "version.h" in those files that use more macros from "version.h" than just SAMBA_VERSION_STRING. Michael
* Fix bug in get_dc_name_via_netlogon(), null pointer refrence.Bo Yang2009-01-141-1/+1
|
* Clean up comments a little.Jeremy Allison2009-01-141-11/+13
| | | | Jeremy.
* Don't send message to any other child in child process.Bo Yang2009-01-141-0/+30
| | | | Signed-off-by: Bo Yang <boyang@novell.com>
* From boyang - ensure we never "return" from a forked child, always _exit().Jeremy Allison2009-01-132-5/+5
| | | | Jeremy.
* Don't set child->requests to NULL in parent after forkBo Yang2009-01-101-1/+0
|
* refresh sequence number as soon as possible when domain->sequence_number == ↵boyang2009-01-071-3/+8
| | | | -1 or domain->last_status is not ok.
* Remove unused struct CLI_POLICY_HNDVolker Lendecke2009-01-071-7/+0
|
* Make winbindd_cm.c use winbindd_reinit_after_fork().Jeremy Allison2009-01-064-31/+37
| | | | Jeremy.
* Add winbindd_reinit_after_fork(), cleaning out all possible eventsJeremy Allison2009-01-061-52/+76
| | | | | in a forked child. Jeremy.
* Factor out lots of common code into a function.Jeremy Allison2009-01-061-37/+27
| | | | Jeremy.
* s3-samr: avoid all init_samr_Domain* functions.Günther Deschner2009-01-061-18/+12
| | | | Guenther
* set entry->refresh_time to make ccache_regain_all_now() work correctly.Bo Yang2009-01-051-2/+11
|
* s3:winbindd: also handle fd events from the winbind_event_context()Stefan Metzmacher2009-01-051-0/+9
| | | | metze
* s3:events: change event_add_timed() prototype to match samba4Stefan Metzmacher2009-01-053-27/+8
| | | | metze
* s3:winbindd: regain tickets for all ccache entries, when we go onlineStefan Metzmacher2009-01-053-7/+52
| | | | | | | set_event_dispatch_time() is stupid by design and only handles the first event with a given name. metze
* s3:winbindd: cancel all ccache entry events and not just oneStefan Metzmacher2009-01-053-6/+19
| | | | | | | cancel_named_event() is stupid by design and also only cancels one single event. metze
* s3:winbindd: recreate the per domain check_online_event without relying on ↵Stefan Metzmacher2009-01-051-19/+20
| | | | | | | | | global state set_event_dispatch_time() is stupid by design and just picks the first event with the given name. metze
* s3:winbindd: rename fd_event => winbindd_fd_eventStefan Metzmacher2009-01-053-26/+22
| | | | | | It's really confusing to have two versions of 'fd_event' metze
* s3:winbindd: move WINBINDD_CCACHE_ENTRY and WINBINDD_MEMORY_CREDS to winbindd.hStefan Metzmacher2009-01-051-1/+28
| | | | metze
* Fix broken krb5 refresh chainBo Yang2009-01-053-39/+236
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* clean event context after child is forked.Bo Yang2009-01-053-18/+28
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* Remove wb_trans_send/recvVolker Lendecke2009-01-041-9/+0
|
* Move winbindd/winbindd_reqtrans.c to lib/wb_reqtrans.cVolker Lendecke2009-01-041-685/+0
|
* struct async_req doesn't really need to carry an event_contextVolker Lendecke2009-01-031-5/+5
|
* Alternative fix for 45db33e73 and 0d443ae7931Volker Lendecke2009-01-021-1/+2
| | | | | | | | | | | | | Simo is right, we need to ask passdb first. At least this fixes a nasty to find NT_STATUS_ACCESS_DENIED problem in the build farm for the test run I just did on host "opi". Michael, can you re-check if this also fixes the error you found, leading to the two fixes? Thanks, Volker
* Revert "s:Fix uid_to_sid mapping when the idmap cache is empty."Volker Lendecke2009-01-021-7/+8
| | | | This reverts commit 9a9b64dbdfce4414ada22d4f882c8c757b5813e1.
* Revert "s3:idmap: Remove passd check from idmap_backends_unixid_to_sid()."Volker Lendecke2009-01-021-0/+9
| | | | This reverts commit 45db33e73262d8e195a46fb96405dfb3dc43d6bc.
* Fix more asprintf and "ignoring return code" warnings from gcc 4.3.Jeremy Allison2008-12-312-2/+7
| | | | Jeremy.
* s3:winbindd: we don't need to call messaging_reinit() twiceStefan Metzmacher2008-12-311-7/+0
| | | | | | reinit_after_fork() already calls messaging_reinit() metze
* s3:idmap: Remove passd check from idmap_backends_unixid_to_sid().Michael Adam2008-12-251-9/+0
| | | | | | | | | | | | | As noted by Metzy, it makes no sense here to check id->sid. What is worse, this might even be passed in uninitialized. This still fixes the bug for me (of course), but we might need to check, if another special handling of passdb is needed (possibly changing from constant return code NT_STATUS_OK...) Michael Signed-off-by: Michael Adam <obnox@samba.org>
* s:Fix uid_to_sid mapping when the idmap cache is empty.Michael Adam2008-12-251-8/+7
| | | | | | | | | | | | | | | | | This failed for backends other than passed, since idmap_backends_unixid_to_sid() always asked passdb first, which returned Success no matter whether a mapping was found or not. One effect wast that getpwuid failed after "net cache flush". Only after filling the cache with a getpwnam call it succeeded. This fix makes the behaviour of idmap_backends_unixid_to_sid() exactly the same as that of idmap_backends_sid_to_unixid() Michael Signed-off-by: Michael Adam <obnox@samba.org>
* Fix "allow trusted domain" so it disables trusted domains.Gerald (Jerry) Carter2008-12-221-2/+11
|
* Fix a "ignoring function call result" warningVolker Lendecke2008-12-191-1/+6
|
* Make cli_negprot return NTSTATUS instead of boolVolker Lendecke2008-12-191-3/+4
|
* winbindd: vars for signals must be volatile sig_atomic_tSATOH Fumiyasu2008-12-121-12/+12
|
* Add wb_trans_send/revcVolker Lendecke2008-12-082-33/+166
|
* Add infrastructure to transfer winbindd_request/response asynchronouslyVolker Lendecke2008-12-082-0/+582
|
* Fix nonempty blank linesVolker Lendecke2008-12-072-39/+39
|
* s3:winbindd: fix horrible mis-indentation of toplvl braces in ↵Michael Adam2008-12-041-2/+2
| | | | | | | | getgrsid_sid2gid_recv to make code more readble Michael
* s3:winbindd: don't open a new dc connection in winbindd_getpwnam (main winbindd)Michael Adam2008-12-041-1/+1
| | | | | | | This is just to find the corresponding domain struct. Actual connection is handled by the domain child. Michael
* s3:winbindd: don't open a new dc connection in winbindd_getgrnam (main winbindd)Michael Adam2008-12-041-1/+1
| | | | | | | This is just to find the corresponding domain struct. Actual connection is handled by the domain child. Michael
* s3: Change sockaddr util function names for consistencyTim Prouty2008-12-031-1/+1
| | | | Also eliminates name conflicts with OneFS system libraries
* s3: Fix 'ctx' might be used unitialized warningsTim Prouty2008-12-011-2/+2
|