summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
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)
2007-12-29Make the main net_conf functions static in net_conf.cMichael Adam1-7/+7
Michael (This used to be commit dd6e09a65e67a9a16b35b078ebfb41da09926029)
2007-12-29Add a couple of comment headers to the main libnet_conf functions.Michael Adam1-0/+9
Michael (This used to be commit e9694ae20e1da1d8c1cbb252e630815b561647dd)
2007-12-29Add a comment header for libnet_smbconf_format_registry_value().Michael Adam1-0/+7
Michael (This used to be commit 80e73407ea326cc68cd8728845c7a1c0907e2201)
2007-12-29Handle NULL talloc context in libnet_smbconf_format_registry_value().Michael Adam1-1/+4
Maybe we should generate a new context instead of returning NULL? Michael (This used to be commit d7aaec713e17f93eed5177f0c3468deb625402a8)
2007-12-29Hide the registry backend from libnet_smbconf_getparm().Michael Adam2-6/+21
Return a formatted string of the value instead. Michael (This used to be commit 7d0ec5bae155cda6620db04dcb7bd43db59241aa)
2007-12-29Rename format_value() to libnet_smbconf_format_registry_value().Michael Adam2-3/+6
Michael (This used to be commit 95d5dd9bb0546181cd499e6deabff562166412e3)
2007-12-29Move format_value() to libnet_conf.c.Michael Adam2-33/+34
Michael (This used to be commit 3422a5048ad4b7f789ec233356885d78dbdacf9a)
2007-12-28Convert get_root_nt_token to memcacheVolker Lendecke3-3/+17
(This used to be commit fada689893314bed2fc78588b3fd9b144f4c808a)
2007-12-28Remove a globalVolker Lendecke1-9/+15
(This used to be commit 515f6a8cff7e28b0e98136f3214ef52512cfaf37)
2007-12-28don't store cache_readonly in gencacheVolker Lendecke1-15/+0
tdb won't allow us to write anyway (This used to be commit 069cd6d63a61065be7926230235e198c456d38ae)
2007-12-28Remove static zerosVolker Lendecke5-14/+31
(This used to be commit dbcc213710a9af31b6094d4741a6f68f573dcdad)
2007-12-28Remove a static arrayVolker Lendecke1-6/+6
This might be worth it, mangle_hash is hardly used these days (This used to be commit 44775ea38bc320ac8e2208769a8cde2c6f44f640)
2007-12-28Convert csamuser to memcacheVolker Lendecke3-27/+28
(This used to be commit 476d3abf9c6142d99822212141fc3d843aca4798)
2007-12-28bin/vlp needs a dependency on @LIBWBCLIENT_SHARED@Volker Lendecke1-1/+1
This failed to link if you compile with -j. (This used to be commit fed8f2abd704d1993146ad462d81f69367537cfb)
2007-12-28Improve error messages of 'net rpc user [add|delete]' commands.Karolin Seeger1-10/+14
Karolin (This used to be commit 4260c79bf7687bd2ebcc4ca5e0a5f020a759c1fb)
2007-12-28Ensure we turn off POSIX large read/write if encryptionJeremy Allison1-1/+4
is mandatory or signing is on. Jeremy. (This used to be commit 5088b704791be2f36641fa0ec59dff7f289ae868)
2007-12-27Add the capability to set "smb encrypt = required"Jeremy Allison5-3/+60
on a share (or global) and have the server reply with ACCESS_DENIED for all non-encrypted traffic (except that used to query encryption requirements and set encryption state). Jeremy. (This used to be commit d241bfa57729bb934ada6beabf842a2ca7b4f8a2)
2007-12-28Fix setting the initial permission bitsVolker Lendecke2-6/+25
This fixes a make test failure on Solaris. When creating a new file, file_set_dosmode() called from open_file_ntcreate calculates a new permission mask, very likely different from what had been calculated in open_file_ntcreate. Further down we overwrote the newly calculated value with SMB_FCHMOD_ACL, ignoring what file_set_dosmode had calculated. Why did Linux not see this? fchmod_acl on a newly created file without acls would not retrieve an acl at all, whereas under Solaris acl(2) returns something even for files with just posix permissions returns something. Jeremy, given that we have very similar code in 3.0.28 this might also explain some of the bug reports that people have concerning ACLs on new files. Volker P.S: This one took a while to find... (This used to be commit 2135dfe91bf1ae114a18c15286b535662200677d)
2007-12-27Add "smb encrypt" parameter. Can be set to "no, yes, required".Jeremy Allison2-1/+28
Currently if set required this is not enforced. I'll be adding that soon. Jeremy. (This used to be commit df7e447623ac03d81bec384f5cfe83c3976cf7b2)
2007-12-28Fix the non-gcc branch of "likely"Volker Lendecke1-2/+2
(This used to be commit 1e07368b5f96e4ada622682e38d260eb0c6185f2)
2007-12-27Remove a silly staticVolker Lendecke1-6/+6
(This used to be commit ef75dcc9ffda85d77c8f22d0db702efbf8e642ed)
2007-12-27Fix the buildVolker Lendecke1-2/+3
(This used to be commit 7fb858b350856d626fed6f062029fcf09b8251e2)
2007-12-27Wrap the DEBUG checks in a "unlikely"Volker Lendecke1-6/+21
On my Laptop with some limited netbench runs this gains about 1.5% of performance. When looking at the assembler output I would suspect the biggest gain is by the fact that with this in place the calls to the debug functions is moved to the function end, out of the way of the normal code paths. valgrind tests pending I would suspect this to be much more cache friendly. Comments? Volker (This used to be commit 51448a9dca95de9d35dd8eea68fde2554cb69921)
2007-12-27Add CIFS_UNIX_TRANSPORT_ENCRYPTION_CAP capability toJeremy Allison2-2/+7
our reported caps. Jeremy. (This used to be commit e86d027823c85173c64e7b85406e98f6f7345b10)
2007-12-26Encryption works better when you add the client decrypt code :-).Jeremy Allison1-0/+11
Jeremy. (This used to be commit d67b2634068be9c69082a2b8c22c831aba371cd9)
2007-12-26Add SMB encryption. Still fixing client decrypt butJeremy Allison34-214/+2116
negotiation works. Jeremy. (This used to be commit d78045601af787731f0737b8627450018902b104)
2007-12-27typosVolker Lendecke1-2/+2
(This used to be commit 30fa3477c8f810d8f2b4c4be218509544735274c)
2007-12-26Fix some memleaksVolker Lendecke1-5/+6
(This used to be commit 78b0b66cbac349625257260d2e45d918e0c93617)
2007-12-26Remove the sampwent interfaceVolker Lendecke6-471/+3
(This used to be commit 9e80b969fb40766de2c9b1a05d16bf4d4c6e46f7)
2007-12-26Convert pdbedit to use pdb_search_usersVolker Lendecke1-78/+123
(This used to be commit 8a8f2583b8bda22f65c7483dea54ac823ed1c0c3)
2007-12-26Properly destroy the pdb search objectVolker Lendecke1-1/+1
(This used to be commit 514cf532248723e7f775dc5f8f2e6936e02b7a1c)
2007-12-26smbpasswd_search_usersVolker Lendecke1-0/+114
(This used to be commit 84af4fb65677cf137f14f57c8820c77c9d006d89)
2007-12-26Add tdbsam_search_usersVolker Lendecke1-0/+134
(This used to be commit 02f0b0bd393bd942fc934f251bd6afed8e5424b0)
2007-12-26We need to return the correct atimeVolker Lendecke1-1/+6
On systems with nanosecond atime we need to re-stat after messing with the fd, at least Solaris 10 updates atime after we stat(2)ed the file. (This used to be commit 6e6ec0a563f8b7e3d4618ce60e776bcce53f40c4)
2007-12-26Move libnet_smbconf_reg_open_basepath() in source fileMichael Adam1-9/+9
to group helper functions more logically. Michael (This used to be commit 3fa3891f8721e9f02594cd1be2dc6b9b88692416)
2007-12-26Rename libnet_smbconf_open_basepath() to libnet_smbconf_reg_open_basepath().Michael Adam2-6/+8
Michael (This used to be commit 4c0e7270c42788e7f77c402032ae74cf0f8a7106)
2007-12-26Rename libnet_smbconf_open_path() to libnet_smbconf_reg_open_path().Michael Adam2-11/+13
Michael (This used to be commit 4b0e636965bd37e7c0deecb7b5eff0cc4487408b)
2007-12-26Rename libnet_smbconf_open_path_q() to libnet_smbconf_open_path()Michael Adam1-27/+10
removing previouse libnet_smbconf_open_path() and adding DEBUG output (instead of d_fprintf error output) to new libnet_smbconf_open_path(). Michael (This used to be commit e63cc54fab8a0b03573f76305eab366a3ee4eda1)