Michael Adam [Thu, 3 Jan 2008 12:59:14 +0000 (13:59 +0100)]
Rename libnet_smbconf_getshare() to libnet_conf_get_share().
Michael
(This used to be commit
1575612f1936312125e7778a9a4227e444ea36cf)
Michael Adam [Thu, 3 Jan 2008 12:55:43 +0000 (13:55 +0100)]
Rename libnet_smbconf_create_share() to libnet_conf_create_share().
Michael
(This used to be commit
6bc4ee210855dbfbee9e86b59e90b08ecb3a9df9)
Michael Adam [Thu, 3 Jan 2008 12:54:31 +0000 (13:54 +0100)]
Rename libnet_smbconf_share_exists() to libnet_conf_share_exists().
Michael
(This used to be commit
3258758e5c8dfc2c681e1285cb34aaacae697a55)
Michael Adam [Thu, 3 Jan 2008 12:53:04 +0000 (13:53 +0100)]
Rename libnet_smbconf_get_share_names() to libnet_conf_get_share_names().
Michael
(This used to be commit
2e4beee66b3672c3259b312aca3d482598731119)
Michael Adam [Thu, 3 Jan 2008 12:50:55 +0000 (13:50 +0100)]
Rename libnet_smbconf_get_config() to libnet_conf_get_config().
Michael
(This used to be commit
e8f7c07699b5b93acd81b24bca908769f0b5e8d8)
Michael Adam [Thu, 3 Jan 2008 12:48:56 +0000 (13:48 +0100)]
Rename libnet_smbconf_drop() to libnet_conf_drop().
Michael
(This used to be commit
42ae33a96228e916d7d530d844be6937a80d4fea)
Michael Adam [Thu, 3 Jan 2008 12:46:45 +0000 (13:46 +0100)]
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
c23e6636a886d93b98c9439ba081def0385f67ac)
Michael Adam [Thu, 3 Jan 2008 12:45:14 +0000 (13:45 +0100)]
Rename libnet_smbconf_format_registry_value() to libnet_conf_format_registry_value().
Michael
(This used to be commit
3f9f35335127a673639fa30c88cdea6c79f04b92)
Michael Adam [Thu, 3 Jan 2008 12:43:34 +0000 (13:43 +0100)]
Rename libnet_smbconf_reg_set_value() to libnet_conf_reg_set_value().
Michael
(This used to be commit
96b2923bc3c57700352869627c38609529d53cd2)
Michael Adam [Thu, 3 Jan 2008 12:42:40 +0000 (13:42 +0100)]
Rename libnet_smbconf_reg_create_service_key() to libnet_conf_reg_create_service_key().
Michael
(This used to be commit
cd1846943cbcc02ea9fa3b9237bd02e667a475db)
Michael Adam [Thu, 3 Jan 2008 12:40:40 +0000 (13:40 +0100)]
Rename libnet_smbconf_value_exists() to libnet_conf_value_exists().
Michael
(This used to be commit
49f740797bb7fc5edacbd4c3e8b1eb1aab131ea4)
Michael Adam [Thu, 3 Jan 2008 12:38:55 +0000 (13:38 +0100)]
Rename libnet_smbconf_reg_open_basekey() to libnet_conf_reg_open_base_key().
Michael
(This used to be commit
c2ba52b2c34abc42b4ff7945715dc36e08a2f112)
Michael Adam [Thu, 3 Jan 2008 12:36:25 +0000 (13:36 +0100)]
Rename libnet_smbconf_reg_open_service_key() to libnet_conf_reg_open_service_key().
Michael
(This used to be commit
4d86d2dd6f0a577e446ccb4b362b3cd80f819600)
Michael Adam [Thu, 3 Jan 2008 12:33:10 +0000 (13:33 +0100)]
Rename libnet_smbconf_reg_open_path() to libnet_conf_reg_open_path().
Michael
(This used to be commit
9868364e2c7827ac7914bee711a65d4456a5e366)
Michael Adam [Thu, 3 Jan 2008 12:31:23 +0000 (13:31 +0100)]
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
0dd3967bfd88a4d90941e80134c549f5ade63ad0)
Michael Adam [Thu, 3 Jan 2008 11:08:49 +0000 (12:08 +0100)]
Happy new year again.
Michael
(This used to be commit
e568f42e2146fa6510a86746581409450887ff16)
Günther Deschner [Thu, 3 Jan 2008 12:40:42 +0000 (13:40 +0100)]
Use -g instead of -gstabs as many have reported gdb problems with -gstabs.
Guenther
(This used to be commit
8befb22672d54a9255e5bdaf9cb0bb4e2b631245)
Günther Deschner [Thu, 3 Jan 2008 12:36:56 +0000 (13:36 +0100)]
Let DsGetDCName figure out whether domain_name is a flat_name when unjoining.
Guenther
(This used to be commit
75165ba4e7acafaca42f6afd1fb8b56e00bcbed7)
Günther Deschner [Thu, 3 Jan 2008 12:34:40 +0000 (13:34 +0100)]
Fix configure output for libnetapi.
Guenther
(This used to be commit
d00ce6685a2cad7cd5526d4b13d43d157cd13481)
Günther Deschner [Thu, 3 Jan 2008 12:17:15 +0000 (13:17 +0100)]
In libnetjoin don't mix admin password with machine account pwd.
Guenther
(This used to be commit
5b2eec21c27f07653e2dbb75c0f9ab4a60736773)
Günther Deschner [Thu, 3 Jan 2008 11:13:20 +0000 (12:13 +0100)]
Ignore generated pkgconfig files.
Guenther
(This used to be commit
1688eae5e868744fb209f59ed526b1a91d1fe0db)
Günther Deschner [Thu, 3 Jan 2008 11:10:27 +0000 (12:10 +0100)]
Some coding convention pedantism.
Guenther
(This used to be commit
338baf96cb957fa52e312d42fbf0fa227d7dafda)
Michael Adam [Thu, 3 Jan 2008 11:07:02 +0000 (12:07 +0100)]
Return existsing cache_tree if it has already been initialized.
So reghook_cache_init() does not leak memory when called more
than once.
Also, fix the return value while we are at it.
Michael
(This used to be commit
25f571f40a630bff5a47bba6b01e42d4e0ffed66)
Michael Adam [Thu, 3 Jan 2008 10:35:21 +0000 (11:35 +0100)]
Rename libnet_smbconf_reg_setvalue_internal() to libnet_smbconf_reg_set_value().
Michael
(This used to be commit
3fc3fee88afd9e8b6232afc140a07090b4215c23)
Michael Adam [Thu, 3 Jan 2008 10:33:17 +0000 (11:33 +0100)]
Fix a comment.
Michael
(This used to be commit
2d0c7fe44f075205db1713ef2d69006f7192c490)
Michael Adam [Thu, 3 Jan 2008 10:32:00 +0000 (11:32 +0100)]
Rename libnet_smbconf_reg_createkey_internal to libnet_smbconf_reg_create_service_key.
Michael
(This used to be commit
08056a2c8160a44d27744467da467faea9ba0686)
Michael Adam [Thu, 3 Jan 2008 10:30:14 +0000 (11:30 +0100)]
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)
Günther Deschner [Thu, 3 Jan 2008 09:39:19 +0000 (10:39 +0100)]
Remove unused vars.
Guenther
(This used to be commit
ff3f0006d167a9bca85919bf6115d73413554909)
Volker Lendecke [Thu, 3 Jan 2008 09:24:45 +0000 (10:24 +0100)]
Trivial simplification
... things you come across when you review code
(This used to be commit
1e006bcfb15d44ecb81b6994c588d30d87b48033)
Volker Lendecke [Thu, 3 Jan 2008 09:24:11 +0000 (10:24 +0100)]
Add comments
Jeremy was able to use this correctly without comments, so the code can't be
*that* bad :-)
(This used to be commit
6f22f7c13fd08ee772ac3aa593d2f4b37eb2cbee)
Jeremy Allison [Thu, 3 Jan 2008 02:20:23 +0000 (18:20 -0800)]
Fix for bug #5163 from Laurent Pinchart <pinchart@skynet.be>
Failure to change password in ldap is mapped to NT_STATUS_UNSUCCESSFUL unconditionally.
Jeremy.
(This used to be commit
9369d6e907a49da1fbf2a5690118412b8d1a0383)
Jeremy Allison [Thu, 3 Jan 2008 01:37:39 +0000 (17:37 -0800)]
Convert the little caches in util_sock.c to use
the singleton memcache. Vl please check (passes
make valgrindtest).
Jeremy.
(This used to be commit
a4d613cde86caf5782c4bfc47122d6ba807990ac)
Michael Adam [Thu, 3 Jan 2008 00:26:31 +0000 (01:26 +0100)]
Don't leak: Use a temporary context for the admin token and free it.
Michael
(This used to be commit
9d7502115e0f6cdfd27943d52f0de04447582b92)
Michael Adam [Thu, 3 Jan 2008 00:12:23 +0000 (01:12 +0100)]
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
7e407e18be0761e7004acfbd2376c3a435922c25)
Michael Adam [Thu, 3 Jan 2008 00:07:30 +0000 (01:07 +0100)]
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
1e46b479638c54e8bd7ba939bc7aba18a27b5155)
Michael Adam [Wed, 2 Jan 2008 23:53:34 +0000 (00:53 +0100)]
Add debug output in error path.
Michael
(This used to be commit
a58ccbc6d70613f7572bc80621935d81f9e290e3)
Michael Adam [Wed, 2 Jan 2008 23:52:55 +0000 (00:52 +0100)]
Fix setting of error code in error path.
Michael
(This used to be commit
8a7954a9ae13df527ccedb1004ee4f87d506ce5b)
Michael Adam [Wed, 2 Jan 2008 23:51:36 +0000 (00:51 +0100)]
Use a better parameter name.
Michael
(This used to be commit
3972deb90c4b645fb4d207a7e132cd7e180e78bb)
Michael Adam [Wed, 2 Jan 2008 23:49:53 +0000 (00:49 +0100)]
Rename libnet_smbconf_reg_open_path() to libnet_smbconf_reg_open_service_key().
Michael
(This used to be commit
d95b4935d3a97ca9c4b7990bbcf4e85c81c79516)
Michael Adam [Wed, 2 Jan 2008 23:44:47 +0000 (00:44 +0100)]
Hey, it is 2008 now.
:-)
Michael
(This used to be commit
a1d3f60ea753a158447bb0208441453b76a0f3b9)
Michael Adam [Wed, 2 Jan 2008 23:43:29 +0000 (00:43 +0100)]
Choose a more apropriate parameter name.
Michael
(This used to be commit
39a73b6291fd028d44fc2712afa76abf1fcff9cb)
Michael Adam [Wed, 2 Jan 2008 23:35:09 +0000 (00:35 +0100)]
Rename libnet_smbconf_reg_open_basepath() to libnet_smbconf_reg_open_basekey().
Michael
(This used to be commit
9e953a94e9b3a060769938ef6af25623e446c180)
Gerald (Jerry) Carter [Wed, 2 Jan 2008 23:34:41 +0000 (17:34 -0600)]
Fix some C++ warnings (patch was Volker's) - implicit case from void* to char*
(This used to be commit
518168410c49ac25085714c73e76dcf358fc4b68)
Gerald (Jerry) Carter [Wed, 2 Jan 2008 23:15:10 +0000 (17:15 -0600)]
Merge branch 'work/v3-2-test' into v3-2-test
(This used to be commit
761858312b3470ff2acc2980882bad534275c552)
Gerald (Jerry) Carter [Wed, 2 Jan 2008 20:54:25 +0000 (14:54 -0600)]
use C99 bool return types (true & false).
(This used to be commit
f22c9d6296c754d472e8eab51caa058f55ef370e)
Gerald (Jerry) Carter [Wed, 2 Jan 2008 20:50:59 +0000 (14:50 -0600)]
Make sure that wbcLookupSid() and wbcLookupRids() use talloc()'d memory.
Follows existing convention that all returned memory should be freed with
wbcFreeMemory() and not directly with free(). Noticed by Volker. Txs.
(This used to be commit
39c2059f66ee9eb471a503b9c776807b91c2a8f8)
Jeremy Allison [Wed, 2 Jan 2008 19:56:07 +0000 (11:56 -0800)]
Attempt to fix bug #3617. Mix of patches from Volker and
myself. Use standard dlinklist macros.
Jeremy.
(This used to be commit
1b06ee69f6b737c1d6e7b29f8ae9621e6eb07d27)
Michael Adam [Wed, 2 Jan 2008 16:08:28 +0000 (17:08 +0100)]
Use the proper boolean constants.
Michael
(This used to be commit
f731fee408a809b6dc266d45e41f37e63bf4e48d)
Günther Deschner [Wed, 2 Jan 2008 12:50:31 +0000 (13:50 +0100)]
Fix libnetapi (resolve dependency on libwbclient).
Guenther
(This used to be commit
fa669b307c5191f1f8921e863e88c1e9ff692557)
Günther Deschner [Wed, 2 Jan 2008 12:50:13 +0000 (13:50 +0100)]
Fix libsmbclient (resolve dependency on libwbclient).
Guenther
(This used to be commit
ef17dc7bda98a8e4149e98fcfb99fe729edbec1f)
Günther Deschner [Wed, 2 Jan 2008 12:48:54 +0000 (13:48 +0100)]
Make libsmbsharemodes.so work again (fix unresolved tdb symbols).
Guenther
(This used to be commit
3c6ed0321606f0bcfc3b5edc492d69b0e2f602cb)
Volker Lendecke [Sat, 8 Dec 2007 11:29:09 +0000 (12:29 +0100)]
Convert call_trans2open to create_file()
(This used to be commit
22138572bd2b9ae379b01098566e38e132653968)
Volker Lendecke [Sat, 8 Dec 2007 11:05:41 +0000 (12:05 +0100)]
Convert reply_mknew to create_file
(This used to be commit
1b1cea9ef04a85a2fdd3c8574f7c4db559b7d9b6)
Volker Lendecke [Fri, 7 Dec 2007 13:23:10 +0000 (14:23 +0100)]
Convert reply_open_and_X to create_file
(This used to be commit
fa09b9ab26657af9bd6dcf3fcc7311d5983a591d)
Volker Lendecke [Fri, 7 Dec 2007 13:19:07 +0000 (14:19 +0100)]
Convert reply_open to create_file
(This used to be commit
209c696ab8490564ec9e30f6f07b9c72af3ed2e1)
Günther Deschner [Wed, 2 Jan 2008 12:22:19 +0000 (13:22 +0100)]
Add test_shlibs to Makefile.
Guenther
(This used to be commit
5f5051911c25772c7fb4ff41fca0aafae371ae4f)
Günther Deschner [Wed, 2 Jan 2008 11:55:53 +0000 (12:55 +0100)]
Happy new year !
Guenther
(This used to be commit
9a58cd57953d6aead14789daa47a3badef19496d)
Volker Lendecke [Tue, 1 Jan 2008 11:55:29 +0000 (12:55 +0100)]
Use NULL instead of 0
"struct security_descriptor" has pointers, not integers inside
(This used to be commit
13158014e3b05e44eea897fbcf470957301c5c97)
Michael Adam [Mon, 31 Dec 2007 02:57:45 +0000 (03:57 +0100)]
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
5608c398ad9a0d05d651905a81dd92b7a0e120ff)
Michael Adam [Mon, 31 Dec 2007 02:55:22 +0000 (03:55 +0100)]
Make grouping in if statement more explicit.
Michael
(This used to be commit
a1bb47695a7fb21af239aa9d02537d3de2fea325)
Michael Adam [Mon, 31 Dec 2007 02:25:54 +0000 (03:25 +0100)]
Fix a permissions error in reg_deletekey_recursive().
Michael
(This used to be commit
4a56d3d7075bd8bbd5e139c9433789ab29f6a70e)
Jeremy Allison [Mon, 31 Dec 2007 02:05:33 +0000 (18:05 -0800)]
We may use 127k read/write for encrypted connections.
Jeremy.
(This used to be commit
656c9d0844e3d9d87ae768fe5a5538759b94d953)
Michael Adam [Mon, 31 Dec 2007 02:02:39 +0000 (03:02 +0100)]
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)
Michael Adam [Mon, 31 Dec 2007 00:56:18 +0000 (01:56 +0100)]
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)
Michael Adam [Mon, 31 Dec 2007 00:14:44 +0000 (01:14 +0100)]
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)
Michael Adam [Sun, 30 Dec 2007 21:30:21 +0000 (22:30 +0100)]
Remove an unused variable.
Michael
(This used to be commit
332be113a775adce8108a8003682019ae7f5bc21)
Michael Adam [Sun, 30 Dec 2007 21:29:54 +0000 (22:29 +0100)]
Remove an unused variable.
Michael
(This used to be commit
7bac935b65565099c0dfb34cab0dec73dd5fb479)
Michael Adam [Sun, 30 Dec 2007 21:27:45 +0000 (22:27 +0100)]
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)
Jeremy Allison [Sun, 30 Dec 2007 21:10:29 +0000 (13:10 -0800)]
As the encryption is stream based there's no reason
oplock breaks can't be encrypted. If we have multiple
contexts I should probably attach them to the connection
struct, but for now use the global context number.
Jeremy.
(This used to be commit
5b4b335ed0d1dc738f1f099e5c638361f3aede07)
Jeremy Allison [Sun, 30 Dec 2007 06:42:20 +0000 (22:42 -0800)]
Fix error message.
Jeremy.
(This used to be commit
a0494b115b644c1c4afa50442c46a54779687571)
Jeremy Allison [Sun, 30 Dec 2007 06:39:52 +0000 (22:39 -0800)]
Added -e, --encrypt option to smbclient that immediately
forces encrypted smb after initial connect. Will document
for 3.2 official release.
Jeremy.
(This used to be commit
f02bf419282419950471deae74c4a6fe1543ed26)
Jeremy Allison [Sun, 30 Dec 2007 06:36:49 +0000 (22:36 -0800)]
Allow encryption context setup on IPC$.
Jeremy.
(This used to be commit
5d424cb3060af89bde50bc7fe2989e3c1b8e91b2)
Michael Adam [Sun, 30 Dec 2007 02:12:11 +0000 (03:12 +0100)]
Make pdb_tdb honour a private dir overridden in smb.conf.
One lp_private_dir() has to be used instead of get_dyn_PRIVATE_DIR()
to determine the location of the passdb.tdb.
I noticed this when running make test as a "normal user" from a
build, where I had done "make install" as root before, and so
the passdb.tdb could not be accessed during the startup phase
"CREATE TEST ENVIRONMENT IN ./st ..." in selftest.sh.
Michael
(This used to be commit
1f96389afa7250af7393489fb538b8aed93d815c)
Michael Adam [Sat, 29 Dec 2007 21:29:33 +0000 (22:29 +0100)]
Make libnet_smbconf_reg_open_path() static.
Michael
(This used to be commit
6447bae71c99407485307dd508603c73d5bb9823)
Michael Adam [Sat, 29 Dec 2007 21:29:00 +0000 (22:29 +0100)]
Make libnet_smbconf_reg_open_basepath() static.
Michael
(This used to be commit
8e87dd79ba4e3aeceb26c7b4e131053172f077cd)
Michael Adam [Sat, 29 Dec 2007 21:11:09 +0000 (22:11 +0100)]
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)
Michael Adam [Sat, 29 Dec 2007 21:09:51 +0000 (22:09 +0100)]
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)
Michael Adam [Sat, 29 Dec 2007 21:08:11 +0000 (22:08 +0100)]
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
94e97a72548a7f76a5273346d472e3ba5b24795a)
Michael Adam [Sat, 29 Dec 2007 20:59:28 +0000 (21:59 +0100)]
Include libnet/libnet.h in libnet_conf.c to have prototypes available.
Michael
(This used to be commit
4842438c396b93007fc4f4dded437567e562a2dc)
Jeremy Allison [Sat, 29 Dec 2007 22:43:32 +0000 (14:43 -0800)]
Use correct size value for linearize call.
Jeremy.
(This used to be commit
a5df44f5b7887d10c1e1a0b7a3dd05bcf31015e1)
Volker Lendecke [Sat, 29 Dec 2007 22:00:49 +0000 (23:00 +0100)]
Remove tiny code duplication
ndr_size_security_descriptor does the same as sec_desc_size
(This used to be commit
bc3bd7a8e7c6e9e27acb195c86abb92c0f53112f)
Volker Lendecke [Sat, 29 Dec 2007 21:54:51 +0000 (22:54 +0100)]
Make [un]marshall_sec_desc use librpc/ndr
(This used to be commit
387936ec3952f88d46df2d4943bbc4e408ad2bb5)
Volker Lendecke [Sat, 29 Dec 2007 21:47:03 +0000 (22:47 +0100)]
Make use of [un]marshall_sec_desc
(This used to be commit
54576733d6c0511dc7379f964b1cb035913b7c8d)
Volker Lendecke [Sat, 29 Dec 2007 21:16:31 +0000 (22:16 +0100)]
Remove tiny code duplication
sid_size did the same as ndr_size_dom_sid
(This used to be commit
8aec5d09ba023413bd8ecbdfbc7d23904df94389)
Volker Lendecke [Sat, 29 Dec 2007 20:41:23 +0000 (21:41 +0100)]
Fix a panic
get_root_nt_token asks for "struct nt_user_token". talloc_get_type is not smart
enough to see that this is the same as NT_USER_TOKEN... :-)
(This used to be commit
22a98bf7b81fb89dce1f32ef65cfe6caaba985b3)
Volker Lendecke [Thu, 27 Dec 2007 19:00:13 +0000 (20:00 +0100)]
Apply some const
(This used to be commit
241b72141e3d9e31e30977517f871a97d74bbf7d)
Michael Adam [Sat, 29 Dec 2007 16:06:49 +0000 (17:06 +0100)]
Return NULL (instead of unchanged) for no shares/parameters defined.
Michael
(This used to be commit
bfe3d1462f52d2849611fc58ad70fa08b4917077)
Michael Adam [Sat, 29 Dec 2007 16:02:27 +0000 (17:02 +0100)]
Dont return count - 1 but count from libnet_smbconf_reg_get_values().
Michael
(This used to be commit
ded60dec7d75db7df485a159fb6bf628d8e24805)
Michael Adam [Sat, 29 Dec 2007 13:38:42 +0000 (14:38 +0100)]
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)
Michael Adam [Sat, 29 Dec 2007 13:32:13 +0000 (14:32 +0100)]
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
f4a4c1b26a03cd0f334e00912d32f15c73474ff1)
Volker Lendecke [Sat, 29 Dec 2007 15:35:51 +0000 (16:35 +0100)]
Fix uninitalized variables
(This used to be commit
2322fe718728178990fdc3696b84f5de7ae7701b)
Volker Lendecke [Sat, 29 Dec 2007 12:10:25 +0000 (13:10 +0100)]
Attempt to fix the AIX make test failures
For some reason AIX does not return the sender address in the AF_UNIX recvfrom.
So the faked netbios name lookup does not work with socket wrapper, nmbd can't
know where to send the reply. This patch works around this by telling smbclient
explicitly where to connect.
If there's any AIX experts listening -- how do I get the sender address from
AF_UNIX recvfrom?
Volker
(This used to be commit
8ba3b8cf7aca657ad8426981d810c36ee6a34a2f)
Michael Adam [Sat, 29 Dec 2007 12:02:22 +0000 (13:02 +0100)]
Fix a const warning.
Michael
(This used to be commit
e276e48177f890531ee8b4024c90352f284d4608)
Michael Adam [Sat, 29 Dec 2007 11:55:42 +0000 (12:55 +0100)]
Rename libnet_smbconf_getshares() to libnet_smbconf_get_share_names().
Michael
(This used to be commit
9b3b9aa7e1044719a5112b9e5446e6fbdd7cecf9)
Michael Adam [Sat, 29 Dec 2007 11:53:19 +0000 (12:53 +0100)]
Add a comment header for libnet_smbconf_getshares().
Michael
(This used to be commit
7b51535f2f76b5c3c18620ffd9ac64505357e6db)
Michael Adam [Sat, 29 Dec 2007 11:52:09 +0000 (12:52 +0100)]
Move functionality of net_conf_listshares() to libnet_conf.c
into new function libnet_smbconf_getshares().
Michael
(This used to be commit
306c7e4d9cecac4c2c0ea1172bd585c3c17d4541)
Michael Adam [Sat, 29 Dec 2007 02:38:13 +0000 (03:38 +0100)]
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)
Volker Lendecke [Mon, 24 Dec 2007 13:12:54 +0000 (14:12 +0100)]
passdb.tdb is located in the private directory
Jerry, as part of
d6cdbfd87 the default location of passdb.tdb has changed from
the private directory to the state directory. I think because passdb.tdb holds
the password hashes, it is reasonable to keep this next to the smbpasswd file.
Please review and potentially push.
Thanks,
Volker
(This used to be commit
c9c7607c402c0a9df9796c767b689d207d67d8e4)
Michael Adam [Sat, 29 Dec 2007 01:27:20 +0000 (02:27 +0100)]
Make the main net_conf functions static in net_conf.c
Michael
(This used to be commit
dd6e09a65e67a9a16b35b078ebfb41da09926029)
Michael Adam [Sat, 29 Dec 2007 01:26:33 +0000 (02:26 +0100)]
Add a couple of comment headers to the main libnet_conf functions.
Michael
(This used to be commit
e9694ae20e1da1d8c1cbb252e630815b561647dd)