summaryrefslogtreecommitdiffstats
path: root/source4/libcli
Commit message (Collapse)AuthorAgeFilesLines
* build: provide tevent-util as a public libraryAndrew Bartlett2011-08-082-4/+4
| | | | | | | This is needed so that OpenChange can get at _tevent_req_nterr(), which is referenced by generated PIDL output. Andrew Bartlett
* gensec: clarify memory ownership for gensec_session_info() and ↵Andrew Bartlett2011-08-032-9/+3
| | | | | | | | | | | | | | | gensec_session_key() This is slightly less efficient, because we no longer keep a cache on the gensec structures, but much clearer in terms of memory ownership. Both gensec_session_info() and gensec_session_key() now take a mem_ctx and put the result only on that context. Some duplication of memory in the callers (who were rightly uncertain about who was the rightful owner of the returned memory) has been removed to compensate for the internal copy. Andrew Bartlett
* gensec: split GENSEC into mechanism-dependent and runtime functionsAndrew Bartlett2011-08-031-0/+1
| | | | | | | | | The startup and runtime functions that have no dependencies are moved into the top level. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s4-libcli: Fix the fd leak. Close open file descriptor before return.Amitay Isaacs2011-08-031-2/+4
| | | | | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Wed Aug 3 07:49:12 CEST 2011 on sn-devel-104
* s4-libcli: get_acl and set_acl require raw_open to set security descriptorAmitay Isaacs2011-08-031-15/+75
| | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4-libcli: Check if short_name is not null, before converting to python stringAmitay Isaacs2011-08-031-1/+8
| | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4-libcli: Replace smb_composite_connect() with smb_full_connection()Amitay Isaacs2011-08-031-24/+20
| | | | | | Python smb connection now uses smb_full_connection method. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4-libcli: Added python SMB methods for mkdir(), rmdir(), chkpath()Amitay Isaacs2011-08-031-11/+97
| | | | | | Updated docstrings for all methods. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4-libcli: Initialize stack structure variables to zero.Amitay Isaacs2011-07-281-14/+45
| | | | | | | Update do_smb_connect function to return NTSTATUS rather than raise python exception on error. Error checking done in py_smb_new(). Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s4-libcli: Added python interface for file I/O using SMBAmitay Isaacs2011-07-282-0/+393
| | | | | | | | | This module will support file system access using SMB. based on smb_composite - loadfile(), savefile() based on raw - getacl(), setacl() Signed-off-by: Andrew Tridgell <tridge@samba.org>
* cli_composite: Lowercase name.Jelmer Vernooij2011-07-262-3/+3
|
* cli_smb_common: Lowercase name.Jelmer Vernooij2011-07-261-2/+2
|
* cli_cldap: Lowercase name.Jelmer Vernooij2011-07-261-1/+1
|
* cli_raw: Make name lowercase.Jelmer Vernooij2011-07-233-4/+4
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sat Jul 23 23:20:51 CEST 2011 on sn-devel-104
* charset: Make name lowercase everywhere.Jelmer Vernooij2011-07-231-1/+1
|
* s4:libcli/raw: s/SMBchkpth/SMBcheckpathStefan Metzmacher2011-07-122-2/+2
| | | | metze
* s4:libcli/raw: remove SMBkeepaliveStefan Metzmacher2011-07-121-1/+0
| | | | metze
* libcli/smb move FILE_TYPE constants in commonAndrew Bartlett2011-07-061-8/+0
| | | | | | This allows us to remove another _SAMBA_BUILD_ conditional Andrew Bartlett
* libcli/smb move enum protocol_types to a common headerAndrew Bartlett2011-07-061-0/+1
|
* Use tevent_req_oomVolker Lendecke2011-06-201-2/+2
| | | | This fixes a few Coverity errors
* libcli/util Rename common map_nt_error_from_unix to avoid duplicate symbolAndrew Bartlett2011-06-205-10/+10
| | | | | | | | | | | | The two error tables need to be combined, but for now seperate the names. (As the common parts of the tree now use the _common function, errmap_unix.c must be included in the s3 autoconf build). Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Mon Jun 20 08:12:03 CEST 2011 on sn-devel-104
* libcli/util Bring samba4 unix -> nt_status code in common.Andrew Bartlett2011-06-202-166/+0
| | | | | | | | Due to library link orders, this is already the function that is being used. However we still need to sort out the duplicate symbol issues, probably by renaming things. Andrew Bartlett
* s3-libcli Remove unused error mapping tablesAndrew Bartlett2011-06-201-549/+0
| | | | | | The functions which uesed these tables have since moved in common. Andrew Bartlett
* s4-errors: Import error maps from the source3/ unix -> ntstatus mappingAndrew Bartlett2011-06-171-0/+11
| | | | | | | | | | | We need to syncronise these mappings, as the duplication of this symobol in the build means that either may be called based only on library link orders. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Fri Jun 17 10:22:07 CEST 2011 on sn-devel-104
* errors: reorder error codes for easier s3/s4 comparisonAndrew Bartlett2011-06-171-3/+3
|
* s4-util: removed the s4 nterr.cAndrew Tridgell2011-06-172-55/+1
| | | | | | this is now in common code Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* libclu/util: Move get_friendly_nt_error_msg() in common.Andrew Bartlett2011-06-171-20/+0
| | | | | | Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s4:libcli/smb_composite: convert smb2_composite_setpathinfo_send/rev to ↵Stefan Metzmacher2011-06-152-59/+129
| | | | | | tevent_req metze
* s4:libcli/raw/raw*.c - add unhandled enum valuesMatthias Dieter Wallnöfer2011-06-112-2/+3
| | | | | | | Reviewed-by: Jelmer Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Sat Jun 11 18:46:13 CEST 2011 on sn-devel-104
* s4-ipv6: fixed a crash in the IPv6 DNS codeAndrew Tridgell2011-06-071-1/+1
|
* s4-ipv6: fixed DNS handling with new IPv6 codeAndrew Tridgell2011-06-071-1/+16
|
* s4-modules Remove lp_ctx from init functions that no longer need itAndrew Bartlett2011-06-061-1/+1
| | | | | | | | Now that we don't allow the smb.conf to change the modules dir, many functions that simply load modules or initialise a subsytem that may load modules no longer need an lp_ctx. Andrew Bartlett
* s4-ipv6: allow for IPv6 in resolver top level callsAndrew Tridgell2011-06-061-4/+2
|
* s4-ipv6: cope with IPv6 in our async DNS client codeAndrew Tridgell2011-06-061-28/+28
|
* s4-ipv6: update callers to load_interface_list()Andrew Tridgell2011-06-063-3/+3
|
* lib/util/time.c: timeval_current_ofs_usecRusty Russell2011-06-011-1/+1
| | | | | | | | | | | | | | | Several places want "microseconds from current time", and several were simply handing "usecs" values which could be over a million. Using a helper to do this is safer and more readable. I didn't replace any obviously correct callers (ie. constants). I also renamed wait_nsec in source3/lib/util_sock.c; it's actually microseconds not nanoseconds (introduced with this code in Volker's 19b783cc Async wrapper for open_socket_out_send/recv). Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* libcli/util Remove ntstatus_check_dos_mappingAndrew Bartlett2011-05-311-35/+0
| | | | | | | This has been set to true since the global loadparm was removed in 2008, and removes an #ifdef SAMBA_BUILD == 4 Andrew Bartlett
* s4-libcli Merge error map order with source3 errmap_unix.cAndrew Bartlett2011-05-311-26/+28
| | | | | | This makes it easier to see what the actual differences here are. Andrew Bartlett
* waf-build: Add more libraries to avoid duplicate symbolsAndrew Bartlett2011-05-181-2/+3
| | | | | | The new source of duplicates is calling libnetapi from inside smbtorture. Andrew Bartlett
* s4-libcli/rap: add smbcli_rap_netremotetod().Günther Deschner2011-05-161-0/+47
| | | | Guenther
* do an explicit A record search for SRV entriesLuke Howard2011-05-131-4/+22
| | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4-interfaces Rename interfaces code so not to conflict with source3/Andrew Bartlett2011-05-083-6/+6
| | | | | | | | | The iface_count, iface_n_bcast, and load_interfaces functions conflicted with functions of the same name in source3, so the source4 functions were renamed. Hopefully we can actually wrap one around the other in future. Andrew Bartlett
* libcli/smb Move cifs posix helper functions and headers in commonAndrew Bartlett2011-05-063-187/+2
| | | | | | unix_perms_to_wire() was a duplicate symbol in the top level build. Andrew Bartlett
* errors: Remove unused unix_to_werror()Andrew Bartlett2011-05-061-5/+0
|
* libcli/util Move NTSTATUS table to the top levelAndrew Bartlett2011-05-061-889/+2
|
* nterr: Add mem_ctx for return string from get_nt_error_c_code()Andrew Bartlett2011-05-061-6/+7
| | | | | | It is clearer to avoid the implicit return on talloc_tos() Andrew Bartlett
* libcli/util Merge ntstatus_to_dos() ntstatus_to_werror() to the top levelAndrew Bartlett2011-05-061-668/+0
| | | | | | | This takes the Samba4 version, with the NT_STATUS_IS_DOS() check. This will be used in smbd/error.c shortly. Andrew Bartlett
* errors: Merge source3/ werror_to_ntstatus() code to source4/Andrew Bartlett2011-05-061-6/+16
|
* errors: Merge ntstatus -> DOS error table between Samba3 and Samba4.Andrew Bartlett2011-05-061-7/+11
| | | | | | They are now identical Andrew Bartlett
* s3-lib Remove unused dos error codes from errmap_unixAndrew Bartlett2011-05-061-5/+3
| | | | | | | This also makes unix_nt_errmap private to errmap_unix.c and errormap.c so the tables themselves cannot be duplicate symbols until merged. Andrew Bartlett