1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-14 19:24:43 +03:00

2439 Commits

Author SHA1 Message Date
Jeremy Allison
bd317be33b Stop Coverity complaining about uninitialized variables.
Jeremy.
(This used to be commit 041f1d298c1e72adb263b32f454cdf3603e45416)
2008-01-11 23:41:17 -08:00
Günther Deschner
c79ce2ffa3 As long as DsGetDcName is not part of libnetapi, lowercase the fn name.
Guenther
(This used to be commit 19a980f52044a170618629e5b0484c1f6b586e5f)
2008-01-11 15:32:20 +01:00
Günther Deschner
efcf285e27 Fix libnetapi error string callers.
Guenther
(This used to be commit 1ad7a0a361edfa5ac738f011db1d6a9db256ac2c)
2008-01-11 15:28:24 +01:00
Günther Deschner
83b1751615 Remove unused string.
Guenther
(This used to be commit 88d6683872f4bb9c3074280f385f73c7af9de784)
2008-01-10 13:02:10 +01:00
Volker Lendecke
b43719d0fb Attempt to fix the compile of source/utils/net_dns.c
Jeremy, please check!
(This used to be commit 66d3012bf422b2ffc47fa6a405269bad2a80bd6f)
2008-01-09 12:10:55 +01:00
Jeremy Allison
7ca33d1112 Move the DNS tsig update to using struct sockaddr_storage
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-08 13:11:12 -08:00
Günther Deschner
62c91987d9 Use ads_get_upn() in net_derive_salting_principal().
Guenther
(This used to be commit a3b348b113f248d2eccffd6073560619a97a2976)
2008-01-08 14:07:18 +01:00
Jeremy Allison
af2a75ba61 Add -e to smbget.
Jeremy.
(This used to be commit 0475bdcf44d21bbdefb57f15d403c91c44d8d90a)
2008-01-05 00:51:50 -08:00
Jeremy Allison
a41972e801 Fix -e for smbcquotas.
Jeremy.
(This used to be commit f97b1247c1053f47aef64be95ab9b3c3d8702c8a)
2008-01-05 00:50:03 -08:00
Jeremy Allison
160fefc71a Fix args to cli_force_encryption.
Jeremy.
(This used to be commit 7b0826aeec284fb129dc1101a5eae2ca96c7cfb6)
2008-01-05 00:41:48 -08:00
Jeremy Allison
9baa97a46e Add general '-e' option to enable smb encryption
on tools.
Jeremy.
(This used to be commit 757653966fc1384159bd2d57c5670cd8af0cae96)
2008-01-05 00:23:35 -08:00
Jeremy Allison
3d40b197b0 Add missing patch to allow smbcacls to do krb5 auth, bug #5175
from Tom Maher <tmaher@watson.org>.
Jeremy.
(This used to be commit 54ee718957b768a06e41857b96f0b5e18b3ca6a4)
2008-01-04 17:15:04 -08:00
Jeremy Allison
68b2965108 Fix the build.
Jeremy.
(This used to be commit 25a0084af5978cc11cf4e83a641bc57e0e64eb89)
2008-01-04 13:24:24 -08:00
Jeremy Allison
9254bb4ef1 Refactor the crypto code after a very helpful conversation
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-04 12:56:23 -08:00
Michael Adam
517ad5318d Fix spacing - spaces mixed with tabs.
Michael
(This used to be commit a4ef828102417f04af1e9823c89404e77e4fd5c1)
2008-01-04 21:16:48 +01:00
Michael Adam
dbdaa5eeec Fix a comment.
Michael
(This used to be commit fc9c3f39b5af55026f1e5e964857c203cf6c9316)
2008-01-04 21:09:55 +01:00
Michael Adam
dee8e32d8d Remove the word "registry" from the help output of the "net conf" command.
Michael
(This used to be commit 8d9e3e08f3cc6a1f54661d1e54a3902ad50be191)
2008-01-04 21:05:59 +01:00
Michael Adam
34fb783965 Update the introductory comment to net_conf.c to mention linbet_conf.
Michael
(This used to be commit e166b886375b450534c894676ab1f64571dd46b8)
2008-01-04 21:05:59 +01:00
Michael Adam
b1472c0956 Remove the final regdb_close() from net_conf.c
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-04 19:52:22 +01:00
Michael Adam
2a8722d4c3 Fix the behaviour of "net conf setparm" to create the share if necessary.
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-04 19:49:57 +01:00
Günther Deschner
77219ddd22 Fix build warning.
Guenther
(This used to be commit a43125d9e9052fab8eb561976f45d1db4622482e)
2008-01-04 17:43:23 +01:00
Michael Adam
5470f8f638 Make libnet_conf handle opening/initialization of the registry.
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-03 15:33:09 +01:00
Michael Adam
2476254ccd Rename libnet_smbconf_delparm() to libnet_conf_delete_parameter().
Michael
(This used to be commit 073eeca51e46da6a687175aadbfdbb9e029532d6)
2008-01-03 14:17:49 +01:00
Michael Adam
55771b356d Rename libnet_smbconf_getparm() to libnet_conf_get_parameter().
Michael
(This used to be commit d08556dbc7071933feaeec538f01ac8f6a637b1d)
2008-01-03 14:17:49 +01:00
Michael Adam
b9f904b59d Rename libnet_smbconf_setparm() to libnet_conf_set_parameter().
Michael
(This used to be commit e00cb415d30b3e72ccfb7e5c366c95ec0f9c6247)
2008-01-03 14:17:49 +01:00
Michael Adam
e89411effd Rename libnet_smbconf_delshare() to libnet_conf_delete_share().
Michael
(This used to be commit 2075baf551ca7fc6bcee6b93f63fd7fbf75f9a50)
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 1575612f1936312125e7778a9a4227e444ea36cf)
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 6bc4ee210855dbfbee9e86b59e90b08ecb3a9df9)
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 3258758e5c8dfc2c681e1285cb34aaacae697a55)
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 2e4beee66b3672c3259b312aca3d482598731119)
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 e8f7c07699b5b93acd81b24bca908769f0b5e8d8)
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 42ae33a96228e916d7d530d844be6937a80d4fea)
2008-01-03 14:17:49 +01:00
Michael Adam
78acbddbd5 Happy new year again.
Michael
(This used to be commit e568f42e2146fa6510a86746581409450887ff16)
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 de349bd26db3341815f6d8f6c18a5ca1fd664dca)
2008-01-03 11:30:14 +01:00
Michael Adam
4c7ef1c03e Make grouping in if statement more explicit.
Michael
(This used to be commit a1bb47695a7fb21af239aa9d02537d3de2fea325)
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 b4dca117c09ddb9c8e7eea25c6cde3fbef8c692b)
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 af5218f1505321236be52df10ebfe8f42b99573d)
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 9b5d8f4d95ebfd47831906019e11227aecc83aa1)
2007-12-31 01:14:44 +01:00
Michael Adam
a74de0c7eb Remove an unused variable.
Michael
(This used to be commit 332be113a775adce8108a8003682019ae7f5bc21)
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 1f0122d8d4ec0f67eaedd5df7383c1b45f37290f)
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 ac7baa17e89d2363b5b3db85de9c842b596dea25)
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 95d9981d59fe69ee1ed98f21475bd1ba72930c1b)
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 ded60dec7d75db7df485a159fb6bf628d8e24805)
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 b7cb9b78231512dc4a88c307048d7fb5334fa319)
2007-12-29 17:00:27 +01:00
Michael Adam
0b7aafff11 Fix a const warning.
Michael
(This used to be commit e276e48177f890531ee8b4024c90352f284d4608)
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 9b3b9aa7e1044719a5112b9e5446e6fbdd7cecf9)
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 306c7e4d9cecac4c2c0ea1172bd585c3c17d4541)
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 198232bd525cfac933b4885e6b330ebf4ac2c8ae)
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 dd6e09a65e67a9a16b35b078ebfb41da09926029)
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 7d0ec5bae155cda6620db04dcb7bd43db59241aa)
2007-12-29 02:12:33 +01:00