summaryrefslogtreecommitdiffstats
path: root/source3/libsmb
Commit message (Collapse)AuthorAgeFilesLines
...
* Add "err_on_readability" to writev_sendVolker Lendecke2009-05-241-2/+2
| | | | | | A socket where the other side has closed only becomes readable. To catch errors early when sitting in a pure writev, we need to also test for readability.
* Make cli_posix_open() and cli_posix_mkdir() async.Jeremy Allison2009-05-201-56/+217
| | | | Jeremy.
* Fix broken pipe handlingVolker Lendecke2009-05-181-2/+2
| | | | | | | | Metze is right: If we have *any* error at the socket level, we just can not continue. Also, apply some defensive programming: With this async stuff someone else might already have closed the socket.
* s3: tevent_req_poll() loops forever when pipe is brokenBo Yang2009-05-191-0/+8
| | | | Signed-off-by: Bo Yang <boyang@samba.org>
* What to do about debugging in a multi-threaded application?Derrell Lipman2009-05-131-7/+10
| | | | | | | - For now, punt. Any thread that requests debug to stderr will establish that for all threads. Derrell
* Thread-safe protection: libsmbclient initializationDerrell Lipman2009-05-131-94/+133
| | | | | | | | | | | | - Begin converting init functions to use SMB_THREAD_ONCE. libsmbclient module-wide initialization is now moved into a separate function and called via SMB_THREAD_ONCE. - libsmbclient counts users (contexts) so that it can release global resources when the last context is closed. That count of contexts is now protected by a mutex. Derrell
* s3:libsmb: move read_smb_send/recv() static in async_smb.cStefan Metzmacher2009-05-131-0/+87
| | | | metze
* s3:libsmb: let cli_smb_chain_send() also return NTSTATUSStefan Metzmacher2009-05-131-9/+12
| | | | metze
* s3:libsmb: return NT_STATUS_CONNECTION_INVALID if the fd is -1Bo Yang2009-05-131-5/+7
| | | | | | | | | | | | This way we can destinguish between requests which failed because the connection broke after they were triggered and the requests which are started on an already broken connection. This also moves the check to cli_smb_req_iov_send() where it really belongs. metze
* s3: return proper error code in cli_smb_req_sendBo Yang2009-05-135-38/+82
| | | | Signed-off-by: Bo Yang <boyang@samba.org>
* Clean up assignments to iov_base, ensure it's always cast to void *. This ↵Jeremy Allison2009-05-126-18/+18
| | | | | | should quieten some warnings with picky compilers on the buildfarm. Jeremy.
* Provide a libsmbclient interface for programs requiring threadsDerrell Lipman2009-05-102-0/+176
| | | | | | | | | - This adds two functions: smbc_thread_posix() which provides access to the internal threading implementation using pthread; and smbc_thread_impl() where the user provides each of the functions required by Samba, to give access to the thread implementation's native capabilities. Derrell
* s3:libsmb: fix layering of cli_ntrename_internal and its callersStefan Metzmacher2009-05-091-29/+35
| | | | | | | | It's easier to have cli_ntrename_internal as a semetric async tevent_req function. cli_ntrename() and cli_nt_hardlink() should be callers on top of cli_ntrename_internal(). metze
* Async API needs all parameters to be kept around until sent,Jeremy Allison2009-05-071-55/+15
| | | | | | ensure they're attached to the state structure. Thanks to Metze for pointing this out. Jeremy.
* Make cli_tcon_andx chainableVolker Lendecke2009-05-071-15/+42
|
* Make cli_session_setup_guest chainableVolker Lendecke2009-05-071-9/+31
|
* s3-credentials: protect netlogon_creds_server_step() against NULL creds.Günther Deschner2009-05-071-0/+4
| | | | | | Found by SCHANNEL torture tests. Guenther
* Make cli_setatr async.Jeremy Allison2009-05-063-2/+129
| | | | Jeremy.
* Make cli_setattrE async.Jeremy Allison2009-05-062-26/+98
| | | | Jeremy.
* Make cli_getatr() async.Jeremy Allison2009-05-052-27/+126
| | | | Jeremy.
* Make cli_getattrE async.Jeremy Allison2009-05-053-33/+132
| | | | Jeremy.
* Fix the async calls for the posix_unlink and posix_rmdir.Jeremy Allison2009-05-041-13/+49
| | | | Jeremy.
* Cause cli_close to return an NTSTATUS.Jeremy Allison2009-04-302-81/+4
| | | | Jeremy.
* Get medieval on our ass about SMB1 file descriptors being 16 bits, not an int.Jeremy Allison2009-04-3010-73/+72
| | | | | | | Convert all uses of cli_open(), cli_nt_createXXX to NTSTATUS versions. This is smaller than it looks, it just fixes a lot of old code. Next up, ensure all cli_XX functions return NTSTATUS. Jeremy.
* Make cli_unlink async.Jeremy Allison2009-04-292-28/+93
| | | | Jeremy.
* More async calls in libsmb/clifile.cJeremy Allison2009-04-291-50/+170
| | | | Jeremy.
* s3: fix crash in winbinddBo Yang2009-04-291-0/+4
|
* Doh ! Don't need "int dummy" when we have state :-).Jeremy Allison2009-04-281-1/+0
| | | | Jeremy.
* Convert cli_rename to async.Jeremy Allison2009-04-282-25/+108
| | | | Jeremy.
* Convert cli_posix_unlink() and cli_posix_rmdir()Jeremy Allison2009-04-281-63/+190
| | | | | to async. First trans calls I've done. Jeremy.
* Fix a type-punned warningVolker Lendecke2009-04-281-1/+1
|
* [FIX Bug 6235] domain enumeration breaks if master browser has space in nameDerrell Lipman2009-04-271-1/+2
| | | | | | | | | | | Jeremy: please review to ensure this doesn't appear to break anything The function name_status_find() is documented as used for finding a server's name given its IP address. It was, however, looking for the first matching name which could be a group name at times. This fix ensures that group names are skipped when scanning for a matching name. Derrell
* find/replace. Change uintX types to uintX_t types to tidy up the code.Jeremy Allison2009-04-241-38/+38
| | | | Jeremy.
* errormap: Change the WBC_ERR_UNKNOWN_ERROR to map to NT_STATUS_UNSUCCESSFULKai Blin2009-04-231-1/+1
| | | | | This allows us to distinguish on NTSTATUS level if we got a WBC_ERR_UNKNOWN_ERROR or WBC_ERR_NSS_ERROR.
* Make dskattr async.Jeremy Allison2009-04-221-38/+102
| | | | Jeremy.
* Make cli_chkpath async.Jeremy Allison2009-04-221-0/+121
| | | | Jeremy
* errormap: Add wbcErr to NTSTATUS mappingsKai Blin2009-04-221-0/+41
|
* s3:libsmb: always use the tevent_req_nomem() for checking allocation failuresStefan Metzmacher2009-04-211-6/+6
| | | | | | This will also make sure we cleanup 'req' in case of an error. metze
* Make rmdir async.Jeremy Allison2009-04-212-59/+92
| | | | Jeremy.
* Make cli_mkdir async. Change it to return NTSTATUS.Jeremy Allison2009-04-212-2/+111
| | | | Jeremy.
* s3-secdesc: use SEC_FLAG_MAXIMUM_ALLOWED instead of SEC_RIGHTS_MAXIMUM_ALLOWED.Günther Deschner2009-04-211-1/+1
| | | | Guenther
* Merge commit 'origin/master' into libcli-auth-merge-without-netlogondAndrew Bartlett2009-04-201-1/+1
|\
| * When doing a cli_ulogoff don't invalidate the cnum, invalidate the vuid.Jeremy Allison2009-04-161-1/+1
| | | | | | | | Jeremy.
* | s3:ntlmssp Remove use of talloc(NULL) in NTLMSSP codeAndrew Bartlett2009-04-202-12/+12
| |
* | s3:ntlmssp Fix segfault: msrpc_gen now uses talloc()Andrew Bartlett2009-04-201-46/+8
| |
* | Fix crash bug in NTLMSSP caused by msrpc_parse() moving to tallocAndrew Bartlett2009-04-161-4/+2
| |
* | More work to adapt to merged libcli/auth function prototypesAndrew Bartlett2009-04-144-16/+19
| |
* | Rework Samba3 to use new libcli/auth code (partial)Andrew Bartlett2009-04-148-2266/+26
|/ | | | | | | | | | | This commit is mostly to cope with the removal of SamOemHash (replaced by arcfour_crypt()) and other collisions (such as changed function arguments compared to Samba3). We still provide creds_hash3 until Samba3 uses the credentials code in netlogon server Andrew Bartlett
* Convert Samba3 to use the common lib/util/charset APIAndrew Bartlett2009-04-144-18/+18
| | | | | | | | | | | | This removes calls to push_*_allocate() and pull_*_allocate(), as well as convert_string_allocate, as they are not in the common API To allow transition to a common charcnv in future, provide Samba4-like strupper functions in source3/lib/charcnv.c (the actual implementation remains distinct, but the API is now shared) Andrew Bartlett
* Solve some of the conflict between Samba3 and Samba4 push_stringAndrew Bartlett2009-04-143-21/+23
| | | | | | | | This renames push_string in Samba3 into push_string_base and push_string_check for the two different use cases. This should allow push_string to be imported from Samba4, using it's calling conventions.