summaryrefslogtreecommitdiffstats
path: root/source3/winbindd/winbindd.c
Commit message (Collapse)AuthorAgeFilesLines
...
* s3:winbind: Convert WINBINDD_GETSIDALIASES to the new APIVolker Lendecke2009-08-051-2/+2
|
* s3:winbind: Convert WINBINDD_GETPWUID to the new APIVolker Lendecke2009-08-051-2/+2
|
* s3:winbind: Convert WINBINDD_GETPWNAM to the new APIVolker Lendecke2009-08-051-1/+2
|
* s3:winbind: Convert WINBINDD_GETPWSID to the new APIVolker Lendecke2009-08-051-1/+2
|
* s3:winbind: Convert WINBINDD_GID_TO_SID the new APIVolker Lendecke2009-08-051-1/+2
|
* s3:winbind: Convert WINBINDD_UID_TO_SID the new APIVolker Lendecke2009-08-051-1/+2
|
* s3:winbind: Convert WINBINDD_SID_TO_GID the new APIVolker Lendecke2009-08-051-1/+2
|
* s3:winbind: Convert WINBINDD_SID_TO_UID to the new APIVolker Lendecke2009-08-051-1/+2
|
* s3:winbind: Convert WINBINDD_LOOKUPNAME to the new APIVolker Lendecke2009-08-051-1/+2
|
* s3:winbind: Remove old version of WINBINDD_PINGVolker Lendecke2009-08-051-1/+0
|
* s3:winbind: Convert WINBINDD_LOOKUPSID to the new APIVolker Lendecke2009-08-051-1/+2
|
* Slightly restructure the async winbind request calling conventionVolker Lendecke2009-07-311-7/+12
| | | | The main loop now allocates the response, this has to be done everywhere
* Fix a valgrind error in winbindVolker Lendecke2009-07-271-1/+2
| | | | | | When looking for idle clients, we dereferenced state->response. As this is dynamically allocated now, the proper test is whether state->response exists at all. This is the case when an async operation is in process at that moment.
* Fix a winbind memleakVolker Lendecke2009-07-251-0/+1
|
* Make gencache more stableVolker Lendecke2009-07-151-0/+2
| | | | | | | | | | This provides a compromise between stability and performance: gencache is a persistent database these days that for performance reasons can not use tdb transactions for all writes. This patch splits up gencache into gencache.tdb and gencache_notrans.tdb. gencache_notrans is used with CLEAR_IF_FIRST, writes to it don't use transactions. By default every 5 minutes and when a program exits, all entries from _notrans.tdb are transferred to gencache.tdb in one transaction.
* Fix bug 4699: Remove pidfile on clean shutdownVolker Lendecke2009-06-181-0/+4
|
* Remove "winbindd_request" and "winbindd_response" from winbindd_cli_stateVolker Lendecke2009-06-141-6/+10
| | | | | This shrinks the memory footprint of an idle client by 5592 bytes to 60 bytes on my 32-bit box.
* Make winbindd_cli_state->response a pointer instead of a struct memberVolker Lendecke2009-06-141-12/+13
| | | | | | Same comment as in baa6084378e530b: This is just a preparatory checkin. Volker
* winbind: replace process_loop() by tevent_loop_once()Volker Lendecke2009-06-141-68/+5
|
* Make rescan_trusted_domains a timed eventVolker Lendecke2009-06-141-4/+8
|
* Do not store the listening fdeVolker Lendecke2009-06-141-15/+11
|
* Avoid scanning the client list when a client exitsVolker Lendecke2009-06-141-19/+6
|
* Add async wb_pingVolker Lendecke2009-06-141-0/+3
|
* Add an async wb request loopVolker Lendecke2009-06-141-0/+61
|
* Remove some unused codeVolker Lendecke2009-06-141-133/+0
|
* Convert the main winbind client communication to wb_reqtrans.cVolker Lendecke2009-06-141-124/+64
|
* Make winbindd_cli_state->request a pointer instead of a struct memberVolker Lendecke2009-06-141-24/+25
| | | | | | | | In itself, this is pretty pointless. But in the next steps I'll convert the winbind internal communication to wb_reqtrans which allocates the request properly. This minimizes the later diff. Volker
* s3: Allow child processes to exit gracefully if we are out of fdsMarc VanHeyningen2009-05-271-2/+3
| | | | | | | | | | When we run out of file descriptors for some reason, every new connection forks a child that immediately panics causing smbd to coredump. This seems unnecessarily harsh; with this code change we now catch that error and merely log a message about it and exit without the core dump. Signed-off-by: Tim Prouty <tprouty@samba.org>
* Fix a race condition in winbind leading to a panicVolker Lendecke2009-05-241-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | In winbind, we do multiple events in one select round. This needs fixing, but as long as we're still using it, for efficiency reasons we need to do that. What can happen is the following: We have outgoing data pending for a client, thus state->fd_event.flags == EVENT_FD_WRITE Now a new client comes in, we go through the list of clients to find an idle one. The detection for idle clients in remove_idle_client does not take the pending data into account. We close the socket that has pending outgoing data, the accept(2) one syscall later gives us the same socket. In new_connection(), we do a setup_async_read, setting up a read fde. The select from before however had found the socket (that we had already closed!!) to be writable. In rw_callback we only want to see a readable flag, and we panic in the SMB_ASSERT(flags == EVENT_FD_READ). Found using bin/smbtorture //127.0.0.1/tmp -U% -N 500 -o 2 local-wbclient Volker
* s3: ignore EPIPE error when winbind finally writes to wb client because ↵Bo Yang2009-05-221-2/+8
| | | | | | client might have already closed the socket Signed-off-by: Bo Yang <boyang@samba.org>
* Convert response.extra_data.data from malloc to tallocVolker Lendecke2009-05-121-12/+0
|
* Fix some type-punned warningsVolker Lendecke2009-05-071-4/+7
|
* Remove a misleading commentVolker Lendecke2009-05-071-2/+0
|
* s3:winbindd: accept new connections via fd eventsStefan Metzmacher2009-03-181-52/+100
| | | | metze
* s3:winbindd: move non event related code out of process_loop() in the the callerStefan Metzmacher2009-03-181-22/+21
| | | | metze
* Make opt_nocache static to winbindd.cVolker Lendecke2009-03-121-1/+11
|
* Fix careless mistake in winbindd_setup_sig_usr2_handlerBo Yang2009-03-041-1/+1
|
* More warning fixes for Solaris.Jeremy Allison2009-02-231-1/+1
| | | | Jeremy.
* s3: Implement wbcGetSidAliasesDan Sledz2009-02-111-0/+2
| | | | | | * Adds wbcGetSidAliases that calls the lookup_useraliases function. * Updates wbinfo and winbind_util.c to call the new function. * Also added winbind_get_groups helper function.
* s3: Implement wbcGetpwsidDan Sledz2009-02-111-0/+1
| | | | | | | | * Adds the plumbing required to lookup users by sid into winbind, wbinfo and smbd helper lib (winbind_util.c). * Removes some double declarations of winbind_util.c functions. * Bumps the winbind protocol version to 21 and the minor version of wbclient to 3.
* s3:winbindd: handle SIG_TERM, SIGHUP, SIGCHLD and SIGUSR2 via teventStefan Metzmacher2009-01-271-70/+157
| | | | metze
* s3:winbindd: we don't need to call message_dispatch() anymore it's event ↵Stefan Metzmacher2009-01-221-6/+0
| | | | | | triggered now metze
* s3: always call run_events() before and after sys_select()Stefan Metzmacher2009-01-221-0/+2
| | | | | | And always setup the fd events. metze
* s3: make better use of ccache by not including version.h in every C-file.Michael Adam2009-01-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | 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
* Make winbindd_cm.c use winbindd_reinit_after_fork().Jeremy Allison2009-01-061-0/+5
| | | | Jeremy.
* s3:winbindd: also handle fd events from the winbind_event_context()Stefan Metzmacher2009-01-051-0/+9
| | | | metze
* s3:winbindd: rename fd_event => winbindd_fd_eventStefan Metzmacher2009-01-051-13/+13
| | | | | | It's really confusing to have two versions of 'fd_event' metze
* clean event context after child is forked.Bo Yang2009-01-051-1/+2
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* Fix a "ignoring function call result" warningVolker Lendecke2008-12-191-1/+6
|
* winbindd: vars for signals must be volatile sig_atomic_tSATOH Fumiyasu2008-12-121-12/+12
|