summaryrefslogtreecommitdiffstats
path: root/source3/utils
Commit message (Collapse)AuthorAgeFilesLines
* s3-net: Added documentation for net_rpc_conf functionsVicentiu Ciorbaru2011-08-221-1/+44
| | | | | | | | | | Added comments to most functions of net rpc conf for easier understanding of the code. Signed-off-by: Michael Adam <obnox@samba.org> Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Mon Aug 22 17:08:15 CEST 2011 on sn-devel-104
* s3-net: Implemented net rpc conf import commandVicentiu Ciorbaru2011-08-221-3/+347
| | | | | | | | | | | The function takes a local file in smb.conf format, uses calls to smbconf to create smbconf_service structs, which are then placed in the remote registry. The function also provides a test module to only print the changes that it would make. Signed-off-by: Michael Adam <obnox@samba.org>
* s3-net: Added net rpc conf import 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 addshare commandVicentiu Ciorbaru2011-08-221-2/+255
| | | | | | | | 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>
* s3-net: Added net rpc conf addshare 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 setincludes commandVicentiu Ciorbaru2011-08-221-2/+141
| | | | | | | | 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>
* s3-net: Added net rpc conf setincludes 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 setparm commandVicentiu Ciorbaru2011-08-221-2/+201
| | | | | | | | 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>
* 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-223-0/+57
| | | | | | | 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>
* s3-id_cache: Use better names for id cache management opsAndreas Schneider2011-08-211-3/+3
| | | | | | | 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-passdb: Replace SMB_MALLOC_ARRAY()/SAFE_FREE() with talloc equivalents.Amitay Isaacs2011-08-192-8/+9
| | | | | Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s3-net: Fixed a small typo in net conf function tableVicentiu Ciorbaru2011-08-081-1/+1
| | | | | | | The description of the function net conf delincludes had a wrong usage message: "net conf setincludes" instead of "net conf delincludes". Signed-off-by: Michael Adam <obnox@samba.org>
* s3-net: Fixed typo in net confVicentiu Ciorbaru2011-08-081-1/+1
| | | | | | | | | There was a missing ']' in net conf addshare usage message. Signed-off-by: Michael Adam <obnox@samba.org> Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Mon Aug 8 16:44:08 CEST 2011 on sn-devel-104
* s3-ntlmssp Remove rpccli_get_pwd_hash and auth_ntlmssp_get_nt_hashAndrew Bartlett2011-08-031-6/+6
| | | | | | | | | | | | | | | | | | | The session key we want here (the only one that is availble to the encryption layer) is the one obtained by cli_get_session_key(), as NTLMSSP creates a per-session session key via key exchange and NTLMv2 negotiation. The key was never directly the NT hash anyway (this is simply a mistake, the extra MD4() was lost during my previous cleanup f28f113d8e76824b080359c90efd9c92de533740 in 2008), but was MD4(NT hash) in early implementations of NTLMSSP. However, regardless this call is not available on domain trusts between AD domains and Windows 2003 R2, making this less useful. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s3-ntlmssp Remove calls to auth_ntlmssp_and_flags from the serverAndrew Bartlett2011-08-031-0/+4
| | | | | | | | | | | | This is changed so that the callers ask for the additional flags that they need, starting with no additional flags. This helps to create a proper abstraction layer in ntlmssp_wrap/auth_ntlmssp. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s3:net_rpc: make use of cli_state_protocol()Stefan Metzmacher2011-08-021-1/+1
| | | | metze
* s3:dbwrap: move all .c and .h files of dbwrap to lib/dbwrap/Michael Adam2011-07-296-6/+6
| | | | | Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Fri Jul 29 13:34:22 CEST 2011 on sn-devel-104
* s3:dbwrap: move db_open() to a file dbwrap_open.c of its own.Michael Adam2011-07-295-0/+5
| | | | | | Also start new folder lib/dbwrap/ where dbwrap_open.c is stored and make the fallbacke implementation functoins non-static and create a dbwrap_private.h header file that contains their prototypes.
* s3:smbstatus: use lp_load_global() - smbstatus does not need to load shares!Michael Adam2011-07-281-1/+1
|
* s3:split_tokens: use lp_load_global(), fixing the call to lp_load()Michael Adam2011-07-281-1/+1
| | | | this does not need share and it dos not need to save defaults
* s3:split_tokens: fix a nonempty blank lineMichael Adam2011-07-281-1/+1
|
* s3: use lp_load_global() in smbw_sample -- whatever this is ... :-)Michael Adam2011-07-281-1/+1
|
* s3:smbtree: use lp_load_global()Michael Adam2011-07-281-1/+1
|
* s3:smbpasswd: use lp_load_global()Michael Adam2011-07-281-1/+1
|
* s3:smbfilter: use lp_load_global()Michael Adam2011-07-281-1/+1
|
* s3:smbcquotas: use lp_load_global()Michael Adam2011-07-281-1/+1
|
* s3:smbcontrol: use lp_load_global(): smbcontrol does not need to load the sharesMichael Adam2011-07-281-1/+1
|