summaryrefslogtreecommitdiffstats
path: root/source3/libsmb
Commit message (Collapse)AuthorAgeFilesLines
...
* s3:ntlmssp: pass names to ntlmssp_server_start() and store them in ntlmssp_stateStefan Metzmacher2010-03-241-36/+65
| | | | | | | | Inspired by the NTLMSSP merge work by Andrew Bartlett. metze Signed-off-by: Günther Deschner <gd@samba.org>
* s3:ntlmssp: replace server_role by a server.is_standalone in ntlmssp_stateStefan Metzmacher2010-03-241-2/+2
| | | | | | | | Inspired by the NTLMSSP merge work by Andrew Bartlett. metze Signed-off-by: Günther Deschner <gd@samba.org>
* s3:ntlmssp: make use of C99 types in ntlmssp_sign.cStefan Metzmacher2010-03-241-18/+17
| | | | | | metze Signed-off-by: Günther Deschner <gd@samba.org>
* s3:ntlmssp: use uint8_t in calc_ntlmv2_key()Stefan Metzmacher2010-03-241-4/+4
| | | | | | metze Signed-off-by: Günther Deschner <gd@samba.org>
* s3:libsmb: add a smb_signing_init_ex() functionStefan Metzmacher2010-03-221-8/+51
| | | | | | Make it possible to overload memory handling functions. metze
* error_codes: fix NT_STATUS_RPC_UNKNOWN_IF typo.Günther Deschner2010-03-191-1/+1
| | | | | | Metze, please check. Guenther
* s3:libsmb/nterr.c: fix/add NT_STATUS_RPC_* codesStefan Metzmacher2010-03-181-4/+9
| | | | metze
* s3: Convert unexpected.tdb to use tdb_wrap_openVolker Lendecke2010-03-131-10/+12
|
* s3: Fix a typo. Thanks to Christian Ambach for pointing me at it :-)Volker Lendecke2010-03-091-1/+1
|
* s3: Add i18n/l10n strings in pam_winbind.c coming from winbindd.Bo Yang2010-03-061-91/+95
| | | | Signed-off-by: Bo Yang <boyang@samba.org>
* Fix typo in comments.Karolin Seeger2010-03-031-2/+2
|
* s3: Fix the CHAIN1 torture testVolker Lendecke2010-02-281-1/+9
| | | | | | I've tried to solve this just within cli_smb_recv(), but I could not find a way to sanely determine when we are receiving the last entry in the chain just from looking at the blob. This solves it in an a bit more brutal way...
* s3 move the sitename cache in its own fileSimo Sorce2010-02-233-0/+3
|
* s3: Consolidate server_id_self into the equivalent procid_self()Volker Lendecke2010-02-231-1/+1
|
* s3: Explicitly handle inbuf in cli_trans_doneVolker Lendecke2010-02-221-2/+9
|
* s3: Explicitly handle inbuf in cli_write_andx_doneVolker Lendecke2010-02-221-2/+4
|
* s3: Explicitly handle inbuf in cli_read_andx_doneVolker Lendecke2010-02-221-2/+2
|
* s3: Explicitly handle inbuf in cli_message_start_doneVolker Lendecke2010-02-222-6/+7
|
* s3: Explicitly handle inbuf in cli_dskattr_doneVolker Lendecke2010-02-221-2/+4
|
* s3: Explicitly handle inbuf in cli_getatr_doneVolker Lendecke2010-02-221-2/+4
|
* s3: Explicitly handle inbuf in cli_getattrE_doneVolker Lendecke2010-02-221-2/+4
|
* s3: Explicitly handle inbuf in cli_open_doneVolker Lendecke2010-02-221-2/+4
|
* s3: Explicitly handle inbuf in cli_ntcreate_doneVolker Lendecke2010-02-221-2/+3
|
* s3: Explicitly handle inbuf in cli_echo_doneVolker Lendecke2010-02-221-1/+2
|
* s3: Explicitly handle inbuf in cli_negprot_doneVolker Lendecke2010-02-221-2/+3
|
* s3: Explicitly handle inbuf in cli_tcon_andx_doneVolker Lendecke2010-02-221-3/+6
|
* s3: Explicitly handle inbuf in cli_sesssetup_blob_doneVolker Lendecke2010-02-221-5/+4
|
* s3: Explicitly handle inbuf in cli_session_setup_guest_doneVolker Lendecke2010-02-221-5/+4
|
* s3: Explicitly handle inbuf in cli_smb_oplock_break_waiter_doneVolker Lendecke2010-02-221-2/+3
|
* s3: Add a talloc_move for the inbuf to cli_smb_recvVolker Lendecke2010-02-228-36/+50
|
* s3: Avoid calling cli_alloc_mid twice in cli_smb_req_iov_sendVolker Lendecke2010-02-211-1/+2
| | | | I hate macros....
* s3: Convert cli_qpathinfo_basic to use cli_trans()Volker Lendecke2010-02-202-40/+29
|
* s3: Convert cli_raw_ioctl to use cli_smb()Volker Lendecke2010-02-201-18/+10
|
* s3: Add cli_smb()Volker Lendecke2010-02-201-0/+36
| | | | | | | | | This is a sync wrapper around cli_smb_send/cli_smb_recv. This is a hack to speed up converting libsmb/ away from cli_send_smb/cli_receive_smb. Some routines in libsmb/ are only called in one place in smbtorture for example, where making it async right now is not worth it. With cli_smb_send/cli_smb_recv in place, pushing the asynchronosity out one level is "just" boilerplate code that is easy to do should it become necessary.
* s3-lib: use TYPESAFE_QSORT() in remaining s3 library codeAndrew Tridgell2010-02-142-2/+5
| | | | | the sort_query_replies() in nmblib.c is a TODO. It uses a hack that treats a char* as a structure. I've left that one alone for now.
* s3-libsmb: use TYPESAFE_QSORT() in namequery codeAndrew Tridgell2010-02-141-14/+12
| | | | | This one was a bit trickier. I'd appreciate it if someone else can look over this.
* s3-libsmb: update libsmb to use new DLIST macrosAndrew Tridgell2010-02-102-23/+25
| | | | | manipulating p->prev directly is not safe any more (cherry picked from commit 3c650ac1e3e1cdbbabecfddcd29325f20b5dcb48)
* Fix off-by-one error in working out the limit of the NetServerEnum comment.Jeremy Allison2010-02-091-1/+1
| | | | Jeremy.
* s3:libsmb: fix NetServerEnum3 rap calls.Stefan Metzmacher2010-02-081-5/+19
| | | | metze
* s3:nmbd: also listen explicit on the subnet broadcast addressesStefan Metzmacher2010-02-082-4/+11
| | | | | | | | | And send replies always via the unicast address of the subnet. This behavior is off by default (as before) and can be enabled with "nmbd:bind explicit broadcast = yes". metze
* s3: Make cli_get_fs_volume_info() use cli_trans()Volker Lendecke2010-02-071-38/+21
|
* s3: Remove some unused codeVolker Lendecke2010-02-071-57/+0
|
* s3: Fix some nonempty blank linesVolker Lendecke2010-02-071-3/+3
|
* s3:libsmb: don't reuse the callers stype variable in cli_NetServerEnum()Stefan Metzmacher2010-02-041-2/+3
| | | | | | | When we need to do more than one network operation to get the browse list we need to use the same 'stype' value each time. metze
* Change uint_t to unsigned int in source3Matt Kraai2010-02-021-4/+4
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* Fix bug #7079 - cliconnect gets realm wrong with trusted domains.Jeremy Allison2010-01-301-3/+22
| | | | | | | | | | | 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.
* 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: 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.
* s3: fix detection and flags for using pthreadBjörn Jacke2010-01-261-0/+4
| | | | I hope this fixes the build on Tru64, IRIX and maybe bug #6983
* s3: remove unused variableBjörn Jacke2010-01-261-2/+0
|