summaryrefslogtreecommitdiffstats
path: root/source3/winbindd/winbindd.c
Commit message (Collapse)AuthorAgeFilesLines
* s3:winbindd: accept new connections via fd eventsStefan Metzmacher2009-04-151-52/+100
| | | | | | metze (cherry picked from commit 93c2057c8b5a3976cda65a9d27dc4dbb9c5c550a) (cherry picked from commit 00b65cc6ebcb4c67259e7fa618f6d961f7117396)
* s3:winbindd: move non event related code out of process_loop() in the the callerStefan Metzmacher2009-04-151-22/+21
| | | | | | metze (cherry picked from commit 3b8dd79f2bc775ed94130565ec2c4383a4864348) (cherry picked from commit ca31920af281ba9ea8f466ed0264118737a1b055)
* 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
|
* Fix nonempty blank linesVolker Lendecke2008-12-071-27/+27
|
* Clean-up various trailing space and >80 column lines.Steven Danneman2008-11-181-1/+1
|
* Added ability to remove id mappings in wbinfo and libwbclient.Steven Danneman2008-11-181-0/+1
| | | | | | | | | | | | | | | | | The idmap_tdb backend already provides an interface to remove existing id mappings. This commit plumbs that ability up through, winbindd, libwbclient, and wbinfo. Added new winbindd command: WINBINDD_REMOVE_MAPPING Added new libwbclient interfaces: wbcRemoveUidMapping() and wbcRemoveGidMapping() Added new wbinfo options: --remove-uid-mapping --remove-gid-mapping Increased libwbclient version to 0.2 Increased winbind interface version to 20
* s3: fix a few "shadows a global declaration" warningsTim Prouty2008-11-031-9/+9
|
* [s3]winbind: fix smbd hanging on Solaris when winbindd closes socket.Michael Adam2008-10-271-1/+6
| | | | | | | | | | | | | | | | | On some versions of Solaris, we observed a strange effect of close(2) on a socket: After the server (here winbindd) called close, the client fd was not marked as readable for select. And a write call to the fd did not produce an error EPIPE but just returned as if successful. So while winbindd had called remove_client(), the corresponding smbd still thought that it was connected, but failed to retrieve answers for its queries. This patch works around the problem by forcing the client fd to the readable state: Just write one byte into the socket before closing. Michael
* Use separate make variables for libutil and libcrypto.Jelmer Vernooij2008-10-181-2/+2
|
* Fix a memleakQiao Yang2008-09-051-1/+2
| | | | | | | request.extra_data is not freed if there is no extra_data in response or when there is some error happens in processing. This patch will free the buffer right after processing a request before sending back a response. (This used to be commit be6f12273f171a3eb1967d2299064e57d737f6a4)
* first cut at adding full transactions for ctdb to samba3Andrew Tridgell2008-08-131-4/+0
| | | | (This used to be commit f91a3e0f7b7737c1d0667cd961ea950e2b93e592)
* idmap rewriteVolker Lendecke2008-08-121-6/+0
| | | | (This used to be commit 30a180f2fce8cf6a3e5548f6bba453272ba70b33)
* Remove the multi-ID lookup code and the 3.2.0 version of idmap_cacheVolker Lendecke2008-08-121-3/+0
| | | | (This used to be commit 1bd98521dc3f16ad77ccccd3979288c58e03ebe8)
* Remove unused request_finished_cont()Volker Lendecke2008-07-241-12/+0
| | | | (This used to be commit 865ea6fcbc089a03e453709fa54ff2a39c0c168e)
* Make use of TALLOC_FREE when freeing the per-winbindrequest memory contextVolker Lendecke2008-07-241-12/+3
| | | | (This used to be commit 9e49d390f79c6afc8b0efd9664e60602aebaa4f2)
* From Jim McDonoughJeremy Allison2008-07-171-6/+12
| | | | | | | | | In reloading the smb.conf, if a "log file" is specified in smb.conf, winbind children will overwrite the logfile name to be the same as the parent. Jeremy. (This used to be commit 62d319cc1a2ef891866b2ddbd22f3ed0944356af)
* MSG_DEBUG now forwarded to all the winbindd children by parent.Darshan Purandare2008-07-011-0/+5
| | | | | | | | | smbcontrol winbindd debug level would only set the debug level of the parent winbindd process and not the child processes. This patch adds the functionality of broadcasting the debug message to all winbindd children. Now the debug level message is propagated to all the winbindd processes that includes parent and children. (This used to be commit cfbcfc3ffe74f28ec874a6bf1ab93f55f405b6e6)
* winbind: remove duplicate debug message for failing messaging_init().Michael Adam2008-06-261-1/+0
| | | | | | | | Leave the message inside winbind_messaging_context() for now. There might be callers, where this debug message could prove useful... Michael (This used to be commit e9177ec56a8fe596d6fcfc4a95df87e39f757818)
* winbind: untangle logic in winbind_messaging_context() slightly.Michael Adam2008-06-261-2/+5
| | | | | Michael (This used to be commit e710a9b73ea2fd176de7093125bc5f3f3f3a9404)
* winbindd: don't panic if messaging_init() fails - return NULL instead.Michael Adam2008-06-261-1/+1
| | | | | | | Leave appropriate handling to the callers. Michael (This used to be commit 3e0c24323af5f10fa68ae8aad552b7346536c908)
* Fix bug #5504. winbindd children and parent were handing SIGTERM in the same ↵Jeremy Allison2008-05-301-10/+15
| | | | | | | way - deleting the socket! Jeremy. (This used to be commit 3ab5a3883e33eba159152aa02544d71f047c7e45)
* Enable winbind child processes to do something with signals,Jim McDonough2008-05-131-12/+23
| | | | | | | | | in particular closing and reopening logs on SIGHUP. Conflicts: source/winbindd/winbindd.c (This used to be commit 0f7b11accec7df1c0e9a9dc0828a5e0c5ddec4cb)
* Fix CLEAR_IF_FIRST handling of messages.tdbVolker Lendecke2008-04-231-1/+1
| | | | | | | | We now open messages.tdb even before we do the become_daemon. become_daemon() involves a fork and an immediate exit of the parent, thus the parent_is_longlived argument must be set to false in this case. The parent is not really long lived :-) (This used to be commit 4f4781c6d17fe2db34dd5945fec52a7685448aec)
* winbindd: create the messaging conntext earlierStefan Metzmacher2008-04-181-7/+17
| | | | | metze (This used to be commit 2e1b9130635235efdbf49d0b92a43b342114246c)
* dbwrap: wait for tdb2 change notifies in smbd, nmbd and winbinddStefan Metzmacher2008-04-121-0/+7
| | | | | metze (This used to be commit 64450cc1e441355aa8925b7183e90872eeab20b1)
* winbindd: only call winbindd_validate_cache when not in offline logon mode.Michael Adam2008-04-101-20/+3
| | | | | | | | | | | | | 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 (This used to be commit 641b5e3fecfce9581536de8daf6d7e6ecbefaf34)
* Fix typoVolker Lendecke2008-03-251-1/+1
| | | | (This used to be commit 38683a73013865695e1b04f5f6a974bd0c5c1cac)
* Add winbind_msg_dump_domain_list to winbindd.Günther Deschner2008-01-241-0/+4
| | | | | Guenther (This used to be commit 54ad97bd8364c393de2c9471a4c14ca5b880b318)
* Fix a comment.Michael Adam2008-01-071-1/+2
| | | | | Michael (This used to be commit 62d6d4fff2edcce04e793d2a2f877cb3f4fedbdb)
* Make wcache_invalidate_cache() return bool, not int.Michael Adam2008-01-071-1/+1
| | | | | Michael (This used to be commit dba24ceae78ffc49200b647838b6bf3657275add)
* Prevent winbindd from segfaulting due to corrupted cache tdb.Andreas Schneider2008-01-071-1/+17
| | | | | | 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. (This used to be commit d0c0f91fb9f3438a18c6f47ed894f525beb75cbf)
* Don't restart winbind if a corrupted tdb is found during initialization.Andreas Schneider2007-12-121-15/+9
| | | | | | The tdb is validated before it gets initialized. Since then sighandlers changed a restart isn't needed anymore. (This used to be commit aabe9b33fcaed8af98b1ed6b736253e196d87d48)
* winbindd: remove unused WINBINDD_DUMP_MAPS supportStefan Metzmacher2007-12-121-2/+0
| | | | | | | | | Also the design of this function was really bad, instead do the dump into a file, the client should get back the list of mappings. metze (This used to be commit ce7fe8acf41e90553431c7cda6823700701835c7)
* Remove the char[1024] strings from dynconfig. ReplaceJeremy Allison2007-12-101-4/+4
| | | | | | | them with malloc'ing accessor functions. Should save a lot of static space :-). Jeremy. (This used to be commit 52dc5eaef2106015b3a8b659e818bdb15ad94b05)
* Don't build rpctorture anymore - not maintained. Just remove.Jeremy Allison2007-12-071-1/+1
| | | | | | | Remove all vestiges of pstring (except for smbctool as noted in previous commit). Jeremy (This used to be commit 4c32a22ac50ada3275d2ffba3c1aa08bee7d1549)
* More pstring elimination.Jeremy Allison2007-11-201-9/+13
| | | | | Jeremy. (This used to be commit 15074de938539e7a9c527d9a6d81792adc2ac3d0)