summaryrefslogtreecommitdiffstats
path: root/source3
Commit message (Collapse)AuthorAgeFilesLines
* s3-net: Added net rpc conf setparm command to net rpc confVicentiu Ciorbaru2011-08-221-0/+14
| | | | | | | The function only appears in the commands list usage of net rpc conf. Signed-off-by: Michael Adam <obnox@samba.org>
* s3-net: Implemented net rpc conf delparm commandVicentiu Ciorbaru2011-08-221-2/+77
| | | | | | | | The function makes use of existing code from delincludes. It has the same logic, except it uses the second argument passed to determine which value to delete from the registry. Signed-off-by: Michael Adam <obnox@samba.org>
* s3-net: Added net rpc conf delparm command to net rpc confVicentiu Ciorbaru2011-08-221-0/+14
| | | | | | | The function only appears in the commands list usage of net rpc conf. Signed-off-by: Michael Adam <obnox@samba.org>
* s3-net: Refactored part of rpc_conf_delincludes_internalVicentiu Ciorbaru2011-08-221-82/+8
| | | | | | | The function now makes use of rpc_conf_del_value to delete the includes of a given share. Signed-off-by: Michael Adam <obnox@samba.org>
* s3-net: Created function net_rpc_conf_del_valueVicentiu Ciorbaru2011-08-221-0/+71
| | | | | | | | Function is used to refactor some of the code used in delincludes and also to be used in the other key manipulating functions. Signed-off-by: Michael Adam <obnox@samba.org>
* s3-net: Implemented net rpc conf delincludes commandVicentiu Ciorbaru2011-08-221-2/+151
| | | | | | | | The function openes the key attached to the service passed as a parameter to the command and it uses dcerpc_winreg_DeleteValue to delete the includes value if it exists Signed-off-by: Michael Adam <obnox@samba.org>
* s3-net: Added net rpc conf delincludes command to net rpc confVicentiu Ciorbaru2011-08-221-0/+14
| | | | | | | The function only appears in the commands list usage of net rpc conf. Signed-off-by: Michael Adam <obnox@samba.org>
* s3-net: Implemented net rpc conf getincludes commandVicentiu Ciorbaru2011-08-221-2/+99
| | | | | | | | The function creates a smconf_service struct that holds the share passed as the first argument to the command and searches in it for "include" parameters. If any are found, they are displayed. Signed-off-by: Michael Adam <obnox@samba.org>
* s3-net: Added net rpc conf getincludes command to net rpc confVicentiu Ciorbaru2011-08-221-0/+16
| | | | | | | The function only appears in the commands list usage of net rpc conf. Signed-off-by: Michael Adam <obnox@samba.org>
* s3-net: Implemented net rpc conf getparm commandVicentiu Ciorbaru2011-08-221-2/+115
| | | | | | | | The function creates a smconf_service struct that holds the share passed as the first argument to the command and searches in it for the parameter passed as the second argument to the command Signed-off-by: Michael Adam <obnox@samba.org>
* s3-net: Added net rpc conf getparm command to net rpc confVicentiu Ciorbaru2011-08-221-0/+14
| | | | | | The function only appears in the commands list usage of net rpc conf. Signed-off-by: Michael Adam <obnox@samba.org>
* s3-net: Implemented net rpc conf delshare commandVicentiu Ciorbaru2011-08-221-3/+96
| | | | | | | The function makes use of dcerpc_winreg_delete_subkeys_recursive to clear the share. Signed-off-by: Michael Adam <obnox@samba.org>
* s3-net: Added net rpc conf delshare command to net rpc confVicentiu Ciorbaru2011-08-221-0/+15
| | | | | | The function only appears in the commands list usage of net rpc conf. Signed-off-by: Michael Adam <obnox@samba.org>
* s3-net: Implemented net rpc conf drop commandVicentiu Ciorbaru2011-08-221-2/+117
| | | | | | | The function makes use of dcerpc_winreg_delete_subkeys_recursive to clear the configuration. Signed-off-by: Michael Adam <obnox@samba.org>
* s3-net: Added net rpc conf drop command to net rpc confVicentiu Ciorbaru2011-08-221-0/+16
| | | | | | The function only appears in the commands list usage of net rpc conf. Signed-off-by: Michael Adam <obnox@samba.org>
* s3-net: Implemented net rpc conf showshare commandVicentiu Ciorbaru2011-08-221-2/+102
| | | | | | | The function has the same logic as net rpc conf list, however it only loads the specific share. Signed-off-by: Michael Adam <obnox@samba.org>
* s3-net: Added net rpc conf showshare command to net rpc confVicentiu Ciorbaru2011-08-221-0/+16
| | | | | | The function only appears in the commands list usage of net rpc conf. Signed-off-by: Michael Adam <obnox@samba.org>
* s3-net: Implemented net rpc conf listshares command.Vicentiu Ciorbaru2011-08-221-1/+94
| | | | | | The function prints the names of the remote shares found, one per line. Signed-off-by: Michael Adam <obnox@samba.org>
* s3-net: Added net rpc conf listshares command to net rpc confVicentiu Ciorbaru2011-08-221-0/+14
| | | | | | The function only appears in the commands list usage of net rpc conf. Signed-off-by: Michael Adam <obnox@samba.org>
* s3-net: rpc_conf_list now uses the wrapper rpc_conf_open_confVicentiu Ciorbaru2011-08-221-24/+6
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* s3-net: Added rpc_conf_open_conf functionVicentiu Ciorbaru2011-08-221-0/+82
| | | | | | | The function is used as a wrapper to open the HKLM hive key and the smbconf key. Signed-off-by: Michael Adam <obnox@samba.org>
* s3-net: Added the net rpc conf list command.Vicentiu Ciorbaru2011-08-221-1/+382
| | | | | | | | The command make use of the smbconf_service struct, via the function rpc_conf_get_share(). This allows for further expansion with the use of smbconf. Signed-off-by: Michael Adam <obnox@samba.org>
* s3-net: Added the command rpc conf to the net binary.Vicentiu Ciorbaru2011-08-225-0/+59
| | | | | | | The net binary now has an extra item linked to it, the net_rpc_conf.c module. Signed-off-by: Michael Adam <obnox@samba.org>
* s3-net: Fixed whitespace errorsVicentiu Ciorbaru2011-08-221-7/+7
| | | | | | Fixed previously existing whitespace errors in net_rpc.c Signed-off-by: Michael Adam <obnox@samba.org>
* s4-provision set passdb backend to 'samba4' in template smb.conf filesAndrew Bartlett2011-08-221-1/+3
| | | | | | | This will allow smbpasswd, net sam and pdbedit to 'just work' against the newly created databases. Andrew Bartlett
* s3-passdb: Only delete 1 entry from memcache.Andreas Schneider2011-08-211-1/+4
| | | | | | | | | | If we delete or update one user we shouldn't flush the complete memcache. Signed-off-by: Simo Sorce <idra@samba.org> Autobuild-User: Simo Sorce <idra@samba.org> Autobuild-Date: Sun Aug 21 16:39:10 CEST 2011 on sn-devel-104
* s3-passdb: Remove always the user from getpwsid cache.Andreas Schneider2011-08-211-3/+8
| | | | | | | We should do it always, not only in the pdb_default_delete_user() function. Signed-off-by: Simo Sorce <idra@samba.org>
* s3-passdb: Keep caches coherentAndreas Schneider2011-08-214-2/+42
| | | | | | | | | | | When deleting a user send a message to all interested parties so they can purge their caches. Otherwise some processes may positively respond with a cached getpwnam, when the user have actully been removed. Without this some tests that remove and then immediately create users are flakey. Signed-off-by: Simo Sorce <idra@samba.org>
* s3-id_cache: Use better names for id cache management opsAndreas Schneider2011-08-217-26/+26
| | | | | | | The IDMAP term is normally associated with Winbind's idmap stuff. These functions deal with id caching not id mapping. Signed-off-by: Simo Sorce <idra@samba.org>
* s3-id_cache: Move id caches mgmt out of smbdAndreas Schneider2011-08-219-171/+237
| | | | | | | | | | We must leave the MSG_IDMAP_KILL operation in SMBD as it uses smbd specific internal globals and makes sense only in the context of a smbd daemon. The rest is moved under lib/ as we need to deal with id cache cleanups in other daemons too (like lsasd). Signed-off-by: Simo Sorce <idra@samba.org>
* s3-lsasd: Listen on \PIPE\lsass.Andreas Schneider2011-08-211-0/+16
| | | | Signed-off-by: Simo Sorce <idra@samba.org>
* s3-lsasd: Add missing ncalrpc listeners.Andreas Schneider2011-08-211-0/+66
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Signed-off-by: Simo Sorce <idra@samba.org>
* s3-rpc_server: Add create_dcerpc_ncalrpc_socket().Andreas Schneider2011-08-212-12/+29
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Signed-off-by: Simo Sorce <idra@samba.org>
* s3-rpc_server: Increase epm monitor wait time.Andreas Schneider2011-08-211-1/+1
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Signed-off-by: Simo Sorce <idra@samba.org>
* s3-prefork: Listening fds must be in non-blocking modeSimo Sorce2011-08-212-0/+5
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Signed-off-by: Simo Sorce <idra@samba.org>
* s3-spoolss: Remove useless checkSimo Sorce2011-08-211-24/+4
| | | | | | | | | | If we *really* are a bout to exit (PF_WORKER_EXITING) then the event will not be called as the loop will exit. Otherwise PF_SRV_MSG_EXIT may not be honoured for a long time if we have cients connected, therefore keep handling SIGHUP properly in those cases. Signed-off-by: Andreas Schneider <asn@samba.org> Signed-off-by: Simo Sorce <idra@samba.org>
* s3-lsasd: Remove useless checkSimo Sorce2011-08-211-16/+3
| | | | | | | | | | If we *really* are a bout to exit (PF_WORKER_EXITING) then the event will not be called as the loop will exit. Otherwise PF_SRV_MSG_EXIT may not be honoured for a long time if we have cients connected, therefore keep handling SIGHUP properly in those cases. Signed-off-by: Andreas Schneider <asn@samba.org> Signed-off-by: Simo Sorce <idra@samba.org>
* s3-prefork: Fix code to retire childrenSimo Sorce2011-08-213-11/+16
| | | | | | | | | | | | | | | We have to be more careful when retiring children. We cannot stop accepting connections as soon as the server tells us to quit because if max_children is reached and we still have clients connected, the server will not be able to spawn new children until one exits. And children will not exit until all the clients closed the connections. So we keep operating past our recall until we have 0 connections. Also do not try to recall children that still have >= 1 clients connected, they couldn't anyway. Also use messaging to warn children and not SIGHUP. Signed-off-by: Andreas Schneider <asn@samba.org> Signed-off-by: Simo Sorce <idra@samba.org>
* s3-spoolssd: Listen on parent messagesSimo Sorce2011-08-211-0/+18
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Signed-off-by: Simo Sorce <idra@samba.org>
* s3-lsasd: Listen on parent messagesSimo Sorce2011-08-211-0/+18
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Signed-off-by: Simo Sorce <idra@samba.org>
* s3-prefork: Add parent->client messagingSimo Sorce2011-08-213-0/+39
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Signed-off-by: Simo Sorce <idra@samba.org>
* s3-lsasd: Send a message to the parent when we accept a connectionSimo Sorce2011-08-211-0/+25
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Signed-off-by: Simo Sorce <idra@samba.org>
* s3-spoolssd: Send a message to the parent when we accept a connectionSimo Sorce2011-08-211-0/+25
| | | | | | | | Every time we accept a connection wanr the parent, so it can run management routines and reallocate more resources if necessary. Signed-off-by: Andreas Schneider <asn@samba.org> Signed-off-by: Simo Sorce <idra@samba.org>
* s3-messaging: Add preforked child-parent message typesSimo Sorce2011-08-211-0/+3
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Signed-off-by: Simo Sorce <idra@samba.org>
* s3-prefork: Improve error detection when handling new connectionsSimo Sorce2011-08-211-11/+23
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Signed-off-by: Simo Sorce <idra@samba.org>
* s3-prefork: Improve heuristicsSimo Sorce2011-08-213-30/+52
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Signed-off-by: Simo Sorce <idra@samba.org>
* s3-lsasd: User new prefork helpers to simplify code.Simo Sorce2011-08-211-27/+3
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Signed-off-by: Simo Sorce <idra@samba.org>
* s3-spoolssd: User new prefork helpers to simplify code.Simo Sorce2011-08-211-27/+3
| | | | | | | | | Also stop using the listening as now the prefork code properly sets the PF_WORKER_ACCEPTING flag and it can be relied upon without having to keep additional status around. Signed-off-by: Andreas Schneider <asn@samba.org> Signed-off-by: Simo Sorce <idra@samba.org>
* s3-prefork: add a few more utility functionsSimo Sorce2011-08-212-0/+26
| | | | | | | | | Add a few util functions children side so that daemons do not have to care about properly setting num_clients and state. Let a common helper do it so that they are all consistent. Signed-off-by: Andreas Schneider <asn@samba.org> Signed-off-by: Simo Sorce <idra@samba.org>
* s3-prefrok: Handle only valid childrenSimo Sorce2011-08-211-4/+19
| | | | | | | | | | Children that are about to exit shouldn't be counted as a source of connections, and also makes no sense to chenge their allowances if they are about to exit. Also children with negative num_clients are faulty, exclude them as well. Signed-off-by: Andreas Schneider <asn@samba.org> Signed-off-by: Simo Sorce <idra@samba.org>