summaryrefslogtreecommitdiffstats
path: root/source4/lib
Commit message (Collapse)AuthorAgeFilesLines
* s4:pyregistry: PyArg_ParseTuple("z#") requires an 'int' argument instead of ↵Stefan Metzmacher2011-08-081-1/+4
| | | | | | | | 'size_t' If we pass variables by reference we don't get implicit type casting. metze
* build: provide tevent-util as a public libraryAndrew Bartlett2011-08-081-1/+1
| | | | | | | This is needed so that OpenChange can get at _tevent_req_nterr(), which is referenced by generated PIDL output. Andrew Bartlett
* s4-policy: Use the correct local directory for stat.Amitay Isaacs2011-08-031-1/+1
| | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4-policy: Add python wrapper for ads_to_dir_access_mask() functionAmitay Isaacs2011-08-031-2/+17
| | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4-policy: Expose gp_ads_to_dir_access_mask() functionAmitay Isaacs2011-08-032-1/+2
| | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4-debug: Start with DEBUG_DEFAULT_STDOUT, so we can log to a file in deamonsAndrew Bartlett2011-07-291-1/+1
| | | | | | | In commit 3c9d01e3e58e2217915317406541ac8c6f6dcf92 I changed the priority order and added DEBUG_DEFAULT_STDOUT, but did not check all the callers. Andrew Bartlett
* policy: Rename to samba-policy to avoid name space clashes.Jelmer Vernooij2011-07-262-5/+5
|
* cli_composite: Lowercase name.Jelmer Vernooij2011-07-261-1/+1
|
* s4-messaging: fixed the removal of messaging sockets in child tasksAndrew Tridgell2011-07-225-22/+33
| | | | | | | | | | | | | | when a child task exits we were firing a destructor on any inherited messaging contexts, which could trigger a removal of the parents message socket and messaging database entry. This adds a new auto_remove flag to imessaging_init(), and exposes the cleanup code for use by the stream service. Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Fri Jul 22 08:09:06 CEST 2011 on sn-devel-104
* s4:lib/socket: iface_list_wildcard() should only return "::" if we have ipv6 ↵Stefan Metzmacher2011-07-101-1/+13
| | | | | | | | | interfaces If glibc has IPv6 support, but it's not enabled in the running kernel we should not try to listen on "::". metze
* ldb: make ldb a top level library for Samba 4.0Andrew Bartlett2011-07-05149-49340/+0
| | | | Signed-off-by: Andrew Tridgell <tridge@samba.org>
* pyldb: added methods to get/set extended components on DNsAndrew Tridgell2011-06-221-0/+51
| | | | | | this will be used by the dbcheck code Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* ldb: added extended_str() method to pyldbAndrew Tridgell2011-06-221-0/+16
| | | | | | this gives access to ldb_dn_get_extended_linearized() from python Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* ldb: expose syntax oids to pythonAndrew Tridgell2011-06-221-0/+10
| | | | Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-cmdline: Rename popt tables to avoid symbol conflictsAndrew Bartlett2011-06-213-12/+12
| | | | | | | | These same names are use in the source3 popt code, which is called from in libsmbclient and libnet. These are then included in the smbtorture binary for testing Andrew Bartlett
* Use tevent_req_oomVolker Lendecke2011-06-201-1/+1
| | | | This fixes a few Coverity errors
* tdb2: tie it into build process if --enable-tdb2-breaks-compatRusty Russell2011-06-201-1/+1
| | | | | | | | | | | This is simplistic. We need to support making TDB2 a standalone library, but for now, we simply built it in-tree. Once we have tdb1 compatibility in tdb2, we can rename this option to --enable-tdb2. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* tdb_compat: use tdb_open_compat.Rusty Russell2011-06-202-28/+50
| | | | | | | | | This is a helper for the common case of opening a tdb with a logging function, but it doesn't do all the work, since TDB1 and TDB2's log functions are different types. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* tdb2: #ifdef out TDB_ERR_NOLOCK and TDB_ERR_LOCK_TIMEOUT.Rusty Russell2011-06-201-0/+4
| | | | | | | | These don't exist in tdb2. The former is used in one weird place in tdb1, and the latter not at all. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* ldb: replace 'struct TDB_DATA' with 'TDB_DATA'Rusty Russell2011-06-203-6/+6
| | | | | | | The typedef is TDB2 compatible, the struct isn't. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* tdb_unlockall/tdb_unlockall_read: ignore return value.Rusty Russell2011-06-201-1/+2
| | | | | | | | | TDB2 returns void here. tdb_unlockall will *always* return with the database unlocked, but it will complain via the log function if it wasn't locked. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* tdb_traverse/tdb_traverse_read: check returns for negative, not -1.Rusty Russell2011-06-202-3/+3
| | | | | | | | | | | TDB2 returns a negative error number on failure. This is compatible if we always check for < 0 instead of == -1. Also, there's no tdb_traverse_read in TDB2: we don't try to make traverse reliable any more, so there are no write locks anyway. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* tdb_transaction_cancel: ignore return value.Rusty Russell2011-06-201-4/+1
| | | | | | | | | TDB2 returns void here. tdb_transaction_cancel will *always* return with the transaction cancelled, but it will complain via the log function if a transaction wasn't in progress. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* tdb_store: check returns for 0, not -1.Rusty Russell2011-06-202-2/+2
| | | | | | | | TDB2 returns a negative error number on failure. This is compatible if we always check for != 0 instead of == -1. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* tdb_fetch_compat: use instead of tdb_fetch.Rusty Russell2011-06-203-5/+7
| | | | | | | This is a noop for tdb1. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* tdb_compat.h: divert every tdb build and includes to tdb_compatRusty Russell2011-06-205-10/+15
| | | | | | | | We change all the headers and wscript files to use tdb_compat; this means we have one place to decide whether to use TDB1 or TDB2. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* pyldb: add unit test for get(myattribute, defVal)Matthieu Patou2011-06-201-0/+5
| | | | | Autobuild-User: Matthieu Patou <mat@samba.org> Autobuild-Date: Mon Jun 20 09:23:15 CEST 2011 on sn-devel-104
* libcli/util Rename common map_nt_error_from_unix to avoid duplicate symbolAndrew Bartlett2011-06-203-38/+38
| | | | | | | | | | | | 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-201-1/+1
| | | | | | | | 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
* py-ldb: allow dictionnary like usage (ie. e.get("myattribute", defVal)Matthieu Patou2011-06-191-3/+8
|
* pyldb: make ldb operations more consistentAndrew Tridgell2011-06-141-12/+21
| | | | | | | This changes the controls option on ldb operations to be a keyword argument, which is more consistent with general python conventions. This also fixes the pydoc output to include the controls option.
* pyldb: added validate option to ldb.modify()Andrew Tridgell2011-06-141-9/+15
| | | | | | This allows validation of ldb messages in a ldb modify operation to be bypassed, by setting validate=False. This is useful in the dbcheck tool to allow for removing invalid empty attributes from the database
* lib/util Bring procid_str() into lib/util as server_id_string()Andrew Bartlett2011-06-091-4/+4
| | | | | | | This is needed for OpenChange, which prints Samba struct server_id values in debug messages. Andrew Bartlett
* server_id.idl: Bring server_id.idl in commonAndrew Bartlett2011-06-092-2/+2
| | | | | | Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s4-cluster Use task_id instead of id2 to clarify server_id structureAndrew Bartlett2011-06-091-6/+6
| | | | | | | | This seems a clearer and more acceptable name. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* ldb:ldb_msg.c - move away from "errno"Matthias Dieter Wallnöfer2011-06-091-3/+0
| | | | Reviewed-by: Tridge
* s4-interface: raise the debug level for interface discoveryAndrew Tridgell2011-06-081-3/+3
|
* s4-ipv6: fixed iface_list_same_net() for IPv6Andrew Tridgell2011-06-071-3/+15
|
* 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.