1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-27 03:21:53 +03:00
Commit Graph

22 Commits

Author SHA1 Message Date
Vicentiu Ciorbaru
1a3b88cfb3 s3-net: Implemented net rpc conf delparm command
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>
2011-08-22 13:59:27 +02:00
Vicentiu Ciorbaru
689edf8ae1 s3-net: Added net rpc conf delparm command to net rpc conf
The function only appears in the commands list usage of net rpc
conf.

Signed-off-by: Michael Adam <obnox@samba.org>
2011-08-22 13:59:27 +02:00
Vicentiu Ciorbaru
f370965c34 s3-net: Refactored part of rpc_conf_delincludes_internal
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>
2011-08-22 13:59:27 +02:00
Vicentiu Ciorbaru
4b3e2adf8c s3-net: Created function net_rpc_conf_del_value
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>
2011-08-22 13:59:27 +02:00
Vicentiu Ciorbaru
704d7d02ac s3-net: Implemented net rpc conf delincludes command
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>
2011-08-22 13:59:26 +02:00
Vicentiu Ciorbaru
a974f01b6b s3-net: Added net rpc conf delincludes command to net rpc conf
The function only appears in the commands list usage of net rpc
conf.

Signed-off-by: Michael Adam <obnox@samba.org>
2011-08-22 13:59:26 +02:00
Vicentiu Ciorbaru
8d335a3ad8 s3-net: Implemented net rpc conf getincludes command
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>
2011-08-22 13:59:26 +02:00
Vicentiu Ciorbaru
b52bfc1a9a s3-net: Added net rpc conf getincludes command to net rpc conf
The function only appears in the commands list usage of net rpc
conf.

Signed-off-by: Michael Adam <obnox@samba.org>
2011-08-22 13:59:26 +02:00
Vicentiu Ciorbaru
5a36306704 s3-net: Implemented net rpc conf getparm command
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>
2011-08-22 13:59:26 +02:00
Vicentiu Ciorbaru
8e2ee72bcd s3-net: Added net rpc conf getparm command to net rpc conf
The function only appears in the commands list usage of net rpc conf.

Signed-off-by: Michael Adam <obnox@samba.org>
2011-08-22 13:59:26 +02:00
Vicentiu Ciorbaru
7de814c5a7 s3-net: Implemented net rpc conf delshare command
The function makes use of dcerpc_winreg_delete_subkeys_recursive
to clear the share.

Signed-off-by: Michael Adam <obnox@samba.org>
2011-08-22 13:59:26 +02:00
Vicentiu Ciorbaru
4728cf66c5 s3-net: Added net rpc conf delshare command to net rpc conf
The function only appears in the commands list usage of net rpc conf.

Signed-off-by: Michael Adam <obnox@samba.org>
2011-08-22 13:59:25 +02:00
Vicentiu Ciorbaru
f94c8e366f s3-net: Implemented net rpc conf drop command
The function makes use of dcerpc_winreg_delete_subkeys_recursive
to clear the configuration.

Signed-off-by: Michael Adam <obnox@samba.org>
2011-08-22 13:59:25 +02:00
Vicentiu Ciorbaru
01e80f81d8 s3-net: Added net rpc conf drop command to net rpc conf
The function only appears in the commands list usage of net rpc conf.

Signed-off-by: Michael Adam <obnox@samba.org>
2011-08-22 13:59:25 +02:00
Vicentiu Ciorbaru
5f8ec78768 s3-net: Implemented net rpc conf showshare command
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>
2011-08-22 13:59:25 +02:00
Vicentiu Ciorbaru
2db3696303 s3-net: Added net rpc conf showshare command to net rpc conf
The function only appears in the commands list usage of net rpc conf.

Signed-off-by: Michael Adam <obnox@samba.org>
2011-08-22 13:59:25 +02:00
Vicentiu Ciorbaru
ed0c5f54aa s3-net: Implemented net rpc conf listshares command.
The function prints the names of the remote shares found, one per line.

Signed-off-by: Michael Adam <obnox@samba.org>
2011-08-22 13:59:25 +02:00
Vicentiu Ciorbaru
1ca6e99141 s3-net: Added net rpc conf listshares command to net rpc conf
The function only appears in the commands list usage of net rpc conf.

Signed-off-by: Michael Adam <obnox@samba.org>
2011-08-22 13:59:24 +02:00
Vicentiu Ciorbaru
8efd30ca61 s3-net: rpc_conf_list now uses the wrapper rpc_conf_open_conf
Signed-off-by: Michael Adam <obnox@samba.org>
2011-08-22 13:59:24 +02:00
Vicentiu Ciorbaru
f16d092ad9 s3-net: Added rpc_conf_open_conf function
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>
2011-08-22 13:59:24 +02:00
Vicentiu Ciorbaru
08be91b011 s3-net: Added the net rpc conf list command.
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>
2011-08-22 13:59:24 +02:00
Vicentiu Ciorbaru
283da12a73 s3-net: Added the command rpc conf to the net binary.
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>
2011-08-22 13:59:24 +02:00