summaryrefslogtreecommitdiffstats
path: root/source3
Commit message (Collapse)AuthorAgeFilesLines
...
* Torture test for bug 7084 - Create time on directories not stored properly ↵Jeremy Allison2010-02-012-1/+88
| | | | | | | | in an EA in new create time code. Ensure new files in a directory don't reset the create time. Jeremy.
* Arg. Got the sense of the test reversed to fix bug #7080 - Quota only shown ↵Jeremy Allison2010-02-011-1/+1
| | | | | | when logged as root.. Doh ! Jeremy.
* Fix bug #7080 - Quota only shown when logged as root.Jeremy Allison2010-02-011-1/+1
| | | | | | | | | | | conn->server_info->utok.uid == 0 isn't the correct check to see if we're root anymore. As rpc_samr_nt.c does, the correct check is : geteuid() == sec_initial_uid() Jeremy.
* s3: Fix some DEBUG messagesVolker Lendecke2010-01-311-3/+3
|
* Fix bug #7079 - cliconnect gets realm wrong with trusted domains.Jeremy Allison2010-01-304-3/+91
| | | | | | | | | | | Passing NULL as dest_realm for cli_session_setup_spnego() was always using our own realm (as for a NetBIOS name). Change this to look for the mapped realm using krb5_get_host_realm() if the destination machine name is a DNS name (contains a '.'). Could get fancier with DNS name detection (length, etc.) but this will do for now. Jeremy.
* s3/smbd: Fix string buffer overflow causing heap corruptionSteven Danneman2010-01-301-1/+2
| | | | | | | | | | | | | The destname malloc size was not taking into account the 1 extra byte needed if a string without a leading '/' was passed in and that slash was added. This would cause the '\0' byte to be written past the end of the malloced destname string and corrupt whatever heap memory was there. This problem would be hit if a share name was given in smb.conf without a leading '/' and if it was the exact size of the allocated STRDUP memory which in some implementations of malloc is a power of 2.
* Fix a really interesting problem found by Volker's conversion of ↵Jeremy Allison2010-01-291-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | sessionsetup SPNEGO to asynchronous code. Normally clistr_push_fn() can depend upon cli->outbuf being initialized by negprot and sessionsetup packets, and cli->outbuf[smb_flgs2] being correctly set with FLAGS2_UNICODE_STRINGS when cli_setup_packet() is called. When all the sessionsetups are async, then cli_setup_packet() is never called, the async code uses cli_setup_packet_buf() - which initializes the allocated async buffer, not the cli->outbuf one. So the first time clistr_push_fn() is called is from libsmb/clidfs.c:cli_dfs_get_referral(), just after the connection and tconX. In this case cli->outbuf has never been initialized, and cli->outbuf[smb_flgs2] = 0 so the DFS query pushes ASCII on the wire, which is not what we want :-). Remove the dependency on cli->outbuf[smb_flgs2] in clistr_push_fn(), and fake up a SVAL(cli->outbuf, smb_flg2) value using cli_ucs2(cli) function instead, which has been initialized. We only care about the FLAGS2_UNICODE_STRINGS bit anyway. I don't think this is an issue for 3.5.0 as the sessionsetup is still synchronous there, but Volker PLEASE CHECK ! Jeremy.
* s3: link thread objects in libsmbclient only and adjust linker flagsBjörn Jacke2010-01-291-8/+10
|
* AIX doesn't have MSG_DONTWAITolivier2010-01-291-1/+1
|
* s3: by default don't use pthread pool supportBjörn Jacke2010-01-291-5/+5
|
* Fix bug #7069 - smbget does not return an error status after some errorsJeremy Allison2010-01-281-38/+45
| | | | | | | A combination patch from Johannes Poehlmann <johannes@lst.de> and Jeremy. Fix the return codes from smb_download_file() and smb_download_dir(). Jeremy.
* s3/winbind_ccache: Fix typo in debug message.Karolin Seeger2010-01-281-1/+1
| | | | Karolin
* Second part of fix for bug #7072 - Accounts can't be unlocked from ldap.Jeremy Allison2010-01-271-1/+2
| | | | | | Missed read of entry_timestamp (was entry->entry_timestamp). Jeremy.
* Fix bug #7072 - Accounts can't be unlocked from ldap.Jeremy Allison2010-01-271-7/+15
| | | | | | | | | | | | Fix suggested by Andy Hanton <andyhanton@gmail.com>. The LOGIN_CACHE struct contains two time_t entries, but was being written to and read from via tdb_pack/tdb_unpack functions using explicit 32-bit int specifiers. This would break on machines with a 64-bit time_t. Use correct int sizes for tdb_pack/tdb_unpack. We have to fix this properly before 2037 :-). Jeremy.
* s3: syntax fixBjörn Jacke2010-01-271-1/+1
|
* s3: Install and uninstall the static version of libwbclientLars Müller2010-01-271-0/+2
| | | | | This requires to call configure with --enable-static which isn't the case by default.
* s3: get pthread detection also on HP-UX rightBjörn Jacke2010-01-271-1/+12
|
* s3-selftest: try to get RPC-SPOOLSS-NOTIFY running during make test on the ↵Günther Deschner2010-01-271-1/+3
| | | | | | buildfarm. Guenther
* Fix bug #7067 - Linux asynchronous IO (aio) can cause smbd to fail to ↵Jeremy Allison2010-01-263-5/+71
| | | | | | | | | respond to a read or write. Only works on Linux kernels 2.6.26 and above. Grants CAP_KILL capability to allow Linux threads under different euids to send signals to each other. Jeremy.
* Add dependency of bin/smbfilter to libwbclient.Lars Müller2010-01-261-1/+1
|
* s3: Enable use of ccache by default for libsmbclientVolker Lendecke2010-01-261-0/+3
| | | | | | Disable this by setting the environment variable LIBSMBCLIENT_NO_CCACHE, which has the advantage over an smb.conf option to be easily settable per application.
* Correct fix for unused variable return from ndr_decode. Use it :-).Jeremy Allison2010-01-251-0/+8
| | | | Jeremy.
* Revert "s3: remove unused Variable"Jeremy Allison2010-01-251-0/+4
| | | | | | | | | This reverts commit 9536d94d5478b63fc05047964b40d8786a7246c4. Bjorn, your change removed the ndr_decoding of the dos attribute. Not a good idea :-). Jeremy.
* s3: fix detection and flags for using pthreadBjörn Jacke2010-01-263-13/+59
| | | | I hope this fixes the build on Tru64, IRIX and maybe bug #6983
* s3: remove unused variableBjörn Jacke2010-01-261-2/+0
|
* s3:async_smb: remove unused variableBjörn Jacke2010-01-261-2/+0
|
* s3: remove unused VariableBjörn Jacke2010-01-261-4/+0
| | | | Jeremy, please check!
* s3:netapi: remove unused variableBjörn Jacke2010-01-261-2/+0
|
* s3/registry: Fix typo in comment.Karolin Seeger2010-01-251-2/+2
| | | | Karolin
* Revert "s3: Make string_to_sid a wrapper around dom_sid_parse"Volker Lendecke2010-01-251-7/+50
| | | | This reverts commit dff03b61fd5d923562711b38cc7dbe996dc07283.
* s3-libsmbclient: Add smbc_setOptionUseCCache()Volker Lendecke2010-01-244-0/+50
| | | | | | | Can we enable this by default? This would be a change in behaviour, but this feature is just too cool for everyone to catch up in the apps. The patch would be
* s3: Add --use-ccache to netVolker Lendecke2010-01-244-0/+9
|
* s3: add libnetapi_set_use_ccache()Volker Lendecke2010-01-243-0/+16
|
* s3: Fix a bug in net's use of poptVolker Lendecke2010-01-241-1/+1
| | | | | | | | | | | | In order to add --use-ccache to net, I added another "bool opt_ccache;" to struct net_context. popt did not like this, it took a while to figure out why. Popt has the lines /* XXX Check alignment, may fail on funky platforms. */ if (arg == NULL || (((unsigned long)arg) & (sizeof(*arg)-1))) return POPT_ERROR_NULLARG; The "bool opt_ccache;" was not aligned anymore...
* s3: Enable -C in rpcclientVolker Lendecke2010-01-241-0/+3
|
* s3: Add CLI_FULL_CONNECTION_USE_CCACHEVolker Lendecke2010-01-242-0/+4
|
* s3: Use -C in smbclientVolker Lendecke2010-01-241-0/+1
| | | | | | | | | | | | | | | $ bin/wbinfo --ccache-save=w2k3ad\\vl%Password saving creds succeeded $ bin/smbclient //192.168.42.160/tmp -Uvl -N -C -W w2k3ad OS=[Windows Server 2003 R2 3790 Service Pack 2] Server=[Windows Server 2003 R2 5.2] smb: \> $ bin/wbinfo --ccache-save=w2k3ad\\vl%WrongPassword saving creds succeeded $ bin/smbclient //192.168.42.160/tmp -Uvl -N -C -W w2k3ad Anonymous login successful Domain=[W2K3AD] OS=[Windows Server 2003 R2 3790 Service Pack 2] Server=[Windows Server 2003 R2 5.2] tree connect failed: NT_STATUS_ACCESS_DENIED $
* s3: Add -C (--use-ccache) to popt_common_credentialsVolker Lendecke2010-01-244-1/+20
|
* s3: Add ccache use to cli_session_setup_ntlmsspVolker Lendecke2010-01-242-0/+5
|
* s3: Add NTLMSSP_FEATURE_CCACHEVolker Lendecke2010-01-243-5/+73
| | | | Uses the winbind ccache to do authentication if asked to do so
* s3: Add the session key to the ccache_ntlm_auth responseVolker Lendecke2010-01-241-4/+18
|
* s3: Add wbinfo --ccache-saveVolker Lendecke2010-01-244-0/+80
| | | | | With this command you can give winbind your password for later use by the automatic ntlm_auth
* s3: Remove some calls to memset -- reduces text size by some bytes for meVolker Lendecke2010-01-242-13/+5
|
* s3: Make string_to_sid a wrapper around dom_sid_parseVolker Lendecke2010-01-231-50/+7
|
* s3: Add a little torture test for dom_sid_parseVolker Lendecke2010-01-232-0/+19
|
* s3: Remove string_sid_tallocVolker Lendecke2010-01-232-14/+0
| | | | All but one call were pointless, so I think this API should go
* s3: Remove a call to string_sid_tallocVolker Lendecke2010-01-231-2/+6
|
* s3: Fix sending NULL sids to lookupsids3Volker Lendecke2010-01-231-2/+2
|
* s3: Remove some pointless uses of string_sid_tallocVolker Lendecke2010-01-233-10/+10
|
* s3: Use global_sid_Builtin in net_groupmap_membershipsVolker Lendecke2010-01-231-4/+3
|