summaryrefslogtreecommitdiff
path: root/source3
AgeCommit message (Collapse)AuthorFilesLines
2008-01-02Use the proper boolean constants.Michael Adam1-2/+2
Michael (This used to be commit f731fee408a809b6dc266d45e41f37e63bf4e48d)
2008-01-02Fix libnetapi (resolve dependency on libwbclient).Günther Deschner1-1/+1
Guenther (This used to be commit fa669b307c5191f1f8921e863e88c1e9ff692557)
2008-01-02Fix libsmbclient (resolve dependency on libwbclient).Günther Deschner1-1/+1
Guenther (This used to be commit ef17dc7bda98a8e4149e98fcfb99fe729edbec1f)
2008-01-02Make libsmbsharemodes.so work again (fix unresolved tdb symbols).Günther Deschner1-1/+1
Guenther (This used to be commit 3c6ed0321606f0bcfc3b5edc492d69b0e2f602cb)
2008-01-02Convert call_trans2open to create_file()Volker Lendecke1-57/+16
(This used to be commit 22138572bd2b9ae379b01098566e38e132653968)
2008-01-02Convert reply_mknew to create_fileVolker Lendecke1-38/+16
(This used to be commit 1b1cea9ef04a85a2fdd3c8574f7c4db559b7d9b6)
2008-01-02Convert reply_open_and_X to create_fileVolker Lendecke1-42/+19
(This used to be commit fa09b9ab26657af9bd6dcf3fcc7311d5983a591d)
2008-01-02Convert reply_open to create_fileVolker Lendecke1-40/+19
(This used to be commit 209c696ab8490564ec9e30f6f07b9c72af3ed2e1)
2008-01-02Add test_shlibs to Makefile.Günther Deschner1-0/+8
Guenther (This used to be commit 5f5051911c25772c7fb4ff41fca0aafae371ae4f)
2008-01-02Happy new year !Günther Deschner1-1/+1
Guenther (This used to be commit 9a58cd57953d6aead14789daa47a3badef19496d)
2008-01-01Use NULL instead of 0Volker Lendecke1-4/+4
"struct security_descriptor" has pointers, not integers inside (This used to be commit 13158014e3b05e44eea897fbcf470957301c5c97)
2007-12-31Make the last two helper functions in libnet_conf.c static.Michael Adam1-4/+4
Now the registry backend is completely hidden from the API. Michael (This used to be commit 5608c398ad9a0d05d651905a81dd92b7a0e120ff)
2007-12-31Make grouping in if statement more explicit.Michael Adam1-1/+3
Michael (This used to be commit a1bb47695a7fb21af239aa9d02537d3de2fea325)
2007-12-31Fix a permissions error in reg_deletekey_recursive().Michael Adam1-1/+1
Michael (This used to be commit 4a56d3d7075bd8bbd5e139c9433789ab29f6a70e)
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 Adam2-25/+25
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 an unused variable.Michael Adam1-1/+0
Michael (This used to be commit 7bac935b65565099c0dfb34cab0dec73dd5fb479)
2007-12-30Remove all d_fprintf-s from libnet_conf.cMichael Adam2-20/+39
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-30As the encryption is stream based there's no reasonJeremy Allison2-5/+16
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)
2007-12-29Fix error message.Jeremy Allison1-1/+1
Jeremy. (This used to be commit a0494b115b644c1c4afa50442c46a54779687571)
2007-12-29Added -e, --encrypt option to smbclient that immediatelyJeremy Allison2-21/+145
forces encrypted smb after initial connect. Will document for 3.2 official release. Jeremy. (This used to be commit f02bf419282419950471deae74c4a6fe1543ed26)
2007-12-29Allow encryption context setup on IPC$.Jeremy Allison1-7/+27
Jeremy. (This used to be commit 5d424cb3060af89bde50bc7fe2989e3c1b8e91b2)
2007-12-29Make pdb_tdb honour a private dir overridden in smb.conf.Michael Adam1-1/+1
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)
2007-12-30Make libnet_smbconf_reg_open_path() static.Michael Adam1-4/+4
Michael (This used to be commit 6447bae71c99407485307dd508603c73d5bb9823)
2007-12-30Make libnet_smbconf_reg_open_basepath() static.Michael Adam1-2/+3
Michael (This used to be commit 8e87dd79ba4e3aeceb26c7b4e131053172f077cd)
2007-12-30Remove list_values() from net_conf.c - it is not needed any more.Michael Adam2-28/+2
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-30Use libnet_smbconf_get_config() in net_conf_list().Michael Adam1-45/+19
This leaves only output logic in net_conf_list(). Michael (This used to be commit 95d9981d59fe69ee1ed98f21475bd1ba72930c1b)
2007-12-30Add a function libnet_smbconf_get_config() to libnet_conf.cMichael Adam1-0/+84
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)
2007-12-30Include libnet/libnet.h in libnet_conf.c to have prototypes available.Michael Adam1-0/+1
Michael (This used to be commit 4842438c396b93007fc4f4dded437567e562a2dc)
2007-12-29Use correct size value for linearize call.Jeremy Allison1-1/+1
Jeremy. (This used to be commit a5df44f5b7887d10c1e1a0b7a3dd05bcf31015e1)
2007-12-29Remove tiny code duplicationVolker Lendecke13-47/+22
ndr_size_security_descriptor does the same as sec_desc_size (This used to be commit bc3bd7a8e7c6e9e27acb195c86abb92c0f53112f)
2007-12-29Make [un]marshall_sec_desc use librpc/ndrVolker Lendecke1-25/+29
(This used to be commit 387936ec3952f88d46df2d4943bbc4e408ad2bb5)
2007-12-29Make use of [un]marshall_sec_descVolker Lendecke2-37/+28
(This used to be commit 54576733d6c0511dc7379f964b1cb035913b7c8d)
2007-12-29Remove tiny code duplicationVolker Lendecke8-34/+26
sid_size did the same as ndr_size_dom_sid (This used to be commit 8aec5d09ba023413bd8ecbdfbc7d23904df94389)
2007-12-29Fix a panicVolker Lendecke1-1/+1
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)
2007-12-29Apply some constVolker Lendecke1-4/+4
(This used to be commit 241b72141e3d9e31e30977517f871a97d74bbf7d)
2007-12-29Return NULL (instead of unchanged) for no shares/parameters defined.Michael Adam1-0/+5
Michael (This used to be commit bfe3d1462f52d2849611fc58ad70fa08b4917077)
2007-12-29Dont return count - 1 but count from libnet_smbconf_reg_get_values().Michael Adam2-2/+2
Michael (This used to be commit ded60dec7d75db7df485a159fb6bf628d8e24805)
2007-12-29Make sure libnet_smbconf_get_share_names() always lists "global" first.Michael Adam2-5/+22
And don't return count-1 but count. Michael (This used to be commit b7cb9b78231512dc4a88c307048d7fb5334fa319)
2007-12-29Move talloc-appending a string to an array to its own helper functionMichael Adam1-13/+49
libnet_smbconf_add_string_to_array(). Michael (This used to be commit f4a4c1b26a03cd0f334e00912d32f15c73474ff1)
2007-12-29Fix uninitalized variablesVolker Lendecke1-2/+2
(This used to be commit 2322fe718728178990fdc3696b84f5de7ae7701b)
2007-12-29Attempt to fix the AIX make test failuresVolker Lendecke1-3/+3
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)
2007-12-29Fix a const warning.Michael Adam1-1/+1
Michael (This used to be commit e276e48177f890531ee8b4024c90352f284d4608)
2007-12-29Rename libnet_smbconf_getshares() to libnet_smbconf_get_share_names().Michael Adam2-3/+3
Michael (This used to be commit 9b3b9aa7e1044719a5112b9e5446e6fbdd7cecf9)
2007-12-29Add a comment header for libnet_smbconf_getshares().Michael Adam1-0/+3
Michael (This used to be commit 7b51535f2f76b5c3c18620ffd9ac64505357e6db)
2007-12-29Move functionality of net_conf_listshares() to libnet_conf.cMichael Adam2-15/+58
into new function libnet_smbconf_getshares(). Michael (This used to be commit 306c7e4d9cecac4c2c0ea1172bd585c3c17d4541)
2007-12-29Move functionality of net_conf_showshare() to libnet_conf.cMichael Adam2-4/+104
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-29passdb.tdb is located in the private directoryVolker Lendecke1-1/+2
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)