summaryrefslogtreecommitdiffstats
path: root/source4/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* s4-ipv6: fix iface_list_best_ip() for IPv6Andrew Tridgell2011-06-071-1/+23
| | | | return an interface with the same address family as the target
* s4-modules Remove lp_ctx from init functions that no longer need itAndrew Bartlett2011-06-062-2/+2
| | | | | | | | 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
* lib/util use modules_path(), data_path() and shlib_ext() from source3Andrew Bartlett2011-06-061-4/+1
| | | | | | | | | | This brings these helpful utility functions in common, as they are not based on either loadparm system. (The 'modules dir' parameter from Samba4 will shortly be removed, so there is no loss in functionality) Andrew Bartlett
* s4-ipv6: fill in family when initialising from sockaddrAndrew Tridgell2011-06-061-1/+13
| | | | | Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Mon Jun 6 05:35:36 CEST 2011 on sn-devel-104
* s4-ipv6: fix the address family for IPv6 string addressesAndrew Tridgell2011-06-061-0/+5
|
* s4-ipv6: use the server address familyAndrew Tridgell2011-06-061-1/+1
| | | | don't force v4 in connect_multi
* s4-ipv6: enable IPv6 by defaultAndrew Tridgell2011-06-061-2/+2
| | | | it now passes all tests
* s4-ipv6: update callers to load_interface_list()Andrew Tridgell2011-06-061-2/+2
|
* s4-ipv6: allow ipv6 to be enabled/disabled in smb.confAndrew Tridgell2011-06-061-11/+20
| | | | | | | this adds the parametric option ipv6:enable=true/false It defaults to false for now, until the remaining issues with testing of ipv6 are resolved
* s4-ipv6: fixed ipv6_listen() to use IPV6_V6ONLYAndrew Tridgell2011-06-061-4/+24
| | | | | this changes ipv6_listen() to use IPV6_V6ONLY, and to setup the right scope id for link local IPv6 addresses
* s4-ipv6: added socket_address_from_sockaddr_storage()Andrew Tridgell2011-06-062-0/+48
| | | | this converts a struct sockaddr_storage to a struct socket_address
* s4-ipv6: added ipv4 functions to interface codeAndrew Tridgell2011-06-061-0/+32
| | | | | this adds iface_list_first_v4() and iface_list_n_is_v4(). The NBT server will use these to allow it to listen only for IPv4 addresses.
* s4-ipv6: fixed a warningAndrew Tridgell2011-06-061-1/+1
|
* s4-ipv6: allow IPv6 addresses in our interfaces listAndrew Tridgell2011-06-061-5/+0
|
* s4-ipv6: added iface_list_wildcard()Andrew Tridgell2011-06-062-1/+29
| | | | | | | | | this returns a list of wildcard address to listen on, when we don't have 'bind interfaces only' set. It is a list, not a single address, we need to listen separately for the IPv6 "::" address from the IPv4 0.0.0.0 address. This also takes account of the loadparm "socket address" option
* 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>
* s4:ldb-samba/ldb_wrap.*-dsdb/samdb/samdb.c - handle LDB connection flags as ↵Matthias Dieter Wallnöfer2011-05-212-6/+6
| | | | | | | | unsigned The LDB API ("ldb_connect") prescribes that they should be "unsigned". Signed-off-by: Metze
* ldb:pyldb.c - all flags should be unsignedMatthias Dieter Wallnöfer2011-05-211-10/+10
| | | | | | Adapt it to the previous commits Reviewed-by: Jelmer + Metze
* ldb:ldb_sqlite3.c - all LDB flags should be handled as "unsigned"Matthias Dieter Wallnöfer2011-05-211-2/+3
| | | | Signed-off-by: Metze
* ldb:tools/cmdline.c + tools/ldbtest.c - the connection flags are typed as ↵Matthias Dieter Wallnöfer2011-05-212-2/+2
| | | | | | "unsigned" Signed-off-by: Metze
* ldb:ldbtest.c - make more use of LDB constantsMatthias Dieter Wallnöfer2011-05-211-4/+4
| | | | Signed-off-by: Metze
* build: Expand dcerpc-samba grouping libraryAndrew Bartlett2011-05-181-1/+1
| | | | | | | This is possible in common now because the generated RPC code does not rely on a particular dcerpc layer. Andrew Bartlett
* s4-interfaces: keep interfaces in the order they were declaredAndrew Tridgell2011-05-081-1/+5
| | | | | | | | | the spoolss notify test depends on the interfaces order Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Sun May 8 13:57:58 CEST 2011 on sn-devel-104
* s4-interfaces Rename interfaces code so not to conflict with source3/Andrew Bartlett2011-05-082-23/+23
| | | | | | | | | 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
* lib/socket move interfaces code to the top levelAndrew Bartlett2011-05-083-334/+6
|
* s4-lib/socket Samba4 is not IPv6 compatibleAndrew Bartlett2011-05-081-0/+5
| | | | | | | | | Don't add IPv6 interfaces until we actually support them. I'll soon have IPv6 service at home, and then I'll make it my buisness to sort this out once and for all. Andrew Bartlett
* s4-lib merge get_interfaces() from Samba3 to Samba4Andrew Bartlett2011-05-083-100/+375
|
* s4-auth Rename auth -> auth4 to avoid conflict with s3 authAndrew Bartlett2011-05-081-0/+2
|
* lib/util Move source3 tdb_wrap_open() into the common code.Andrew Bartlett2011-05-064-172/+1
| | | | | | | | | This #if _SAMBA_BUILD == 3 is very unfortunate, as it means that in the top level build, these options are not available for these databases. However, having two different tdb_wrap lists is a worse fate, so this will do for now. Andrew Bartlett
* s4-socket: rename allow_access() to socket_allow_access()Andrew Tridgell2011-05-032-7/+7
| | | | | | this prevents a symbol collision with s3 Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-messaging Rename messaging -> imessagingAndrew Bartlett2011-05-036-165/+165
| | | | | | | This avoid symbol and structure conflicts between Samba3 and Samba4, and chooses a less generic name. Andrew Bartlett
* lib/util Move set_socket_options() into common code.Andrew Bartlett2011-05-031-160/+0
|
* s4-lib/socket Merge updated set_socket_options from Samba3 -> Samba4Andrew Bartlett2011-05-031-34/+90
|
* s4-cluster Rename server_id.node -> vnn to match Samba3Andrew Bartlett2011-05-031-4/+4
|
* s4:cluster Rename .id to .pid in server_idAndrew Bartlett2011-05-032-10/+12
| | | | | | | This also changes some DEBUG messages to use cluster_id_string() rather than .id, to isolate them from this and other changes. Andrew Bartlett
* ldb:tdb backend - cache - remove unused "last_attribute" structure memberMatthias Dieter Wallnöfer2011-04-292-8/+0
| | | | | | | Reviewed-by: abartlet Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Fri Apr 29 20:07:27 CEST 2011 on sn-devel-104
* ldb:tools/cmdline.c + tools/ldbtest.c - make use of LDB result constantsMatthias Dieter Wallnöfer2011-04-292-2/+2
| | | | Reviewed-by: abartlet
* ldb:ldb_controls.c - fix comment indentationMatthias Dieter Wallnöfer2011-04-291-4/+4
| | | | Reviewed-by: abartlet
* s4-param Rename private_path() -> lpcfg_private_path()Andrew Bartlett2011-04-291-1/+1
| | | | | | This is consistent with lock_path() Andrew Bartlett
* Support the 'PYTHON' environment variable.Jelmer Vernooij2011-04-231-0/+6
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sat Apr 23 04:19:05 CEST 2011 on sn-devel-104
* s4:ldb: change version to 1.1.0 after adding new functions:Stefan Metzmacher2011-04-212-1/+254
| | | | | | | | | | | | | ldb_ldif_parse_modrdn() ldb_req_set_custom_flags() ldb_req_get_custom_flags() Signed-off-by: Simo Sorce <idra@samba.org> metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Thu Apr 21 17:15:16 CEST 2011 on sn-devel-104
* ldb: add custom flags and functions for the application that wants to ↵Matthieu Patou2011-04-213-0/+54
| | | | | | | manipulate them Signed-off-by: Simo Sorce <idra@samba.org> Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s4:ldb/tests: add tests for ldbmodify and 'modrdn'Stefan Metzmacher2011-04-212-1/+16
| | | | | | Signed-off-by: Simo Sorce <idra@samba.org> metze
* s4:ldb/tools: add support for "modrdn" to ldbmodifyStefan Metzmacher2011-04-211-1/+23
| | | | | | Signed-off-by: Simo Sorce <idra@samba.org> metze
* s4:ldb/ldif: add support for "modrdn"Stefan Metzmacher2011-04-212-1/+226
| | | | | | | | | This add a ldb_ldif_parse_modrdn() helper function to parse the information out of a ldb_message structure. Signed-off-by: Simo Sorce <idra@samba.org> metze
* ldb:ldb/common/ldb_modules.c - change the request counter type to be "unsigned"Matthias Dieter Wallnöfer2011-04-081-1/+1
| | | | | | | | | | Just for consistency since all other LDB counters are unsigned as well. And also the debug output specifier has been chosen to be "%u" - so it really should be unsigned. Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Fri Apr 8 09:17:47 CEST 2011 on sn-devel-104
* ldb:ldb/common/ldb_modules.c - trivial - fix integer output specifiersMatthias Dieter Wallnöfer2011-04-081-2/+2
|
* ldb:ldb_msg.c - make "ldb_msg_find_attr_as_*" more robust against invalid valuesMatthias Dieter Wallnöfer2011-04-071-19/+106
| | | | | | | | | | | | | - Integer handling was modeled after validate code from "schema_syntax.c". - Double handling was modeled similar, but with a dynamic buffer. I don't know if there is a maximum literal length for double values but an allocation shouldn't a problem here since doubles are rare. - String handlind is enhanced with a terminating "0" test for safety. Reviewed-by: abartlet + metze Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Thu Apr 7 16:38:57 CEST 2011 on sn-devel-104
* ldb:ldb_msg_check_sanity - clean it up from unneeded stuffMatthias Dieter Wallnöfer2011-04-071-4/+0
|
* ldb:ldbadd/modify tool - return error code when at least one operation has ↵Matthias Dieter Wallnöfer2011-04-072-5/+8
| | | | | | | | | failed This is required to better detect failures and should raise the compatiblity to "ldapadd"/"ldapmodify". Reviewed-by: abartlet