Age | Commit message (Collapse) | Author | Files | Lines |
|
The function is mostly a wrapper around a series of setparm
commands. It can be used to quickly set up a share with simple
parameters.
Signed-off-by: Michael Adam <obnox@samba.org>
|
|
The function only appears in the commands list usage of net rpc
conf.
Signed-off-by: Michael Adam <obnox@samba.org>
|
|
The function creates the share key if it does not exist.
If the share key was present it deletes the previous includes.
After this the function sets the new includes accordingly.
Signed-off-by: Michael Adam <obnox@samba.org>
|
|
The function only appears in the commands list usage of net rpc
conf.
Signed-off-by: Michael Adam <obnox@samba.org>
|
|
The function creates the share key if it does not exist.
If the share key was present it deletes the previous value.
After this the function sets the new value accordingly.
Signed-off-by: Michael Adam <obnox@samba.org>
|
|
The function only appears in the commands list usage of net rpc
conf.
Signed-off-by: Michael Adam <obnox@samba.org>
|
|
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>
|
|
The function only appears in the commands list usage of net rpc
conf.
Signed-off-by: Michael Adam <obnox@samba.org>
|
|
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>
|
|
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>
|
|
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>
|
|
The function only appears in the commands list usage of net rpc
conf.
Signed-off-by: Michael Adam <obnox@samba.org>
|
|
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>
|
|
The function only appears in the commands list usage of net rpc
conf.
Signed-off-by: Michael Adam <obnox@samba.org>
|
|
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>
|
|
The function only appears in the commands list usage of net rpc conf.
Signed-off-by: Michael Adam <obnox@samba.org>
|
|
The function makes use of dcerpc_winreg_delete_subkeys_recursive
to clear the share.
Signed-off-by: Michael Adam <obnox@samba.org>
|
|
The function only appears in the commands list usage of net rpc conf.
Signed-off-by: Michael Adam <obnox@samba.org>
|
|
The function makes use of dcerpc_winreg_delete_subkeys_recursive
to clear the configuration.
Signed-off-by: Michael Adam <obnox@samba.org>
|
|
The function only appears in the commands list usage of net rpc conf.
Signed-off-by: Michael Adam <obnox@samba.org>
|
|
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>
|
|
The function only appears in the commands list usage of net rpc conf.
Signed-off-by: Michael Adam <obnox@samba.org>
|
|
The function prints the names of the remote shares found, one per line.
Signed-off-by: Michael Adam <obnox@samba.org>
|
|
The function only appears in the commands list usage of net rpc conf.
Signed-off-by: Michael Adam <obnox@samba.org>
|
|
Signed-off-by: Michael Adam <obnox@samba.org>
|
|
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>
|
|
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>
|
|
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>
|
|
Fixed previously existing whitespace errors in net_rpc.c
Signed-off-by: Michael Adam <obnox@samba.org>
|
|
This will allow smbpasswd, net sam and pdbedit to 'just work' against
the newly created databases.
Andrew Bartlett
|
|
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
|
|
We should do it always, not only in the pdb_default_delete_user()
function.
Signed-off-by: Simo Sorce <idra@samba.org>
|
|
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>
|
|
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>
|
|
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>
|
|
Signed-off-by: Simo Sorce <idra@samba.org>
|
|
Signed-off-by: Andreas Schneider <asn@samba.org>
Signed-off-by: Simo Sorce <idra@samba.org>
|
|
Signed-off-by: Andreas Schneider <asn@samba.org>
Signed-off-by: Simo Sorce <idra@samba.org>
|
|
Signed-off-by: Andreas Schneider <asn@samba.org>
Signed-off-by: Simo Sorce <idra@samba.org>
|
|
Signed-off-by: Andreas Schneider <asn@samba.org>
Signed-off-by: Simo Sorce <idra@samba.org>
|
|
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>
|
|
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>
|
|
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>
|
|
Signed-off-by: Andreas Schneider <asn@samba.org>
Signed-off-by: Simo Sorce <idra@samba.org>
|
|
Signed-off-by: Andreas Schneider <asn@samba.org>
Signed-off-by: Simo Sorce <idra@samba.org>
|
|
Signed-off-by: Andreas Schneider <asn@samba.org>
Signed-off-by: Simo Sorce <idra@samba.org>
|
|
Signed-off-by: Andreas Schneider <asn@samba.org>
Signed-off-by: Simo Sorce <idra@samba.org>
|
|
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>
|
|
Signed-off-by: Andreas Schneider <asn@samba.org>
Signed-off-by: Simo Sorce <idra@samba.org>
|
|
Signed-off-by: Andreas Schneider <asn@samba.org>
Signed-off-by: Simo Sorce <idra@samba.org>
|