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
78acbddbd5
Happy new year again.
...
Michael
(This used to be commit e568f42e21
)
2008-01-03 14:17:48 +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
Michael Adam
4c7ef1c03e
Make grouping in if statement more explicit.
...
Michael
(This used to be commit a1bb47695a
)
2007-12-31 03:55:22 +01:00
Michael Adam
8d9fb62a45
Change net_conf_import() to only use libnet_conf API functions.
...
More precisely, only import_process_service() is changed.
This removes all references to registry code from net_conf.c.
net_conf_import() is currently -- like net_conf_addshare() -- also
considered a high-level add-on, not an API function.
Michael
(This used to be commit b4dca117c0
)
2007-12-31 03:02:39 +01:00
Michael Adam
01f8fd55a7
Rewrite net_conf_addshare() to only use libnet_conf API functions.
...
Also exit on error if the share already exists.
net_conf_addshare() is considered a high level utility function.
It should not be an libnet_conf API function in itself since it is
kind of arbitrary.
Michael
(This used to be commit af5218f150
)
2007-12-31 01:56:18 +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
a74de0c7eb
Remove an unused variable.
...
Michael
(This used to be commit 332be113a7
)
2007-12-30 22:36:02 +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
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
9c14495944
Use libnet_smbconf_get_config() in net_conf_list().
...
This leaves only output logic in net_conf_list().
Michael
(This used to be commit 95d9981d59
)
2007-12-30 00:32:41 +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
0b7aafff11
Fix a const warning.
...
Michael
(This used to be commit e276e48177
)
2007-12-29 13:02:22 +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
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
Michael Adam
8093a75d6f
Make the main net_conf functions static in net_conf.c
...
Michael
(This used to be commit dd6e09a65e
)
2007-12-29 02:27:20 +01:00
Michael Adam
eb356fbafc
Hide the registry backend from libnet_smbconf_getparm().
...
Return a formatted string of the value instead.
Michael
(This used to be commit 7d0ec5bae1
)
2007-12-29 02:12:33 +01:00
Michael Adam
4b75bc63bb
Rename format_value() to libnet_smbconf_format_registry_value().
...
Michael
(This used to be commit 95d5dd9bb0
)
2007-12-29 01:17:39 +01:00
Michael Adam
dfa8d9356c
Move format_value() to libnet_conf.c.
...
Michael
(This used to be commit 3422a5048a
)
2007-12-29 00:05:58 +01:00
Karolin Seeger
9dfde0ebec
Improve error messages of 'net rpc user [add|delete]' commands.
...
Karolin
(This used to be commit 4260c79bf7
)
2007-12-28 09:44:40 +01:00
Volker Lendecke
c90f731ef2
Convert pdbedit to use pdb_search_users
...
(This used to be commit 8a8f2583b8
)
2007-12-26 18:57:15 +01:00
Volker Lendecke
5f196fafd3
Properly destroy the pdb search object
...
(This used to be commit 514cf53224
)
2007-12-26 18:57:14 +01:00
Michael Adam
afca308742
Rename libnet_smbconf_open_basepath() to libnet_smbconf_reg_open_basepath().
...
Michael
(This used to be commit 4c0e7270c4
)
2007-12-26 01:01:14 +01:00
Michael Adam
18ea20e19b
Rename libnet_smbconf_open_path() to libnet_smbconf_reg_open_path().
...
Michael
(This used to be commit 4b0e636965
)
2007-12-26 00:58:11 +01:00
Michael Adam
c2ab4bd705
Add two missing free-s.
...
Michael
(This used to be commit 4efac39c36
)
2007-12-25 03:35:00 +01:00
Michael Adam
44631bfd4d
Remove talloc context parameter from libnet_smbconf_delparm().
...
Make use of talloc stackframe internally.
This removes talloc contxt from net_conf_delparm.
Michael
(This used to be commit 16f1373938
)
2007-12-25 03:34:04 +01:00
Michael Adam
726f32b672
Add a missing free.
...
Michael
(This used to be commit bf6031287f
)
2007-12-25 03:29:41 +01:00
Michael Adam
f3b0469b4a
Remove talloc context parameter from libnet_smbconf_setparm().
...
Make use of talloc stackframe internally.
This removes talloc contxt from net_conf_setparm.
Michael
(This used to be commit efaffefc43
)
2007-12-25 03:29:05 +01:00
Michael Adam
e5a87c2543
Remove talloc context parameter from libnet_smbconf_drop().
...
Make use of talloc_stackframe.
Michael
(This used to be commit aaceab1153
)
2007-12-25 03:05:06 +01:00
Michael Adam
2764f5a0a6
Rename drop_smbconf_internal() to libnet_smbconf_drop().
...
Michael
(This used to be commit 5873e6a1f8
)
2007-12-25 03:01:59 +01:00
Michael Adam
8e53343a74
Move drop_smbconf_internal() to libnet_conf.c
...
Michael
(This used to be commit 4c2a3396bb
)
2007-12-25 02:55:07 +01:00
Michael Adam
9626fffe14
Use the proper boolean constants in net_conf.c
...
Michael
(This used to be commit 1fe4ea63b1
)
2007-12-25 02:48:45 +01:00
Michael Adam
734ddacc91
Add error reporting to net_conf_delshare().
...
Michael
(This used to be commit 8d02a2de61
)
2007-12-25 02:42:33 +01:00
Michael Adam
86486fcc98
Simplify libnet_smbconf_delshare().
...
Remove talloc context parameter.
Remove d_printf error message.
Michael
(This used to be commit 870d35c048
)
2007-12-25 02:37:02 +01:00
Michael Adam
9c20b9a731
Rename reg_delkey_internal() to libnet_smbconf_delshare().
...
Michael
(This used to be commit 7d501f0d78
)
2007-12-25 02:24:39 +01:00
Michael Adam
c9f65929b7
Move reg_delkey_internal() to libnet/libnet_conf.c
...
Michael
(This used to be commit c1b863fd05
)
2007-12-25 02:21:30 +01:00
Michael Adam
c74579f491
Make libnet_smbconf_key_exists() use talloc_stackframe().
...
And not pass a talloc context.
Michael
(This used to be commit 7e8451f2f0
)
2007-12-24 00:53:22 +01:00
Michael Adam
8f163d5c5a
Move logic of net_conf_getparm() to libnet_conf.c.
...
Michael
(This used to be commit d3a20c4d5a
)
2007-12-24 00:18:35 +01:00
Michael Adam
d1c2280cd4
Rename libnet_reg_createkey_internal() to libnet_smbconf_reg_createkey_internal().
...
Michael
(This used to be commit 0e7f215f54
)
2007-12-23 04:10:32 +01:00
Michael Adam
62f08d3dd9
Move net_conf_setparm() to libnet_conf.c
...
renaming it to libnet_smbconf_setparm()
Michael
(This used to be commit 60f49b22b5
)
2007-12-23 04:10:32 +01:00
Michael Adam
31d436e54c
Move reg_setvalue_internal() to libnet_conf.c
...
renaming it to libnet_smbconf_setvalue_internal()
Michael
(This used to be commit 7cb51a1d6d
)
2007-12-23 04:10:31 +01:00
Michael Adam
b04708866f
Move logic of net_smbconf_delparm() to libnet/libnet_conf.c
...
Logic in new function libnet_smbconf_delparm().
Michael
(This used to be commit 0cff79e355
)
2007-12-23 04:10:31 +01:00
Michael Adam
ec3e8587ec
Move smbconf_value_exists() to libnet/net_conf.c
...
renaming it to libnet_smbconf_value_exists().
Michael
(This used to be commit ba71c68445
)
2007-12-23 04:10:31 +01:00
Günther Deschner
9fc2c21fa6
Fix net_dom_join & net_dom_unjoin.
...
Guenther
(This used to be commit 6dd17e4840
)
2007-12-22 00:37:02 +01:00