Michael Adam
e89411effd
Rename libnet_smbconf_delshare() to libnet_conf_delete_share().
...
Michael
(This used to be commit 2075baf551
)
2008-01-03 14:17:49 +01:00
Michael Adam
e1aa474a32
Rename libnet_smbconf_getshare() to libnet_conf_get_share().
...
Michael
(This used to be commit 1575612f19
)
2008-01-03 14:17:49 +01:00
Michael Adam
3f3a29ed50
Rename libnet_smbconf_create_share() to libnet_conf_create_share().
...
Michael
(This used to be commit 6bc4ee2108
)
2008-01-03 14:17:49 +01:00
Michael Adam
630de5f555
Rename libnet_smbconf_share_exists() to libnet_conf_share_exists().
...
Michael
(This used to be commit 3258758e5c
)
2008-01-03 14:17:49 +01:00
Michael Adam
daf1a460c8
Rename libnet_smbconf_get_share_names() to libnet_conf_get_share_names().
...
Michael
(This used to be commit 2e4beee66b
)
2008-01-03 14:17:49 +01:00
Michael Adam
90837d048b
Rename libnet_smbconf_get_config() to libnet_conf_get_config().
...
Michael
(This used to be commit e8f7c07699
)
2008-01-03 14:17:49 +01:00
Michael Adam
05ff62cf78
Rename libnet_smbconf_drop() to libnet_conf_drop().
...
Michael
(This used to be commit 42ae33a962
)
2008-01-03 14:17:49 +01:00
Michael Adam
12a0cd5310
Rename libnet_smbconf_reg_get_values() to libnet_conf_reg_get_values().
...
Now all internal helper functions are converted to the consistent
naming scheme.
Michael
(This used to be commit c23e6636a8
)
2008-01-03 14:17:49 +01:00
Michael Adam
6ab11e5f98
Rename libnet_smbconf_format_registry_value() to libnet_conf_format_registry_value().
...
Michael
(This used to be commit 3f9f353351
)
2008-01-03 14:17:49 +01:00
Michael Adam
547c3583e4
Rename libnet_smbconf_reg_set_value() to libnet_conf_reg_set_value().
...
Michael
(This used to be commit 96b2923bc3
)
2008-01-03 14:17:48 +01:00
Michael Adam
340cb434db
Rename libnet_smbconf_reg_create_service_key() to libnet_conf_reg_create_service_key().
...
Michael
(This used to be commit cd1846943c
)
2008-01-03 14:17:48 +01:00
Michael Adam
d3e54d913c
Rename libnet_smbconf_value_exists() to libnet_conf_value_exists().
...
Michael
(This used to be commit 49f740797b
)
2008-01-03 14:17:48 +01:00
Michael Adam
cd84256866
Rename libnet_smbconf_reg_open_basekey() to libnet_conf_reg_open_base_key().
...
Michael
(This used to be commit c2ba52b2c3
)
2008-01-03 14:17:48 +01:00
Michael Adam
dde8701b85
Rename libnet_smbconf_reg_open_service_key() to libnet_conf_reg_open_service_key().
...
Michael
(This used to be commit 4d86d2dd6f
)
2008-01-03 14:17:48 +01:00
Michael Adam
e598b93d2f
Rename libnet_smbconf_reg_open_path() to libnet_conf_reg_open_path().
...
Michael
(This used to be commit 9868364e2c
)
2008-01-03 14:17:48 +01:00
Michael Adam
4612391850
Rename libnet_smbconf_add_string_to_array() to libnet_conf_add_string_to_array().
...
This is the start of making nomenclature more consistent
(functions in libnet_conf.c should be called libnet_conf_*,
not libnet_smbconf_* ...
Michael
(This used to be commit 0dd3967bfd
)
2008-01-03 14:17:48 +01:00
Günther Deschner
b0994bead7
In libnetjoin don't mix admin password with machine account pwd.
...
Guenther
(This used to be commit 5b2eec21c2
)
2008-01-03 13:17:49 +01:00
Michael Adam
984aa7a156
Rename libnet_smbconf_reg_setvalue_internal() to libnet_smbconf_reg_set_value().
...
Michael
(This used to be commit 3fc3fee88a
)
2008-01-03 11:35:21 +01:00
Michael Adam
e0ea759807
Fix a comment.
...
Michael
(This used to be commit 2d0c7fe44f
)
2008-01-03 11:33:17 +01:00
Michael Adam
a750e223b3
Rename libnet_smbconf_reg_createkey_internal to libnet_smbconf_reg_create_service_key.
...
Michael
(This used to be commit 08056a2c81
)
2008-01-03 11:32:00 +01:00
Michael Adam
fd597c7e6d
Add libnet_conf API function libnet_smbconf_create_share().
...
And make libnet_smbconf_setparm() return error if the share
does not already exist. Adapt net_conf_addshare to this new
situation.
Michael
(This used to be commit de349bd26d
)
2008-01-03 11:30:14 +01:00
Günther Deschner
40079c4eb4
Remove unused vars.
...
Guenther
(This used to be commit ff3f0006d1
)
2008-01-03 10:49:39 +01:00
Michael Adam
ad1cc905b2
Don't leak: Use a temporary context for the admin token and free it.
...
Michael
(This used to be commit 9d7502115e
)
2008-01-03 01:29:43 +01:00
Michael Adam
3c9f7c7a64
Use libnet_smbconf_reg_open_path() in libnet_smbconf_drop().
...
Replaces creation of token and direct use of reg_open_path.
Michael
(This used to be commit 7e407e18be
)
2008-01-03 01:29:43 +01:00
Michael Adam
3bf57a4d82
Abstract opening of registry path out of libnet_smbconf_reg_open_service_key().
...
Creates new function libnet_smbconf_reg_open_path().
Use libnet_smbconf_reg_open_path() directly in libnet_smbconf_reg_open_basekey().
Return error in libnet_smbconf_reg_open_service_key() when NULL
servicename is given.
Michael
(This used to be commit 1e46b47963
)
2008-01-03 01:29:43 +01:00
Michael Adam
f9bb8a345e
Add debug output in error path.
...
Michael
(This used to be commit a58ccbc6d7
)
2008-01-03 01:29:43 +01:00
Michael Adam
b344dafa62
Fix setting of error code in error path.
...
Michael
(This used to be commit 8a7954a9ae
)
2008-01-03 01:29:43 +01:00
Michael Adam
a6fb71e55b
Use a better parameter name.
...
Michael
(This used to be commit 3972deb90c
)
2008-01-03 01:29:43 +01:00
Michael Adam
c995a63371
Rename libnet_smbconf_reg_open_path() to libnet_smbconf_reg_open_service_key().
...
Michael
(This used to be commit d95b4935d3
)
2008-01-03 01:29:43 +01:00
Michael Adam
d191bb126b
Hey, it is 2008 now.
...
:-)
Michael
(This used to be commit a1d3f60ea7
)
2008-01-03 01:29:43 +01:00
Michael Adam
102fda5c29
Choose a more apropriate parameter name.
...
Michael
(This used to be commit 39a73b6291
)
2008-01-03 01:29:43 +01:00
Michael Adam
83d74c10a2
Rename libnet_smbconf_reg_open_basepath() to libnet_smbconf_reg_open_basekey().
...
Michael
(This used to be commit 9e953a94e9
)
2008-01-03 01:29:43 +01:00
Michael Adam
8598bbbcb1
Make the last two helper functions in libnet_conf.c static.
...
Now the registry backend is completely hidden from the API.
Michael
(This used to be commit 5608c398ad
)
2007-12-31 03:57:45 +01:00
Michael Adam
e8a680cdf3
Rename libnet_smbconf_key_exists() to libnet_smbconf_share_exists()
...
and move it to the api section of libnet_conf.c
Michael
(This used to be commit 9b5d8f4d95
)
2007-12-31 01:14:44 +01:00
Michael Adam
0f2e7c7381
Remove an unused variable.
...
Michael
(This used to be commit 7bac935b65
)
2007-12-30 22:36:01 +01:00
Michael Adam
80957726b6
Remove all d_fprintf-s from libnet_conf.c
...
Replacing them buy DEBUG statements and filling in
d_fprintfs in callers in net_conf.c.
Michael
(This used to be commit 1f0122d8d4
)
2007-12-30 22:36:01 +01:00
Michael Adam
d674b95357
Make libnet_smbconf_reg_open_path() static.
...
Michael
(This used to be commit 6447bae71c
)
2007-12-30 00:32:42 +01:00
Michael Adam
1f992517ec
Make libnet_smbconf_reg_open_basepath() static.
...
Michael
(This used to be commit 8e87dd79ba
)
2007-12-30 00:32:42 +01:00
Michael Adam
59128c7837
Remove list_values() from net_conf.c - it is not needed any more.
...
Also make libnet.c:libnet_smbconf_format_registry_value() static.
(There are nor more external callers.)
Michael
(This used to be commit ac7baa17e8
)
2007-12-30 00:32:41 +01:00
Michael Adam
fe47e2e855
Add a function libnet_smbconf_get_config() to libnet_conf.c
...
This gets the whole config as a set of lists (of share names
and corresponding lists of parameter names and values). The function
is an aggregate of libnet_smbconf_get_share_names() and
libnet_smbconf_getshare().
Michael
(This used to be commit 94e97a7254
)
2007-12-30 00:32:41 +01:00
Michael Adam
df93c1aa57
Include libnet/libnet.h in libnet_conf.c to have prototypes available.
...
Michael
(This used to be commit 4842438c39
)
2007-12-30 00:32:41 +01:00
Michael Adam
397b4d5397
Return NULL (instead of unchanged) for no shares/parameters defined.
...
Michael
(This used to be commit bfe3d1462f
)
2007-12-29 17:06:49 +01:00
Michael Adam
a6d6fbb73d
Dont return count - 1 but count from libnet_smbconf_reg_get_values().
...
Michael
(This used to be commit ded60dec7d
)
2007-12-29 17:02:27 +01:00
Michael Adam
e8cb7cecf2
Make sure libnet_smbconf_get_share_names() always lists "global" first.
...
And don't return count-1 but count.
Michael
(This used to be commit b7cb9b7823
)
2007-12-29 17:00:27 +01:00
Michael Adam
0e8ca78720
Move talloc-appending a string to an array to its own helper function
...
libnet_smbconf_add_string_to_array().
Michael
(This used to be commit f4a4c1b26a
)
2007-12-29 16:45:01 +01:00
Volker Lendecke
d38aa8d037
Fix uninitalized variables
...
(This used to be commit 2322fe7187
)
2007-12-29 16:41:31 +01:00
Michael Adam
1c03f6b608
Rename libnet_smbconf_getshares() to libnet_smbconf_get_share_names().
...
Michael
(This used to be commit 9b3b9aa7e1
)
2007-12-29 12:55:42 +01:00
Michael Adam
cf90b67d59
Add a comment header for libnet_smbconf_getshares().
...
Michael
(This used to be commit 7b51535f2f
)
2007-12-29 12:53:19 +01:00
Michael Adam
2a642a6e2b
Move functionality of net_conf_listshares() to libnet_conf.c
...
into new function libnet_smbconf_getshares().
Michael
(This used to be commit 306c7e4d9c
)
2007-12-29 12:52:09 +01:00
Michael Adam
f8c39cbb7b
Move functionality of net_conf_showshare() to libnet_conf.c
...
The functionality is moved to a new function libnet_smbconf_getshare().
This returns the parameters of the given share as two lists: the list
of parameter names and the list of matching (formatted) parameter values.
The retrieval and formatting is done in a new internal helper function
libnet_smbconf_reg_get_values() that is to become the replacement for
list_values() from net_conf.c once functionality of net_conf_list() has
been moved to libnet_conf, too.
Michael
(This used to be commit 198232bd52
)
2007-12-29 12:32:16 +01:00