summaryrefslogtreecommitdiffstats
path: root/source3/winbindd/winbindd.c
Commit message (Collapse)AuthorAgeFilesLines
* s3-lib: If we create a pipe socket, don't start to listen.Andreas Schneider2011-08-291-0/+9
| | | | | | | | | The create_pipe_sock() function should only create the socket as the name states and not start to listen on it too. We should start to listen on in the individual places as we need different backlog values. Autobuild-User: Andreas Schneider <asn@cryptomilk.org> Autobuild-Date: Mon Aug 29 13:21:43 CEST 2011 on sn-devel-104
* s3-messaging: Fix messaging classes.Simo Sorce2011-08-111-1/+3
| | | | | | | | | | | | This has been broken since ff0ac5b0 (May 2007). Basically all messages were belonging to the General class except for CTDB messages. This fixed the message_send_all() function to correctly compute the class, and fixes registrations to include all they need to cope with the fact not all messages are of calss general (registrations rotted a bit because as long as FLAG_MSG_GENERAL was defined the process woould receive all messages). Signed-off-by: Andreas Schneider <asn@samba.org>
* s3:winbindd: use lp_load_global() - winbindd does not need shares or IPC$Michael Adam2011-07-281-1/+1
|
* debug: log early messages to stdout, and keep it openAndrew Bartlett2011-07-201-0/+3
| | | | | | | | | The --log-stdout option was compromised by the log file descriptors being closed once the file process forked. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s3: Convert WINBINDD_WINS_BYNAME to the async APIVolker Lendecke2011-06-211-4/+2
|
* s3: Fix a winbind messageVolker Lendecke2011-06-201-1/+1
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Mon Jun 20 23:28:43 CEST 2011 on sn-devel-104
* s3-winbind Move winbind privileged socket dir into state_path()Andrew Bartlett2011-06-201-1/+1
| | | | | | | | | On default installs, this will be the same as the old lock_path(), but lock_path() is now a directory that can safely be mapped to /var/locks and removed by the OS on reboot. It is important that the directory permissions of this directory be preserved, as they may be customised. Andrew Bartlett
* s3-talloc Change TALLOC_ZERO_P() to talloc_zero()Andrew Bartlett2011-06-091-1/+1
| | | | | Using the standard macro makes it easier to move code into common, as TALLOC_ZERO_P isn't standard talloc.
* s3:winbind: Convert WINBINDD_WINS_BYIP to the async APIVolker Lendecke2011-06-051-1/+2
|
* s3: include ntdomain.h before including generated srv_ headers.Günther Deschner2011-05-021-0/+1
| | | | Guenther
* s3: Make winbindd_reinit_after_fork return NTSTATUSVolker Lendecke2011-04-291-1/+5
|
* s3: In winbind, close parent/child socketsVolker Lendecke2011-04-291-1/+1
| | | | This should further reduce fd load in winbind children
* s3-winbind Use get_dyn_WINBINDD_SOCKET_DIR() to get the winbind pipe dirAndrew Bartlett2011-04-271-1/+1
| | | | | | | | This ensures we follow the dynconfig convention for the socket directory, and makes it easier to ensure that the client and server both refer to the same socket. Andrew Bartlett
* s3: Export WINBINDD_SIDS_TO_XIDS via the winbind pipeVolker Lendecke2011-04-131-0/+2
| | | | Signed-off-by: Jeremy Allison <jra@samba.org>
* s3: Add winbindd_lookupsidsVolker Lendecke2011-04-131-0/+2
| | | | Signed-off-by: Jeremy Allison <jra@samba.org>
* Fix bug 6966 - "allow trusted domains = no" not respected in winbind.Dmitry Butskoy2011-04-061-6/+6
| | | | | Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Wed Apr 6 23:37:27 CEST 2011 on sn-devel-104
* s3-messages: make ndr_messaging.h part of messages.h.Günther Deschner2011-03-301-1/+0
| | | | Guenther
* s3-messages: only include messages.h where needed.Günther Deschner2011-03-301-0/+1
| | | | Guenther
* s3-auth: use auth.h where needed.Günther Deschner2011-03-301-0/+1
| | | | Guenther
* s3-config: say which config file we failed to openAndrew Tridgell2011-03-231-1/+1
| | | | saves having to strace it to work that out
* fault: get fault.c ready for use by s4Andrew Tridgell2011-03-231-1/+1
| | | | | this moves the s3 specific dumpcore code into source3/lib/dumpcore.c, and uses a function pointer to setup which smb_panic call to use
* s3-fault: removed the cont_fn from fault_setup()Andrew Tridgell2011-03-221-10/+1
| | | | | | | | | | cont_fn() was supposed to be a way to continue after a seg fault. It could never be called however, as smb_panic() from fault_report() could never return, as dump_core() never returns at the end of smb_panic() Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Tue Mar 22 05:07:58 CET 2011 on sn-devel-104
* s3-winbind: Fixed the accept() for new_connection.Andreas Schneider2011-03-081-5/+7
| | | | Signed-off-by: Günther Deschner <gd@samba.org>
* s3-server_id: only include server_id where needed.Günther Deschner2011-03-021-0/+1
| | | | Guenther
* s3: Convert init_system_info to NTSTATUSVolker Lendecke2011-02-201-2/+4
|
* nsswitch: make wb_reqtrans a common subsystem.Günther Deschner2011-02-171-1/+1
| | | | Guenther
* s3:winbindd: fix segfaults on addrchange errors and make DEBUG() statements ↵Stefan Metzmacher2011-02-041-3/+6
| | | | | | more usefull metze
* s3: Send a dropped_ip message if we lose an IPVolker Lendecke2011-02-011-0/+85
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Tue Feb 1 15:59:17 CET 2011 on sn-devel-104
* s3: Add wbinfo --dc-infoVolker Lendecke2011-01-191-0/+1
| | | | | | | | | | | | | | | wbinfo --dc-info prints the current DC name and IP address. This helps diagnosing problems that might happen when a later wbinfo --ping-dc fails. This patch started out by using the SAF and NBT cache entires, but those are relatively short-lived. So I decided to invent a new gencache entry with a very long timeout. We need to go via the gencache because when for some reason a winbind child process is stuck, we can't query it for the current DC it's connected to. This must eventually go away again when we have a fully async winbind. Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Wed Jan 19 08:40:28 CET 2011 on sn-devel-104
* wb_reqtrans is not used in libwbclientVolker Lendecke2010-12-191-1/+1
|
* libwbclient: Put the wb_reqtrans definitions into wb_reqtrans.hVolker Lendecke2010-12-191-1/+1
|
* Move error reporting of messaging context creation fail intoJeremy Allison2010-11-141-0/+10
| | | | | | | | the daemons themselves. Allows client utilities to silently fail to create a messaging context due to access denied on the messaging tdb (which I need for the following patch). Jeremy.
* s3-debug Impove setup_logging() to specify logging to stderrAndrew Bartlett2010-11-021-1/+5
| | | | | | | | This change improves the setup_logging() API so that callers which wish to set up logging to stderr can simply ask for it, rather than directly modify the dbf global variable. Andrew Bartlett
* s3-winbind: Fixed init order.Andreas Schneider2010-10-181-3/+3
| | | | | | | We need the system server info in the rpc services. Autobuild-User: Andreas Schneider <asn@samba.org> Autobuild-Date: Mon Oct 18 12:43:16 UTC 2010 on sn-devel-104
* Move talloc_enable_null_tracking() to the s3 daemonsVolker Lendecke2010-10-081-1/+7
|
* s3: Add "smbcontrol winbindd ip-dropped <local-ip>"Volker Lendecke2010-09-301-0/+4
| | | | | | | | This is supposed to improve the winbind reconnect time after an ip address has been moved away from a box. Any kind of HA scenario will benefit from this, because winbindd does not have to wait for the TCP timeout to kick in when a local IP address has been dropped and DC replies are not received anymore.
* Allows changing the maximum number of simultaneous clients in winbindd ↵Pierre Carrier2010-09-141-5/+3
| | | | | | through an smb.conf option. Signed-off-by: Jeremy Allison <jra@samba.org>
* winbindd: Add the client status in the clients list outputPierre Carrier2010-08-261-4/+12
| | | | | | | | | | Hello list, Considered relevant by a customer. As I suppose one doesn't send SIGUSR2 very often, I didn't bother adding another DEBUGLEVEL. -- Pierre
* winbindd: useless functionPierre Carrier2010-08-261-8/+1
| | | | | | | | | Hello list, Seems simple enough for my first patch :) -- Pierre
* s3-idmap: only include idmap headers where needed.Günther Deschner2010-08-261-0/+1
| | | | Guenther
* s3-build: only include nsswitch header where needed.Günther Deschner2010-08-261-0/+1
| | | | Guenther
* s3:winbind: remove the method REMOVE_MAPPING from winbind's APIMichael Adam2010-08-141-2/+0
| | | | Michael
* s3:winbind: remove the method SET_MAPPING from winbind's APIMichael Adam2010-08-141-2/+0
| | | | Michael
* s3:winbind: remove SET_HWM from winbind's API.Michael Adam2010-08-141-2/+0
|
* s3-popt: Only include popt-common.h when needed.Andreas Schneider2010-08-051-0/+1
|
* s3-secrets: only include secrets.h when needed.Günther Deschner2010-08-051-0/+1
| | | | Guenther
* s3-rpc_server: Added callbacks for init and shutdown of a rpc service.Andreas Schneider2010-07-191-2/+2
| | | | | | This adds two callback function for each rpc service. One is for initialisation and the other for shutdown. rpc_<service>_unregister() needs to be called to execute the shutdown function.
* s3-rpc: when using rpc_pipe_open_internal, make sure to go through NDR.Günther Deschner2010-07-081-0/+5
| | | | | | | Otherwise a lot of information that is usually generated in the ndr_push remains in an uninitialized state. Guenther
* s3-winbind: Initialize the server_info on winbindd start.Andreas Schneider2010-07-051-0/+5
|
* s3: Pass the new server_id through reinit_after_forkVolker Lendecke2010-07-041-3/+5
|