summaryrefslogtreecommitdiff
path: root/source3/utils
AgeCommit message (Collapse)AuthorFilesLines
2008-01-15Apply const to rpccli_lsa_query_info_policy() and ↵Günther Deschner5-12/+14
rpccli_lsa_query_info_policy2(). Guenther (This used to be commit 7a3fe68bef7acde9d9f8a7a44ce7e9432f3c5a95)
2008-01-15Fix some warnings -- Jeremy, please checkVolker Lendecke2-7/+7
(This used to be commit b66ac8567c16f2c35fceceba2f858d5503620309)
2008-01-14Some more minor cleanup for "net rpc audit".Günther Deschner1-58/+54
Guenther (This used to be commit 558ce4ec3eaa93c827316d92c346f35c140fadf0)
2008-01-14Fix all callers of old rpccli_lsa_set_info_policy() call.Günther Deschner1-39/+45
Guenther (This used to be commit be8071779fa14d964e86810f5fb16bc52aea4e36)
2008-01-14Use pidl generated rpccli_lsa_QueryTrustedDomainInfoBySid when vampiring trustedGünther Deschner1-8/+14
domain secrets. Guenther (This used to be commit aa3de6f9f5b5375ca9f1e8a60a378afba1c0848b)
2008-01-13Add and modify comments in net_conf.cMichael Adam1-8/+42
Michael (This used to be commit b3afc8391d40745328172ba012f0ffc166d75aa9)
2008-01-13Add explicit creation of shares to net conf import function.Michael Adam1-0/+4
It has been removed from libnet_conf_set_parameter(). Michael (This used to be commit b5c533b06cba9a8ffd28a1fb3bc56ab248340775)
2008-01-13Introduce a libnet_conf context created by libnet_conf_open().Michael Adam1-35/+106
The libnet_conf_ctx stores the information necessary to interoperate with the configuration. It is created by calling libnet_conf_open() and destroyed by calling libnet_conf_close(). The context is passed to all the libnet_conf functions. It currently stores the token to access the registry. Later, it could store more data, e.g. the server to connect to, credentials, and so on. For support of other backends than registry or support of remote configuration, only the open function will have to be changed. In net_conf, the calls to the actual net_conf functions is wrapped into a function that calls libnet_conf_open()/_close(). Thus an individual variant of net_conf_runfunction2() and functable2 is used to cope with functions being called by the wrapper with the additional libnet_conf_ctx argument. Michael (This used to be commit c2a9346faa26e79af5948197a1b322e545f0ed09)
2008-01-11Fix CID 476. Ensure a valid pac_data pointer is always passed toJeremy Allison1-1/+2
ads_verify_ticket as it's always derefed. Jeremy. (This used to be commit 0599d57efff0f417f75510e8b08c3cb7b4bcfcd8)
2008-01-11Stop Coverity complaining about uninitialized variables.Jeremy Allison1-3/+3
Jeremy. (This used to be commit 041f1d298c1e72adb263b32f454cdf3603e45416)
2008-01-11As long as DsGetDcName is not part of libnetapi, lowercase the fn name.Günther Deschner1-1/+1
Guenther (This used to be commit 19a980f52044a170618629e5b0484c1f6b586e5f)
2008-01-11Fix libnetapi error string callers.Günther Deschner1-2/+2
Guenther (This used to be commit 1ad7a0a361edfa5ac738f011db1d6a9db256ac2c)
2008-01-10Remove unused string.Günther Deschner1-3/+0
Guenther (This used to be commit 88d6683872f4bb9c3074280f385f73c7af9de784)
2008-01-09Attempt to fix the compile of source/utils/net_dns.cVolker Lendecke1-5/+7
Jeremy, please check! (This used to be commit 66d3012bf422b2ffc47fa6a405269bad2a80bd6f)
2008-01-08Move the DNS tsig update to using struct sockaddr_storageJeremy Allison1-15/+22
from struct in_addr. Still only does IPv4 updates but now it'll be easy to add IPv6 when we have time. Jeremy. (This used to be commit ac3a433befca2c6b674fc7e7f2f2c700d78b0a0c)
2008-01-08Use ads_get_upn() in net_derive_salting_principal().Günther Deschner1-15/+1
Guenther (This used to be commit a3b348b113f248d2eccffd6073560619a97a2976)
2008-01-05Add -e to smbget.Jeremy Allison1-0/+12
Jeremy. (This used to be commit 0475bdcf44d21bbdefb57f15d403c91c44d8d90a)
2008-01-05Fix -e for smbcquotas.Jeremy Allison1-11/+24
Jeremy. (This used to be commit f97b1247c1053f47aef64be95ab9b3c3d8702c8a)
2008-01-05Fix args to cli_force_encryption.Jeremy Allison1-2/+1
Jeremy. (This used to be commit 7b0826aeec284fb129dc1101a5eae2ca96c7cfb6)
2008-01-05Add general '-e' option to enable smb encryptionJeremy Allison3-20/+81
on tools. Jeremy. (This used to be commit 757653966fc1384159bd2d57c5670cd8af0cae96)
2008-01-04Add missing patch to allow smbcacls to do krb5 auth, bug #5175Jeremy Allison1-1/+1
from Tom Maher <tmaher@watson.org>. Jeremy. (This used to be commit 54ee718957b768a06e41857b96f0b5e18b3ca6a4)
2008-01-04Fix the build.Jeremy Allison1-2/+2
Jeremy. (This used to be commit 25a0084af5978cc11cf4e83a641bc57e0e64eb89)
2008-01-04Refactor the crypto code after a very helpful conversationJeremy Allison1-2/+26
with Volker. Mostly making sure we have data on the incoming packet type, not stored in the smb header. Jeremy. (This used to be commit c4e5a505043965eec77b5bb9bc60957e8f3b97c8)
2008-01-04Fix spacing - spaces mixed with tabs.Michael Adam1-8/+8
Michael (This used to be commit a4ef828102417f04af1e9823c89404e77e4fd5c1)
2008-01-04Fix a comment.Michael Adam1-1/+1
Michael (This used to be commit fc9c3f39b5af55026f1e5e964857c203cf6c9316)
2008-01-04Remove the word "registry" from the help output of the "net conf" command.Michael Adam1-7/+6
Michael (This used to be commit 8d9e3e08f3cc6a1f54661d1e54a3902ad50be191)
2008-01-04Update the introductory comment to net_conf.c to mention linbet_conf.Michael Adam1-3/+7
Michael (This used to be commit e166b886375b450534c894676ab1f64571dd46b8)
2008-01-04Remove the final regdb_close() from net_conf.cMichael Adam1-2/+0
This is to hide the registry from net_conf. Right now, it does not harm if "net conf" does not close the registry file explicitly just before exiting. I am working out a proper way of handling open/close operations transparently in the libnet_conf library. Michael (This used to be commit 790ef789444945fbae5637f0b469665859171dcd)
2008-01-04Fix the behaviour of "net conf setparm" to create the share if necessary.Michael Adam1-0/+9
This moves functionality taken away from libnet_conf_set_parameter() to the higher level user frontend function. (Somehow I thought I had done this already ... :-) Michael (This used to be commit fc0fca980f08a0af65d82784ef5a50a7b1ac0927)
2008-01-04Fix build warning.Günther Deschner1-1/+0
Guenther (This used to be commit a43125d9e9052fab8eb561976f45d1db4622482e)
2008-01-03Make libnet_conf handle opening/initialization of the registry.Michael Adam1-5/+0
Open state is currently tracked by a global variable to avoid double initialization. Later, this can possibly be replaced by a conf-context created by an initialization function and passed around to the other api functions. Michael (This used to be commit 77713e776405800ac54c692a77cd4efd153042cb)
2008-01-03Rename libnet_smbconf_delparm() to libnet_conf_delete_parameter().Michael Adam1-1/+1
Michael (This used to be commit 073eeca51e46da6a687175aadbfdbb9e029532d6)
2008-01-03Rename libnet_smbconf_getparm() to libnet_conf_get_parameter().Michael Adam1-1/+1
Michael (This used to be commit d08556dbc7071933feaeec538f01ac8f6a637b1d)
2008-01-03Rename libnet_smbconf_setparm() to libnet_conf_set_parameter().Michael Adam1-8/+8
Michael (This used to be commit e00cb415d30b3e72ccfb7e5c366c95ec0f9c6247)
2008-01-03Rename libnet_smbconf_delshare() to libnet_conf_delete_share().Michael Adam1-2/+2
Michael (This used to be commit 2075baf551ca7fc6bcee6b93f63fd7fbf75f9a50)
2008-01-03Rename libnet_smbconf_getshare() to libnet_conf_get_share().Michael Adam1-2/+2
Michael (This used to be commit 1575612f1936312125e7778a9a4227e444ea36cf)
2008-01-03Rename libnet_smbconf_create_share() to libnet_conf_create_share().Michael Adam1-1/+1
Michael (This used to be commit 6bc4ee210855dbfbee9e86b59e90b08ecb3a9df9)
2008-01-03Rename libnet_smbconf_share_exists() to libnet_conf_share_exists().Michael Adam1-2/+2
Michael (This used to be commit 3258758e5c8dfc2c681e1285cb34aaacae697a55)
2008-01-03Rename libnet_smbconf_get_share_names() to libnet_conf_get_share_names().Michael Adam1-1/+1
Michael (This used to be commit 2e4beee66b3672c3259b312aca3d482598731119)
2008-01-03Rename libnet_smbconf_get_config() to libnet_conf_get_config().Michael Adam1-3/+3
Michael (This used to be commit e8f7c07699b5b93acd81b24bca908769f0b5e8d8)
2008-01-03Rename libnet_smbconf_drop() to libnet_conf_drop().Michael Adam1-1/+1
Michael (This used to be commit 42ae33a96228e916d7d530d844be6937a80d4fea)
2008-01-03Happy new year again.Michael Adam1-1/+1
Michael (This used to be commit e568f42e2146fa6510a86746581409450887ff16)
2008-01-03Add libnet_conf API function libnet_smbconf_create_share().Michael Adam1-1/+12
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 de349bd26db3341815f6d8f6c18a5ca1fd664dca)
2007-12-31Make grouping in if statement more explicit.Michael Adam1-1/+3
Michael (This used to be commit a1bb47695a7fb21af239aa9d02537d3de2fea325)
2007-12-31Change net_conf_import() to only use libnet_conf API functions.Michael Adam1-9/+3
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 b4dca117c09ddb9c8e7eea25c6cde3fbef8c692b)
2007-12-31Rewrite net_conf_addshare() to only use libnet_conf API functions.Michael Adam1-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)
2007-12-31Rename libnet_smbconf_key_exists() to libnet_smbconf_share_exists()Michael Adam1-1/+1
and move it to the api section of libnet_conf.c Michael (This used to be commit 9b5d8f4d95ebfd47831906019e11227aecc83aa1)
2007-12-30Remove an unused variable.Michael Adam1-1/+0
Michael (This used to be commit 332be113a775adce8108a8003682019ae7f5bc21)
2007-12-30Remove all d_fprintf-s from libnet_conf.cMichael Adam1-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)
2007-12-30Remove list_values() from net_conf.c - it is not needed any more.Michael Adam1-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)