summaryrefslogtreecommitdiffstats
path: root/source3/utils/net_conf.c
Commit message (Collapse)AuthorAgeFilesLines
...
* Rewrite net_conf_addshare() to only use libnet_conf API functions.Michael Adam2007-12-311-20/+17
| | | | | | | | | | | 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 af5218f1505321236be52df10ebfe8f42b99573d)
* Rename libnet_smbconf_key_exists() to libnet_smbconf_share_exists()Michael Adam2007-12-311-1/+1
| | | | | | | and move it to the api section of libnet_conf.c Michael (This used to be commit 9b5d8f4d95ebfd47831906019e11227aecc83aa1)
* Remove an unused variable.Michael Adam2007-12-301-1/+0
| | | | | Michael (This used to be commit 332be113a775adce8108a8003682019ae7f5bc21)
* Remove all d_fprintf-s from libnet_conf.cMichael Adam2007-12-301-4/+24
| | | | | | | | Replacing them buy DEBUG statements and filling in d_fprintfs in callers in net_conf.c. Michael (This used to be commit 1f0122d8d4ec0f67eaedd5df7383c1b45f37290f)
* Remove list_values() from net_conf.c - it is not needed any more.Michael Adam2007-12-301-26/+0
| | | | | | | | Also make libnet.c:libnet_smbconf_format_registry_value() static. (There are nor more external callers.) Michael (This used to be commit ac7baa17e89d2363b5b3db85de9c842b596dea25)
* Use libnet_smbconf_get_config() in net_conf_list().Michael Adam2007-12-301-45/+19
| | | | | | | This leaves only output logic in net_conf_list(). Michael (This used to be commit 95d9981d59fe69ee1ed98f21475bd1ba72930c1b)
* Dont return count - 1 but count from libnet_smbconf_reg_get_values().Michael Adam2007-12-291-1/+1
| | | | | Michael (This used to be commit ded60dec7d75db7df485a159fb6bf628d8e24805)
* Make sure libnet_smbconf_get_share_names() always lists "global" first.Michael Adam2007-12-291-1/+1
| | | | | | | And don't return count-1 but count. Michael (This used to be commit b7cb9b78231512dc4a88c307048d7fb5334fa319)
* Fix a const warning.Michael Adam2007-12-291-1/+1
| | | | | Michael (This used to be commit e276e48177f890531ee8b4024c90352f284d4608)
* Rename libnet_smbconf_getshares() to libnet_smbconf_get_share_names().Michael Adam2007-12-291-1/+1
| | | | | Michael (This used to be commit 9b3b9aa7e1044719a5112b9e5446e6fbdd7cecf9)
* Move functionality of net_conf_listshares() to libnet_conf.cMichael Adam2007-12-291-15/+5
| | | | | | | into new function libnet_smbconf_getshares(). Michael (This used to be commit 306c7e4d9cecac4c2c0ea1172bd585c3c17d4541)
* Move functionality of net_conf_showshare() to libnet_conf.cMichael Adam2007-12-291-4/+15
| | | | | | | | | | | | | | 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 198232bd525cfac933b4885e6b330ebf4ac2c8ae)
* Make the main net_conf functions static in net_conf.cMichael Adam2007-12-291-7/+7
| | | | | Michael (This used to be commit dd6e09a65e67a9a16b35b078ebfb41da09926029)
* Hide the registry backend from libnet_smbconf_getparm().Michael Adam2007-12-291-3/+3
| | | | | | | Return a formatted string of the value instead. Michael (This used to be commit 7d0ec5bae155cda6620db04dcb7bd43db59241aa)
* Rename format_value() to libnet_smbconf_format_registry_value().Michael Adam2007-12-291-2/+3
| | | | | Michael (This used to be commit 95d5dd9bb0546181cd499e6deabff562166412e3)
* Move format_value() to libnet_conf.c.Michael Adam2007-12-291-33/+0
| | | | | Michael (This used to be commit 3422a5048ad4b7f789ec233356885d78dbdacf9a)
* Rename libnet_smbconf_open_basepath() to libnet_smbconf_reg_open_basepath().Michael Adam2007-12-261-2/+3
| | | | | Michael (This used to be commit 4c0e7270c42788e7f77c402032ae74cf0f8a7106)
* Rename libnet_smbconf_open_path() to libnet_smbconf_reg_open_path().Michael Adam2007-12-261-1/+1
| | | | | Michael (This used to be commit 4b0e636965bd37e7c0deecb7b5eff0cc4487408b)
* Add two missing free-s.Michael Adam2007-12-251-0/+2
| | | | | Michael (This used to be commit 4efac39c363d565c2c7211da73d5e1cf2ac3d0b2)
* Remove talloc context parameter from libnet_smbconf_delparm().Michael Adam2007-12-251-4/+1
| | | | | | | | Make use of talloc stackframe internally. This removes talloc contxt from net_conf_delparm. Michael (This used to be commit 16f137393881edc78c9322f038ba38e53e3ee07d)
* Add a missing free.Michael Adam2007-12-251-0/+1
| | | | | Michael (This used to be commit bf6031287f75a0e17092f60f9885e7e55cd0f93c)
* Remove talloc context parameter from libnet_smbconf_setparm().Michael Adam2007-12-251-5/+1
| | | | | | | | Make use of talloc stackframe internally. This removes talloc contxt from net_conf_setparm. Michael (This used to be commit efaffefc438f8375a083b194ac7a09e563000d3c)
* Remove talloc context parameter from libnet_smbconf_drop().Michael Adam2007-12-251-1/+1
| | | | | | | Make use of talloc_stackframe. Michael (This used to be commit aaceab1153f6c2a2adde83681913c771a16ca81f)
* Rename drop_smbconf_internal() to libnet_smbconf_drop().Michael Adam2007-12-251-1/+1
| | | | | Michael (This used to be commit 5873e6a1f8242e07b1699366a536350a7199c28c)
* Move drop_smbconf_internal() to libnet_conf.cMichael Adam2007-12-251-50/+0
| | | | | Michael (This used to be commit 4c2a3396bb687703f6b74655fda2014d1f75200b)
* Use the proper boolean constants in net_conf.cMichael Adam2007-12-251-10/+10
| | | | | Michael (This used to be commit 1fe4ea63b197cb7ebc054909d888d74b5ad6523c)
* Add error reporting to net_conf_delshare().Michael Adam2007-12-251-2/+8
| | | | | Michael (This used to be commit 8d02a2de61eb6b62fef1fbe57194c9d286423ba0)
* Simplify libnet_smbconf_delshare().Michael Adam2007-12-251-2/+2
| | | | | | | | Remove talloc context parameter. Remove d_printf error message. Michael (This used to be commit 870d35c04889603843bae989fb9c01396b4c6ed1)
* Rename reg_delkey_internal() to libnet_smbconf_delshare().Michael Adam2007-12-251-2/+2
| | | | | Michael (This used to be commit 7d501f0d78ec57509d0bc5ef0dc16fcd24ee27e7)
* Move reg_delkey_internal() to libnet/libnet_conf.cMichael Adam2007-12-251-24/+0
| | | | | Michael (This used to be commit c1b863fd0520ce64a1bad5e2fa3f69afcc2c78d5)
* Make libnet_smbconf_key_exists() use talloc_stackframe().Michael Adam2007-12-241-2/+2
| | | | | | | And not pass a talloc context. Michael (This used to be commit 7e8451f2f03b246801783aaf4b3d54465292f8f7)
* Move logic of net_conf_getparm() to libnet_conf.c.Michael Adam2007-12-241-12/+10
| | | | | Michael (This used to be commit d3a20c4d5a8109334cd3ed665ba60cfcc4425059)
* Rename libnet_reg_createkey_internal() to ↵Michael Adam2007-12-231-2/+2
| | | | | | | libnet_smbconf_reg_createkey_internal(). Michael (This used to be commit 0e7f215f54c68b2d40f65f90ed11c41e1a7ef5ed)
* Move net_conf_setparm() to libnet_conf.cMichael Adam2007-12-231-11/+1
| | | | | | | renaming it to libnet_smbconf_setparm() Michael (This used to be commit 60f49b22b5aa125ff6cb358a258a1be99c378d7a)
* Move reg_setvalue_internal() to libnet_conf.cMichael Adam2007-12-231-78/+10
| | | | | | | renaming it to libnet_smbconf_setvalue_internal() Michael (This used to be commit 7cb51a1d6d95704225d9ab22e88cc76fa910d38c)
* Move logic of net_smbconf_delparm() to libnet/libnet_conf.cMichael Adam2007-12-231-13/+5
| | | | | | | Logic in new function libnet_smbconf_delparm(). Michael (This used to be commit 0cff79e3552e91ba0b6bc054802d28afcf4e8da4)
* Move smbconf_value_exists() to libnet/net_conf.cMichael Adam2007-12-231-17/+1
| | | | | | | renaming it to libnet_smbconf_value_exists(). Michael (This used to be commit ba71c6844588f0342589163f514385911e7331e7)
* Some libnet and netapi build fixes.Günther Deschner2007-12-211-1/+1
| | | | | Guenther (This used to be commit 1d47247283f7bc75291007be3fde72b1d3d95b99)
* Very quick conversion of net_conf functions into the libnet_conf layer.Günther Deschner2007-12-211-142/+16
| | | | | | | Certainly needs cleanup later. Guenther (This used to be commit 2b41ac926de76804a50681bd246b3a20e112853b)
* We don't need P_GSTRING or P_UGSTRING anymore.Jeremy Allison2007-12-071-4/+0
| | | | | Jeremy. (This used to be commit 78dc75600099b5b3b5a8ecffec747a227ff51d70)
* Remove some globalsVolker Lendecke2007-12-051-2/+4
| | | | (This used to be commit 31d0a846db08d845e6cdfd85def4ac1c34031e02)
* RIP BOOL. Convert BOOL -> bool. I found a few interestingJeremy Allison2007-10-181-8/+8
| | | | | | | | bugs in various places whilst doing this (places that assumed BOOL == int). I also need to fix the Samba4 pidl generation (next checkin). Jeremy. (This used to be commit f35a266b3cbb3e5fa6a86be60f34fe340a3ca71f)
* r24527: Add a function lp_canonicalize_parameter_with_value that turnsMichael Adam2007-10-101-33/+10
| | | | | | | | | | a parameter and value into the canonical paramter with the value inverted if it was in invers boolean synonym. Make net conf use this function when storing parameters. Michael (This used to be commit 3b762ab18392fd06427957b0263262e3b8e34b9d)
* r24513: Reformatting: eliminate trailing spaces, overly long linesMichael Adam2007-10-101-69/+64
| | | | | | | and adjust some formattings to standard. Michael (This used to be commit 00432bcd69bb1c30774af277af1dc7271380d75b)
* r24496: Add initial synonym handling to "net conf":Michael Adam2007-10-101-11/+45
| | | | | | | | | | | | | | | | When storing parameters in the smbconf portion of the registry, up to now, synonyms could be misused to store a parameter twice. Now this is prevented by canonicalizing the paramter name first. Also, the value for a boolean parameter checked for validity before storing the bool in registry. (The canonicalization should finally go into the registry smbconf code to also prevent e.g. "regedit" or "net rpc registry" from storing synonyms. - This is in the making.) Michael (This used to be commit 95447dde860f54d835b3fe90d95fe60231788d1b)
* r23801: The FSF has moved around a lot. This fixes their Mass Ave address.Andrew Tridgell2007-10-101-2/+1
| | | | (This used to be commit 87c91e4362c51819032bfbebbb273c52e203b227)
* r23779: Change from v2 or later to v3 or later.Jeremy Allison2007-10-101-1/+1
| | | | | Jeremy. (This used to be commit 407e6e695b8366369b7c76af1ff76869b45347b3)
* r23760: Untangle use of strrchr_m and strequal and add some checksMichael Adam2007-10-101-2/+11
| | | | | | | for the validity of the given registry key name. Michael (This used to be commit 4b4ba7724ee77a93e32cd7f3c5884d965fe9bcaa)
* r23750: Change the behaviour of net conf import when there is a global sectionMichael Adam2007-10-101-8/+24
| | | | | | | | | | | | | | | | | | in the current registry and there is no global section in the input file (or only global options with default values): In that case the existing global section is now not touched. Before, it would have been deleted and recreated empty. The new behaviour is how other shares are treated too. Note that since the input file is parsed by lp_load, there is currently no way to distinguish between a section with only default parameters and a non-existing section in net conf import. Michael PS: A couple of trailing white-spaces have been eliminated and a line was broken to be not longer than 80 chars, too. (This used to be commit ec21a0cf9f01986d333b50b883f2105e32cf7fc9)
* r23749: Simplify prototype of reg_setvalue_internal:Michael Adam2007-10-101-22/+9
| | | | | | | eliminate "type" parameter since we store only REG_SZ. Michael (This used to be commit 65ce4633171eabd6fc94677cb7d884d6125d0745)