summaryrefslogtreecommitdiff
path: root/source3/libsmb
AgeCommit message (Collapse)AuthorFilesLines
2009-04-23errormap: Change the WBC_ERR_UNKNOWN_ERROR to map to NT_STATUS_UNSUCCESSFULKai Blin1-1/+1
This allows us to distinguish on NTSTATUS level if we got a WBC_ERR_UNKNOWN_ERROR or WBC_ERR_NSS_ERROR.
2009-04-22Make dskattr async.Jeremy Allison1-38/+102
Jeremy.
2009-04-22Make cli_chkpath async.Jeremy Allison1-0/+121
Jeremy
2009-04-22errormap: Add wbcErr to NTSTATUS mappingsKai Blin1-0/+41
2009-04-21s3:libsmb: always use the tevent_req_nomem() for checking allocation failuresStefan Metzmacher1-6/+6
This will also make sure we cleanup 'req' in case of an error. metze
2009-04-21Make rmdir async.Jeremy Allison2-59/+92
Jeremy.
2009-04-21Make cli_mkdir async. Change it to return NTSTATUS.Jeremy Allison2-2/+111
Jeremy.
2009-04-21s3-secdesc: use SEC_FLAG_MAXIMUM_ALLOWED instead of SEC_RIGHTS_MAXIMUM_ALLOWED.Günther Deschner1-1/+1
Guenther
2009-04-20Merge commit 'origin/master' into libcli-auth-merge-without-netlogondAndrew Bartlett1-1/+1
2009-04-20s3:ntlmssp Remove use of talloc(NULL) in NTLMSSP codeAndrew Bartlett2-12/+12
2009-04-20s3:ntlmssp Fix segfault: msrpc_gen now uses talloc()Andrew Bartlett1-46/+8
2009-04-16When doing a cli_ulogoff don't invalidate the cnum, invalidate the vuid.Jeremy Allison1-1/+1
Jeremy.
2009-04-16Fix crash bug in NTLMSSP caused by msrpc_parse() moving to tallocAndrew Bartlett1-4/+2
2009-04-14More work to adapt to merged libcli/auth function prototypesAndrew Bartlett4-16/+19
2009-04-14Rework Samba3 to use new libcli/auth code (partial)Andrew Bartlett8-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
2009-04-14Convert Samba3 to use the common lib/util/charset APIAndrew Bartlett4-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
2009-04-14Solve some of the conflict between Samba3 and Samba4 push_stringAndrew Bartlett3-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.
2009-04-12Fix a bug in smbclient not sending the correct called nameVolker Lendecke1-1/+5
Jeremy, I think the ability to say smbclient //foo/bar -I <ip-address> -p 139 making the called name to "foo" got lost with 3d2d0203. Was this removed deliberately? If so, please revert this patch. If not, please merge appropriately. Thanks, Volker
2009-04-08Convert cli_push to tevent_reqVolker Lendecke1-69/+58
Metze, please check! Thanks, Volker
2009-04-08Convert cli_pull to tevent_reqVolker Lendecke1-45/+40
2009-04-07s3:kerberos Rework smb_krb5_unparse_name() to take a talloc contextAndrew Bartlett1-11/+12
Signed-off-by: Günther Deschner <gd@samba.org>
2009-04-06Add a bad hack to enable level 2 oplocks in torture_open_connection_shareVolker Lendecke1-0/+4
2009-04-06Make cli_oplock_ack asyncVolker Lendecke1-29/+94
2009-04-06Add async oplock waiterVolker Lendecke1-1/+101
2009-04-06Never hand out 0xffff as a midVolker Lendecke1-1/+1
This is used for oplock replies
2009-04-06Remove async_req based async libsmb infrastructureVolker Lendecke1-869/+0
2009-04-06Convert cli_open to tevent_reqVolker Lendecke1-46/+102
2009-04-06Convert cli_close to tevent_reqVolker Lendecke1-20/+66
2009-04-06Streamline cli_push sync wrapperVolker Lendecke1-9/+18
2009-04-06Convert cli_write_andx to tevent_reqVolker Lendecke1-37/+88
2009-04-06Streamline cli_pull sync wrapperVolker Lendecke1-9/+18
2009-04-06Convert cli_read_andx to tevent_reqVolker Lendecke1-108/+150
2009-04-06Convert cli_ntcreate to tevent_reqVolker Lendecke1-38/+68
2009-04-06Convert cli_tcon_andx to tevent_reqVolker Lendecke1-54/+69
2009-04-06Convert cli_negprot to tevent_reqVolker Lendecke1-36/+68
2009-04-06Convert cli_session_setup_guest to tevent_reqVolker Lendecke1-39/+69
2009-04-06Convert cli_trans to tevent_reqVolker Lendecke1-382/+272
2009-04-06Convert cli_echo to tevent_reqVolker Lendecke1-79/+66
2009-04-06Add new async libsmb infrastructureVolker Lendecke2-0/+777
I know this is just yet another iteration, but I like this one much better than the one that exists right now :-) It will do trans and echo requests without a _recv helper and without unnecessary memcpy().
2009-04-05Remove async_req dependency from cli_pull_transVolker Lendecke1-23/+25
2009-03-31Fix an uninitialized variable valgrind errorVolker Lendecke1-2/+2
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2009-03-27[Bug 6228] SMBC_open_ctx failure due to path resolve failure doesn't set errnoDerrell Lipman3-1/+15
Fixed. It turns out there were a number of places where cli_resolve_path() was called and the error path upon that function failing did not set errno. There were a couple of places the failure handling code did set errno to ENOENT, so I made them all consistent, although I think better errno choices for this condition exist, e.g. EHOSTUNREACH. Derrell
2009-03-24s3: parse_packet can return NULL which is then dereferenced in ↵Tim Prouty1-0/+2
match_mailslot_name
2009-03-24Fix two memleaks in the encryption codeVolker Lendecke1-1/+2
ntlmssp_seal_packet creates its own signature data blob, which we then have to free. Jeremy, please check and merge appropriately (Yes, I'm asking you to do the janitor work, I want you to *look* at this :-)) Volker
2009-03-24s3:dsgetdcname: use parentheses in if condition to make negation clearBjörn Jacke1-1/+1
Signed-off-by: Günther Deschner <gd@samba.org>
2009-03-23s3:libsmb: use new simplified smb_signing code for the client sideStefan Metzmacher5-686/+204
We store the seqnum/mid mapping in the cli_request structure for async requests and in the cli_state structure for sync calls. We skip the signing check for oplock requests while waiting for async requests coming in. metze
2009-03-23s3:smbd: use new simplified snb_signing code in the serverStefan Metzmacher1-333/+0
We keep the seqnum/mid mapping in the smb_request structure. This also moves one global variable into the smbd_server_connection struct. metze
2009-03-23s3:libsmb: add a much simplified smb_siging infrastructureStefan Metzmacher1-0/+370
It's the job of the caller to maintain the seqnum/mid mapping. Hopefully we can use this code in s4 later too. metze
2009-03-23s3:libsmb: rename smb_signing.c => clisigning.cStefan Metzmacher1-0/+0
This prepares a large simplification of the smb_signing code metze
2009-03-23Fix connect to port 139 only -- thanks gd for bugging me :-)Volker Lendecke1-4/+3