summaryrefslogtreecommitdiff
path: root/source3/libsmb
AgeCommit message (Collapse)AuthorFilesLines
2012-09-29s3:libsmb: use smbXcli_conn_remote_name() in smb2_tcon_send()Stefan Metzmacher1-4/+2
metze Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Sat Sep 29 11:52:43 CEST 2012 on sn-devel-104
2012-09-29s3:libsmb: make cli_echo* protocol independentStefan Metzmacher1-32/+23
metze
2012-09-26Fix bug #9213 - Bad ASN.1 NegTokenInit packet can cause invalid free.Jeremy Allison1-0/+4
Not the correct fix for the specific issue, but a general fix to make sure this can never happen again. Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Wed Sep 26 04:07:57 CEST 2012 on sn-devel-104
2012-09-24s3-pylibsmb: Use Py_RETURN_NONEVolker Lendecke1-9/+4
Autobuild-User(master): Volker Lendecke <vl@samba.org> Autobuild-Date(master): Mon Sep 24 08:09:53 CEST 2012 on sn-devel-104
2012-09-23s3-pylibsmb: Add get_oplock_breakVolker Lendecke1-0/+120
Autobuild-User(master): Volker Lendecke <vl@samba.org> Autobuild-Date(master): Sun Sep 23 18:01:28 CEST 2012 on sn-devel-104
2012-09-23s3-pylibsmb: Factor out py_tevent_cond_signalVolker Lendecke1-3/+9
2012-09-23s3-pylibsmb: Reduce the number of warningsVolker Lendecke1-14/+32
2012-09-23s3: Convert cli_oplock_break_waiter to smbXcliVolker Lendecke1-5/+18
2012-09-23s3: Add "readdir" to pylibsmbVolker Lendecke1-0/+72
2012-09-23s3: Fix some nonempty line endingsVolker Lendecke1-4/+4
2012-09-23s3-pylibsmb: move py_tevent_req_wait_exc up in the fileChristian Ambach1-19/+19
this is needed to be able to use it in other functions and spares the prototype Pair-Programmed-With: Volker Lendecke <vl@samba.org>
2012-09-23s3-pylibsmb: Factor out py_tevent_cond_waitVolker Lendecke1-14/+19
2012-09-17s3:libsmb fix a double free errorChristian Ambach1-1/+0
t refers to self->thread_state that is freed a few lines below Autobuild-User(master): Christian Ambach <ambi@samba.org> Autobuild-Date(master): Mon Sep 17 22:04:13 CEST 2012 on sn-devel-104
2012-09-16s3:libsmb fix a potential crashChristian Ambach1-9/+12
Signed-off-by: Volker Lendecke <vl@samba.org> Autobuild-User(master): Christian Ambach <ambi@samba.org> Autobuild-Date(master): Sun Sep 16 22:31:38 CEST 2012 on sn-devel-104
2012-09-12Avoid overriding default ccache for ads operations.Simo Sorce2-3/+3
Avoid overriding default ccache for ads operations. Nowadays various samba components may need to use GSSAPI and a default cred cache to perform their tasks. This code was completely overriding the whole process default ccache name, thus altering the current credentials and sometimes hijacking them (or getting preemptively hijaked). By using gss_krb5_import_cred we can instead use a private ccache (necessary sometimes to use a different set of credentials fromt he default cifs/fqdn@realm one, for example when contacting foreign DCs using trust credentials) that does not affect the rest of the process. For the kerberos versions which don't have gss_krb5_import_cred we fallback to temp override of KRB5CCNAME and gss_acquire_cred. Signed-off-by: Alexander Bokovoy <ab@samba.org> Signed-off-by: Günther Deschner <gd@samba.org> Autobuild-User(master): Alexander Bokovoy <ab@samba.org> Autobuild-Date(master): Wed Sep 12 21:18:09 CEST 2012 on sn-devel-104
2012-09-04s3: Fix memleaks in pylibsmb.cVolker Lendecke1-2/+2
Cut&Paste errors from the read&x routine Signed-off-by: Jeremy Allison <jra@samba.org>
2012-08-30s3:libsmb correctly set isFsctl for snapshot listChristian Ambach1-1/+1
FSCTL_GET_SHADOW_COPY_DATA is a FSCTL, so set the isFsctl marker otherwise smbclient allinfo will not report snapshots any more with the changes made for Bug #8311 Autobuild-User(master): Christian Ambach <ambi@samba.org> Autobuild-Date(master): Thu Aug 30 18:57:24 CEST 2012 on sn-devel-104
2012-08-22Fix bug in SMB_FIND_INFO_STANDARD parsing found by Volker.Jeremy Allison1-1/+3
The function align_string() is now broken as base_ptr no longer points at the start of the SMB data packet, but at the start of the returned TRANS2 data area. Replace it with a check for FLAGS2_UNICODE_STRINGS and a call to ucs2_align().
2012-08-16s3-libsmb: Add a python wrapperVolker Lendecke1-0/+671
Please note that this is not finished and only for internal use. Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-08-09Check error returns from strupper_m() (in all reasonable places).Jeremy Allison5-8/+23
2012-08-09Fix missing ads_destroy in error path.Jeremy Allison1-0/+1
2012-08-04s3:libsmb: add EXTENDED_SIGNATURE support in cli_tcon_andx*()Stefan Metzmacher1-0/+5
metze
2012-08-01s3:libsmb: add a optional_support helper variableStefan Metzmacher1-1/+6
metze
2012-08-01s3:libsmb: add a tcon_flags helper variableStefan Metzmacher1-1/+4
metze
2012-08-01s3:libsmb: remove unused cli_state->user_session_keyStefan Metzmacher2-21/+0
metze
2012-08-01s3:libsmb: make use of smb1cli_session_set_session_key()Stefan Metzmacher1-0/+24
metze
2012-07-31s3: Fix Coverity ID 710791 Resource leakVolker Lendecke1-0/+1
Signed-off-by: Stefan Metzmacher <metze@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Tue Jul 31 13:34:53 CEST 2012 on sn-devel-104
2012-07-29s3-libsmbclient: Add missing talloc_stackframe() callsAndrew Bartlett1-0/+16
These caused a panic with the new assertion on the talloc stackframe being in place. Andrew Bartlett Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Sun Jul 29 05:21:24 CEST 2012 on sn-devel-104
2012-07-27lib/param: Rename "socket address" to "nbt client socket address" to clarify ↵Andrew Bartlett1-2/+2
role This parameter is only used in our NBT client code and in nmbd as a fallback when we fail to select a better interface from "interfaces" to use directly. Andrew Bartlett Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Fri Jul 27 12:16:25 CEST 2012 on sn-devel-104
2012-07-25libcli/smb: pass smbXcli_session to smb2cli_tcon_set_values()Stefan Metzmacher1-0/+1
metze
2012-07-25libcli/smb: there's no PID field in the SMB2/3 header anymoreStefan Metzmacher1-2/+0
It's a reserved field... metze
2012-07-25libcli/smb: pass smbXcli_tcon to smb2cli_req_create/send()Stefan Metzmacher1-7/+2
metze
2012-07-25s3:libsmb: remove unused tcon specific elements from cli_state->smb2Stefan Metzmacher1-11/+13
metze
2012-07-25s3:libsmb: remove cli_state->smb2.tidStefan Metzmacher1-4/+9
metze
2012-07-24libcli/smb: pass smbXcli_tcon to smb2cli_ioctl*()Stefan Metzmacher1-1/+1
metze
2012-07-24libcli/smb: pass smbXcli_tcon to smb2cli_write*()Stefan Metzmacher1-1/+1
metze
2012-07-24libcli/smb: pass smbXcli_tcon to smb2cli_read*()Stefan Metzmacher1-1/+1
metze
2012-07-24libcli/smb: pass smbXcli_tcon to smb2cli_close*()Stefan Metzmacher1-4/+5
metze
2012-07-24libcli/smb: pass smbXcli_tcon to smb2cli_create*()Stefan Metzmacher1-1/+1
metze
2012-07-24s3:libsmb: setup a smbXcli_tcon for SMB2Stefan Metzmacher1-0/+14
metze
2012-07-24libcli/smb: pass down smbXcli_tcon to smb1cli_req_create/send() and ↵Stefan Metzmacher2-12/+6
smb1cli_trans* metze Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Tue Jul 24 21:22:44 CEST 2012 on sn-devel-104
2012-07-24s3:libsmb: use a smbXcli_tcon instead of uint16_t cli_state->smb1.tidStefan Metzmacher1-4/+8
metze
2012-07-24s3:libsmb: make use of cli_state_[g|s]et_tid()Stefan Metzmacher4-8/+19
metze
2012-07-24lib/param: Move all enum declarations to lib/paramAndrew Bartlett1-0/+1
This is in preperation for the parameter table being made common. Andrew Bartlett Pair-Programmed-With: Andrew Tridgell <tridge@samba.org>
2012-07-24param: Make the 'unicode' parameter commonAndrew Bartlett1-0/+3
This parameter is most useful for interop testing, rather than production use. Andrew Bartlett
2012-07-24libcli/smb: pass down smbXcli_session to smb1cli_req_create/send() and ↵Stefan Metzmacher2-12/+6
smb1cli_trans* metze Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Tue Jul 24 00:08:58 CEST 2012 on sn-devel-104
2012-07-23s3:libsmb: use cli_state_{g,s}et_uid instead of smb1.uid directlyLuk Claes3-8/+19
Signed-off-by: Luk Claes <luk@debian.org> Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-07-19Move everything to use the common pidfile functions.Jeremy Allison1-1/+2
The extra code in source3/lib/pidfile.c is no longer needed.
2012-07-19Move source4/smbd/pidfile into lib/util in preparation for making it in common.Jeremy Allison1-1/+1
2012-07-19s3-param: Make lp_name_resolve_order() return a listAndrew Bartlett2-22/+25
This allows this parameter, one of the few with differing declarations between the loadparm systems, to be brought into common. Andrew Bartlett Pair-Programmed-With: Andrew Tridgell <tridge@samba.org>