summaryrefslogtreecommitdiffstats
path: root/source4/libcli
Commit message (Collapse)AuthorAgeFilesLines
* s4:libcli/ldap: convert to tevent_* apiStefan Metzmacher2009-01-032-14/+14
| | | | metze
* s4:socket: use a socket_wrapper aware function to auto close the fd event ↵Stefan Metzmacher2009-01-031-3/+4
| | | | | | for sockets metze
* s4: simplify some overly-complicated logicTim Prouty2008-12-301-1/+1
|
* s4:lib/tevent: rename structsStefan Metzmacher2008-12-2933-82/+82
| | | | | | | | | | | | | | | | | | | | list="" list="$list event_context:tevent_context" list="$list fd_event:tevent_fd" list="$list timed_event:tevent_timer" for s in $list; do o=`echo $s | cut -d ':' -f1` n=`echo $s | cut -d ':' -f2` r=`git grep "struct $o" |cut -d ':' -f1 |sort -u` files=`echo "$r" | grep -v source3 | grep -v nsswitch | grep -v packaging4` for f in $files; do cat $f | sed -e "s/struct $o/struct $n/g" > $f.tmp mv $f.tmp $f done done metze
* Rename samba-socket -> samba_socket to fix a couple more compilerJelmer Vernooij2008-12-242-5/+5
| | | | warnings.
* Fix more compiler warnings in various places.Jelmer Vernooij2008-12-231-1/+0
|
* s4: Fix a getaddrinfo/EAI_NODATA portability issueTim Prouty2008-12-221-0/+4
| | | | | | FreeBSD has explicitly deprecated EAI_NODATA as a return value from getaddrinfo by removing it from netdb.h. On systems that don't have EAI_NODATA, EAI_NONAME should be used instead.
* Fix comparison in tests now that we use __cmp__ rather than __eq__.Jelmer Vernooij2008-12-211-2/+2
|
* Fix more tests, improve repr() functions for various Python types.Jelmer Vernooij2008-12-212-8/+8
|
* Simplify customization of pidl-generated Python modules.Jelmer Vernooij2008-12-211-16/+24
|
* Merge the rest of security.i into samba.dcerpc.security.Jelmer Vernooij2008-12-214-3701/+0
|
* Remove duplicate Python bindings for dom_sid, security_descriptor andJelmer Vernooij2008-12-213-1022/+40
| | | | security_token.
* Remove libcli_smb SWIG bindings - only one (useless on its own) function was ↵Jelmer Vernooij2008-12-214-3365/+0
| | | | wrapped anyway.
* Include errors.i verbatim in security.i, as it's the only file still using it.Jelmer Vernooij2008-12-212-55/+33
|
* Fix compiler warning when parsing a SID in a data blobAndrew Bartlett2008-12-201-1/+1
|
* Fix failures setting a random passwordAndrew Bartlett2008-12-191-1/+1
| | | | | | | | The test in extract_pw_from_buffer was incorrect: It tested if the first byte of the new password was 0 (a 1/256 chance for the random passwords), not if the password was allocated. Andrew Bartlett
* Add convenience macro for raising exceptions for NTSTATUS / WERROR.Jelmer Vernooij2008-12-181-0/+12
|
* s4:lib/socket: socket_connect_send() and socket_connect_ev() should only ↵Stefan Metzmacher2008-12-182-3/+2
| | | | | | wrok with addresses metze
* s4:libcli/wrepl: we don't need to resolve namesStefan Metzmacher2008-12-182-7/+4
| | | | metze
* s4:libcli/replace: add some RESOLVE_NAME_FLAG* flagsStefan Metzmacher2008-12-184-18/+43
| | | | metze
* s4:libcli/resolve: specify the port for the resulting socket_addressesStefan Metzmacher2008-12-178-9/+25
| | | | metze
* s4:libcli/resolve: optionally return the name that belongs to the returned ↵Stefan Metzmacher2008-12-178-23/+82
| | | | | | | | address E.g. this helps for DNS CNAME and SRV results. metze
* s4:libcli/resolve: pass down flags to the resolver backendsStefan Metzmacher2008-12-178-8/+29
| | | | metze
* s4:libcli/resolve: remove all backend specific sync functionsStefan Metzmacher2008-12-175-85/+0
| | | | metze
* s4:libcli/resolve: let the "host" module use the dns_ex.c codeStefan Metzmacher2008-12-171-183/+11
| | | | | | That means we now return all ip addresses instead of just the first one. metze
* s4:libcli/resolve: add getaddrinfo()/dns_looup() resolvingStefan Metzmacher2008-12-172-0/+485
| | | | | | | | | | | | | | | | | | | This "dns_ex" module provides flexible lookup methods for dns lookups. The getaddrinfo() part looks at /etc/hosts and dns. As it handles CNAME replies badly we fallback to use dns_lookup(name, "A"). The dns_lookup() makes DNS SRV lookups possible. This module is not a real resolve module, it's just a generic helper as the nbtlist.c code is. The next step will be that the "host" module will use the dns_ex.c code. metze
* s4:libcli/resolve: don't use __RESOLVE_H__ it might be used by system ↵Stefan Metzmacher2008-12-171-3/+3
| | | | | | headers too metze
* s4: fix LIBEVENTS dependencies and use more forward declarationsStefan Metzmacher2008-12-174-2/+3
| | | | | | | We should only include events.h where we really need it and prefer forward declarations of 'struct event_context' metze
* s4:dsdb: add support for DSDB_OPENLDAP_DEREFERENCE_CONTROLAndrew Bartlett2008-12-171-0/+115
| | | | | | | | | | | Encode and decode the OpenLDAP dereference control (draft-masarati-ldap-deref-00) At this time, the ldb_controls infrustructure does not handle request and reply controls having different formats, so this is purely the client implementation (ie, there is no decode of the client->server packet, and no encode of the server->client packet). Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s4:libcli/ldap: split out a ldap_decode_attribs_bare() functionAndrew Bartlett2008-12-171-8/+18
| | | | | | | | | | | The OpenLDAP dereference control (draft-masarati-ldap-deref-00) uses an attribute list, as found in the search reply, but without one enclosing ASN1_SEQUENCE(0) This allows the dereference control parsing code to use this as a helper function. Signed-off-by: Stefan Metzmacher <metze@samba.org>
* Manually marshall dom_sid, so we can use a fixed size array forJelmer Vernooij2008-12-123-37/+1
| | | | | | | | | dom_sid.sub_auths rather than a dynamically allocated one. This makes it possible to use the same DCE/RPC object code for Samba 3 and Samba 4's DCE/RPC parsers and allows copying sids more easily (since they no longer contain any pointers). The cost of having additional manual marshalling code is limited (~35 additional lines of C code).
* s4:libcli/resolve: add resolve_name_all*() which return all addresses not ↵Stefan Metzmacher2008-12-117-49/+115
| | | | | | only the first one metze
* s4-smbtorture: add test for setting passwords via samr_UserInfo18.Günther Deschner2008-12-051-1/+1
| | | | Guenther
* s4:libcli/clideltree: work against servers without NTSTATUS supportStefan Metzmacher2008-12-011-1/+2
| | | | metze
* Improve debug when SASL search failsAndrew Bartlett2008-11-171-1/+1
|
* s4:librpc/ndr: integrate NDR_MISC into LIBNDRStefan Metzmacher2008-11-161-1/+1
| | | | metze
* s4:libcli/resolve: don't ignore SIGCHLD anymoreStefan Metzmacher2008-11-161-7/+15
| | | | | | | | | | | | This broke ldbedit against a LDAP server, as the editor is called by "system()" which relies on getting something useful out of waitpid(). TODO: we should create a generic infrastructure to handle temporary forks and integrate the signal handling with signal events there. metze
* nterrors: add NT_STATUS_DS_BUSY.Günther Deschner2008-11-101-0/+1
| | | | Guenther
* Fix the build.Jelmer Vernooij2008-11-022-4/+7
|
* Remove unused include of param/param.h.Jelmer Vernooij2008-11-021-1/+0
|
* Remove use of global_loadparm when comparing nt status error - useJelmer Vernooij2008-11-021-1/+3
| | | | global variable instead.
* Remove use of global_loadparm during initialization of gensec.Jelmer Vernooij2008-11-021-2/+2
|
* Remove use of global_loadparm for SMB2 client connections.Jelmer Vernooij2008-11-021-5/+9
|
* Remove another use of global_loadparm.Jelmer Vernooij2008-11-027-4/+14
| | | | | | Eventually, we should move some of these parameters into a separate struct (perhaps into smb_transport_options?), to avoid the long lists of parameters.
* Fix the build.Jelmer Vernooij2008-11-021-2/+0
|
* Add gensec_settings structure. This wraps loadparm_context for now, butJelmer Vernooij2008-11-029-7/+16
| | | | should in the future only contain some settings required for gensec.
* Remove another use of global_loadparm.Jelmer Vernooij2008-11-025-1/+8
|
* Use global iconv convenience rather than global loadparm.Jelmer Vernooij2008-11-021-1/+1
|
* Remove another use of global_loadparm.Jelmer Vernooij2008-11-011-4/+7
|
* Remove another use of global_loadparm.Jelmer Vernooij2008-11-011-7/+7
|