summaryrefslogtreecommitdiffstats
path: root/source4/libcli
Commit message (Collapse)AuthorAgeFilesLines
* s4-pysmb: Add deltree() method to remove directory and its contentsAmitay Isaacs2012-07-031-0/+25
| | | | Thanks to Denis Bonnenfant <denis.bonnenfant@diderot.org> for patch.
* s4-ldap: handle VERIFY_NAME control encoding/decodingMatthieu Patou2012-06-221-0/+96
|
* s4-pysmb: Parse security info as an unsigned integerAmitay Isaacs2012-06-211-1/+1
|
* Revert "s4-libcli: Remove unused finddcs_nbt"Andrew Bartlett2012-06-201-0/+311
| | | | | | | | | | | | | | | | This reverts commit 06c90cb6f55701effa4cbafaf189a4de8471949b. There is genuine interest in using this currently unused code, so put it back into the tree to avoid folks having to rewrite it. It should be carefully hooked back into libnet at some point, and possibly told how to talk to the s3 nmbd socket if nbt_server isn't running. The wscript patches are skipped, due to the way the extra dep interacted with the build system. When used, this will be resolved. Andrew Bartlett
* s4-libcli: Remove unused finddcs_nbtAndrew Bartlett2012-06-072-314/+3
| | | | | | | | | | | | | This would only do the NBT getdc lookup for a single DC (but would find multiple DCs at first stage), but more particular it of course uses Netbios rather than DNS names. In any case it was also unused, as we use CLDAP for reliable DC location these days. Found by callcatcher Andrew Bartlett
* dns: fix comments and make s4/libcli/resolve dns resolver workingAlexander Bokovoy2012-05-231-1/+1
| | | | | | | | After migrating to use libaddns, reply_to_addrs() needed to change the way answers are iterated through. Originally libroken implementation gave all answers as separate records with last one being explicitly NULL. libaddns unmarshalling code gives all non-NULL answers and should be iterated with explicit reply->num_answers in use.
* s4-resolve: Remove dependency on librokenSimo Sorce2012-05-232-198/+153
| | | | Use available native samba resolver functions
* s4:libcli:raw: fix a comment typo in smb_setfileinfo()Michael Adam2012-05-081-1/+1
| | | | | Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Tue May 8 20:45:16 CEST 2012 on sn-devel-104
* s4:libcli/smb2: use PROTOCOL_LATESTStefan Metzmacher2012-05-061-1/+1
| | | | metze
* libcli/smb: move SMB2_IOCTL_FLAG_IS_FSCTL to smb2_constants.hStefan Metzmacher2012-04-271-3/+0
| | | | metze
* s4-torture: enable raw.composite test again, and convert to new style testAndrew Bartlett2012-04-252-6/+13
| | | | | | This test has been skipped for some time, but is an important test for parallel operation. Andrew Bartlett
* Add smb_raw_setfsinfo() - currently only available level is ↵Jeremy Allison2012-04-183-0/+94
| | | | SMB_SET_CIFS_UNIX_INFO.
* s4:samdb:rootdse: implement the schemaUpgradeInProgress operation in ldap modifyMichael Adam2012-04-181-0/+1
| | | | | | | | | | | This is preliminary in that it is implemented as a no-op for a start just to be able to successfully answer the request, which seems to be sufficient in order to e.g. survive the exchange schema extensions. Signed-off-by: Matthieu Patou <mat@matws.net> Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Wed Apr 18 02:48:28 CEST 2012 on sn-devel-104
* s4:libcli/smb2: fix anonymous session setups against windows serversStefan Metzmacher2012-04-162-1/+16
| | | | | | | | | | | | | Windows server doesn't set the SMB2_SESSION_FLAG_IS_GUEST nor SMB2_SESSION_FLAG_IS_NULL flag. This fix makes sure we don't try to verify a signature on the final session setup response. metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Mon Apr 16 14:44:46 CEST 2012 on sn-devel-104
* s4:libcli/smb2: remove unused dependency to LIBPACKETStefan Metzmacher2012-04-162-2/+1
| | | | metze
* Fix some of the issues that Jelmer identified in my first patch. This might beRichard Sharpe2012-04-021-16/+12
| | | | | | | | changed again, especially when I figure out how to return the file as an object. Autobuild-User: Richard Sharpe <sharpe@samba.org> Autobuild-Date: Mon Apr 2 01:43:44 CEST 2012 on sn-devel-104
* Add an open and close method to samba.smb.SMB so we can open and close files.Richard Sharpe2012-04-011-10/+86
| | | | | | | Also, fix up some documentation. Autobuild-User: Richard Sharpe <sharpe@samba.org> Autobuild-Date: Sun Apr 1 16:29:52 CEST 2012 on sn-devel-104
* Fix the PyDoc comments in samba.smb.SMB and add a security_info argument to ↵Richard Sharpe2012-03-261-8/+23
| | | | | | | both get_acl and set_acl to allow the caller to specify what info is wanted. Defaults to 0 which means all info. Autobuild-User: Richard Sharpe <sharpe@samba.org> Autobuild-Date: Mon Mar 26 04:05:25 CEST 2012 on sn-devel-104
* LIBCLI_SMB2: Depend on cli_smb_common rather than libsmb.Jelmer Vernooij2012-03-251-1/+1
| | | | | The latter pulls in a fair number of other libraries, including popt and the Samba registry library.
* libsmbclient-raw: Install smb_composite.h.Jelmer Vernooij2012-03-152-2/+4
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Thu Mar 15 02:57:59 CET 2012 on sn-devel-104
* s4:libcli/smb2: allow smb2_session_setup_spnego to handle reauthGregor Beck2012-03-071-0/+12
| | | | | | Pair-Programmed-With: Stefan Metzmacher <metze@samba.org> Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s4-libcli: pysmb: Fix typo in secinfo_flagsAmitay Isaacs2012-03-071-1/+1
| | | | | Autobuild-User: Amitay Isaacs <amitay@samba.org> Autobuild-Date: Wed Mar 7 10:56:09 CET 2012 on sn-devel-104
* s4:libcli:smb2: set SMB2_CAP_ALL in the negprotMichael Adam2012-03-031-1/+5
|
* s4:libcli:smb2: store the share capabilites in the smb2_tree objectMichael Adam2012-03-032-0/+2
|
* smbXcli: add the possiblilty to negotiate client capabilites in smb >= 2.2Michael Adam2012-03-032-2/+4
| | | | Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
* s4:libcli:smb2: allow max protocol 0x0224Michael Adam2012-03-031-1/+1
|
* s4:libcli:smb2: add support for parsing the durable handle v2 response in ↵Michael Adam2012-03-031-0/+19
| | | | smb2_create_recv()
* s4:libcli:smb2: add support durable handle reconnect v2 blob in smb2_create_sendMichael Adam2012-03-031-0/+27
|
* s4:libcli:smb2: add support durable handle request v2 blob in smb2_create_sendMichael Adam2012-03-031-0/+28
|
* s4:libcli:smb2: add durable handle v2 data to the smb2_create i/o structureMichael Adam2012-03-031-0/+13
|
* s4:libcli:smb2: add a smb2_connect_ext variant of smb2_connect that takes a ↵Michael Adam2012-02-281-12/+36
| | | | previous_session argument
* s4:libcli:smb2: add a previous session argument to smb2_connect_send()Michael Adam2012-02-281-1/+5
|
* s4:libcli:smb2: add a previous session argument to smb2_session_setup_spnego()Michael Adam2012-02-282-9/+16
| | | | So that we can do a session reconnect.
* s3:libsmb:smb2: pass previous session ID to session setup, not previous sessionMichael Adam2012-02-281-2/+2
| | | | | We only need the session, and under some circumstances, it might complicate things for the caller to have to cope with the whole structure (talloc...).
* s4:libcli/smb2: remove unused 'session_key' from struct smb2_sessionStefan Metzmacher2012-02-272-4/+5
| | | | metze
* libcli/smb/smbXcli: maintain smb2 channel_signing_key separate from the ↵Stefan Metzmacher2012-02-271-3/+3
| | | | | | | | | | | | | | | signing_key The signing_key is fix across all channels and is used for session setups on a channel binding. Note: - the last session setup response is signed with the new channel signing key. - the reauth session setups are signed with the channel signing key. It's also not needed to remember the main session key. metze
* s4:smbcli:smb2: add a random GUID to the transport connection in ↵Michael Adam2012-02-231-1/+5
| | | | | | | | | | | | | | | | | | | | smb2_transport_init() This GUID is used in the smb2 negprot when max protocol is bigger than 0x0202. According to section 2.2.3 of the MS-SMB2 document, the Client GUID filed in the SMB2 negotiate request must be filled with a (non-zero) GUID if there are other dialects than 0x0202 in the dialects field. http://msdn.microsoft.com/en-us/library/cc246543%28v=prot.13%29.aspx Apart from corresponding to the docs, this change makes some of our durable-open tests (e.g reopen2 and open-oplock) _not_ hang when running against windows 8 preview (which might be still buggy). Pair-Programmed-With: Gregor Beck <gbeck@sernet.de> Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Thu Feb 23 03:23:57 CET 2012 on sn-devel-104
* s4:libcli:smb2: don't allocate the smb2_tree struct earlier than necessary ↵Michael Adam2012-02-031-5/+5
| | | | | | in smb2_connect() Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
* s4:libcli/torture:smb2: change smb2_tree_connect to take a smb2_session ↵Michael Adam2012-02-032-6/+6
| | | | | | | | instead of smb2_tree arguement. Only the tree->session is needed. This way it is less confusing. Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
* s4:libcli/finddcs_nbt.c - free "req" consistently with "finddcs_cldap.c"Matthias Dieter Wallnöfer2011-12-231-2/+4
| | | | | | It is more obvious to free where the context for the first time appears. Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s4:libcli/rap: the caller should get talloc children from ↵Stefan Metzmacher2011-12-162-1/+6
| | | | | | | | | | | | call->ndr_pull_{param,data} This should fix the flakey 'rap.printing.rap_printq_getinfo' test, see https://git.samba.org/autobuild.flakey/2011-12-16-0022/samba4.stdout metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Fri Dec 16 13:11:42 CET 2011 on sn-devel-104
* s4:libcli/rap: call->ndr_push_{param,data} can be talloc childs of 'call'Stefan Metzmacher2011-12-161-2/+2
| | | | metze
* s4:libcli/rap: use talloc_zero() and initialize everythingStefan Metzmacher2011-12-161-8/+3
| | | | metze
* s4:libcli/rap: remove unused members from struct rap_callStefan Metzmacher2011-12-161-3/+0
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Fri Dec 16 10:53:42 CET 2011 on sn-devel-104
* s4:libcli/rap: initialize call->rcv_datalenStefan Metzmacher2011-12-161-0/+1
| | | | metze
* s4-resolv: fix dns_ex so as to fail correctly when a name does not existAndrew Bartlett2011-12-141-0/+9
| | | | | | | | | | | | | Without this, netbios name lookups do not work, as we never fall back to them. This caused segfaults from e38d97e0424f7e5b21c8b7ac0b1f1bac33f19d69 to 251209bd6f6e66ca9bcf28cd652d85d1cd729fdc and then name lookup failure or timeouts until this patch. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Wed Dec 14 01:16:37 CET 2011 on sn-devel-104
* s4:libcli/smb2: mark a request as error if we can't ship itStefan Metzmacher2011-12-091-0/+2
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Fri Dec 9 15:13:11 CET 2011 on sn-devel-104
* s4:libcli/raw: mark a request as error if we can't ship itStefan Metzmacher2011-12-091-0/+2
| | | | metze
* s4-resolver: do not use all the A and AAAA records, those after a NS are not ↵Matthieu Patou2011-12-051-0/+16
| | | | the one we want to use
* s4:libcli/raw: implement on top of smbXcli_conn/reqStefan Metzmacher2011-11-3015-1787/+968
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Wed Nov 30 15:13:36 CET 2011 on sn-devel-104