summaryrefslogtreecommitdiffstats
path: root/source3/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* TDB2: make SAMBA use tdb1 again for the moment.Rusty Russell2012-06-193-115/+0
| | | | | | | Otherwise the following surgery will break the SAMBA build and testsuite. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* build: Remove support for non-64bit sendfile()Andrew Bartlett2012-06-161-87/+0
| | | | | | | | | | | Some early Linux 2.6 platforms can not handle sendfile and _FILE_OFFSET_BITS == 64 This disables sendfile() on these platforms. Andrew Bartlett Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Sat Jun 16 02:21:28 CEST 2012 on sn-devel-104
* s3-lib: Fix conversion of lib/events.c to modern tevent namesAndrew Bartlett2012-06-151-2/+2
| | | | | | | | | This corrects an error in 8e31d97c8b62d34aff5d52bfe46dbcc5805dae03. Andrew Bartlett Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Fri Jun 15 16:25:20 CEST 2012 on sn-devel-104
* dbwrap: dbwrap_store_int32->dbwrap_store_int32_bystringVolker Lendecke2012-06-151-6/+6
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* dbwrap: dbwrap_fetch_int32->dbwrap_fetch_int32_bystringVolker Lendecke2012-06-151-2/+2
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* s3-lib: Convert lib/events.c to modern tevent namesAndrew Bartlett2012-06-151-14/+14
|
* s3:vfs: change files_struct.fnum from int to uint64_tMichael Adam2012-06-151-1/+2
| | | | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Fri Jun 15 05:22:41 CEST 2012 on sn-devel-104
* s3:lib: add a utility function "fsp_fnum_dbg" for logging the fnum of an fspMichael Adam2012-06-151-0/+28
| | | | | | This is to unify logging of an files_struct. Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3:lib: elaborate the comment for fsp_str_debug a bit.Michael Adam2012-06-151-1/+1
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3:lib: remove part of a comment for fsp_str_dbg that does not apply any more.Michael Adam2012-06-151-2/+1
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3: Add --pw-nt-hash to popt_common_credentialsVolker Lendecke2012-06-121-0/+5
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3: Add user_auth_info->use_pw_nt_hashVolker Lendecke2012-06-121-0/+12
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3:lib: we don't need smbd/proto.h in smbd_shim.cStefan Metzmacher2012-06-061-1/+0
| | | | metze
* build: Rationalise AIO support in configure, ensure on by defaultAndrew Bartlett2012-06-061-3/+3
| | | | | | | | | With this change, the define to check for AIO is HAVE_AIO, consistant with other subsystems. It is now also on by default in the autoconf build, as it has been for waf. Andrew Bartlett
* s3:lib: split things into a conn_tdb.hStefan Metzmacher2012-06-052-0/+63
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Tue Jun 5 19:28:35 CEST 2012 on sn-devel-104
* s3-libnetapi: Cope with popt versions without POPT_TABLEENDAndrew Bartlett2012-06-032-0/+8
|
* lib/replace: xattr wrappers in lib/replace rather than source3/lib/system.cAndrew Bartlett2012-06-021-678/+0
| | | | | | | This also moves all the still-used configure tests etc. The unused OSF API is also removed at this time. Andrew Bartlett
* s3:libsmb: get rid of cli_state_remote_nameLuk Claes2012-05-281-2/+3
| | | | | Signed-off-by: Luk Claes <luk@debian.org> Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3-smbldap: Add API for external callback to perform LDAP bind in smbldapAlexander Bokovoy2012-05-241-1/+19
| | | | | | | | | | | | | | | | | | | In order to support other bind methods, introduce a generic bind callback. When smbldap_state.bind_callback is set, it means there is an alternative way to perform LDAP bind to ldap_simple_bind_s() so call it instead. The call is wrapped in become_root()/unbecome_root() to allow proper permissions in smbd to access needed resources in the callback, for example, credential caches. When run outside smbd, become_root()/unbecome_root() are no-op. The API expectation is similar to ldap_simple_bind_s(). A caller of smbldap API can pass additional information to the callback by setting smbldap_state.bind_callback_data pointer. Both callback and the data pointer elements of smbldap_state structure get cleaned up if someone sets proper credentials on smbldap_state with smbldap_set_creds() so if you are interested in using smbldap_state.bind_dn with the callback, make sure to set callback after credentials are set.
* s3:idmap_cache: improve checks for format of value string in ↵Michael Adam2012-05-181-0/+15
| | | | | | | idmap_cache_find_sid2unixid() Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Fri May 18 16:34:27 CEST 2012 on sn-devel-104
* s3:idmap_cache: add common exit point to idmap_cache_find_sid2unixid()Michael Adam2012-05-181-12/+10
|
* s3:idmap_cache: improve debug messages in idmap_cache_find_sid2unixid()Michael Adam2012-05-181-5/+24
|
* s3: Remove some unused codeVolker Lendecke2012-05-151-14/+0
| | | | | Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Tue May 15 18:24:10 CEST 2012 on sn-devel-104
* lib/util: move tevent_req_poll_ntstatus() to tevent_ntstatus.cStefan Metzmacher2012-05-141-11/+0
| | | | metze
* s3:lib/util: use map_nt_error_from_unix_common() in tevent_req_poll_ntstatus()Stefan Metzmacher2012-05-141-1/+1
| | | | metze
* move the dbwrap library to the top levelMichael Adam2012-05-1414-2812/+2
| | | | | Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Mon May 14 04:04:55 CEST 2012 on sn-devel-104
* s3:lib:dbwrap: use [u]int[num]_t consistently in dbwrap_tdb.cMichael Adam2012-05-131-1/+1
|
* s3:lib:dbwrap: use [u]int[num]_t consistently in dbwrap_rbt.cMichael Adam2012-05-131-2/+2
|
* s3:lib:dbwrap: use [u]int[num]_t consistently in dbwrap_ctdb.cMichael Adam2012-05-131-6/+8
|
* s3:lib:dbwrap: use [u]int[num]_t consistently in dbwrap_file.cMichael Adam2012-05-131-6/+7
|
* s3:lib:dbwrap: use [u]int[num]_t consistently in dbwrap_util.cMichael Adam2012-05-131-9/+9
|
* s3:dbwrap: move definition of dbwrap_lock_order to dbwrap.hMichael Adam2012-05-134-8/+7
| | | | This is needed in all of the library, not only in the dbwrap_open part.
* s3-lib/sysacls: Do not include an embedded \0 between ACL entries in ↵Andrew Bartlett2012-05-091-2/+3
| | | | | | | | | | | sys_acl_to_text() This makes it possible to print the entire string again. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Wed May 9 06:07:06 CEST 2012 on sn-devel-104
* s3-lib: Add const to sys_acl_to_textAndrew Bartlett2012-05-091-1/+1
|
* s3-lib: Fix indentation in sys_acl_to_text()Andrew Bartlett2012-05-091-2/+2
|
* s3:idmap_cache: change DEBUG message to level 10Stefan Metzmacher2012-05-061-1/+2
| | | | metze
* s3-idmap: remove (now) unused function idmap_cache_set_sid2both()Andrew Bartlett2012-05-022-25/+0
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* s3-idmap: Rework idmap_cache to store ID_TYPE_BOTH valuesAndrew Bartlett2012-05-022-176/+240
| | | | | | | | | | | | | This required that the lower level cache store a UID/GID and a type, and that we operate on struct unixid rather than just uid/gid. The ID_TYPE_BOTH is then handled as being a positive mapping for both a UID and GID value. Wrapper functions are provided so that callers are not changed in this patch. Andrew Bartlett Signed-off-by: Michael Adam <obnox@samba.org>
* s3:util add sid_check_is_wellknown_builtin()Christian Ambach2012-05-011-0/+27
|
* s3-lib Add a way to allocate the task_id value in server_idAndrew Bartlett2012-04-301-0/+42
| | | | | | | | This safely allocates the task_id so that when we have multiple event contexts, they can each have their own messaging context, particularly for the imessaging subsystem under source4. Andrew Bartlett
* s3: Fix Coverity ID 2751: REVERSE_INULLVolker Lendecke2012-04-241-1/+1
|
* s3-dbwrap: A void function can not return a valueAndrew Bartlett2012-04-231-1/+1
| | | | | | | | | Only non-gcc compilers seem to notice this as an error. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Mon Apr 23 05:58:52 CEST 2012 on sn-devel-104
* s3: Implement db_id for dbwrap_cacheVolker Lendecke2012-04-211-0/+9
| | | | | Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Sat Apr 21 13:46:00 CEST 2012 on sn-devel-104
* s3: Initialize "stored_callback" in dbwrap_cacheVolker Lendecke2012-04-211-0/+1
| | | | This should fix one of the recent flaky tests
* s3:id_cache: do not use the in-memory idmap cache (it is going to be removed)Michael Adam2012-04-201-90/+0
| | | | This also removes the ID_CACHE_FLUSH message.
* s3-dbwrap: dbwrap_watch_record_stored => NT_STATUS_NOT_FOUND is ok...Stefan Metzmacher2012-04-201-0/+3
| | | | | Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Fri Apr 20 17:05:52 CEST 2012 on sn-devel-104
* s3-g_lock: Use dbwrap_record_watch_send/recvVolker Lendecke2012-04-191-446/+170
| | | | | | | | | | This simplifies the g_lock implementation. The new implementation tries to acquire a lock. If that fails due to a lock conflict, wait for the g_lock record to change. Upon change, just try again. The old logic had to cope with pending records and an ugly hack into ctdb itself. As a bonus, we now get a really clean async g_lock_lock_send/recv that can asynchronously wait for a global lock. This would have been almost impossible to do without the dbwrap_record_watch infrastructure.
* s3-dbwrap: Add dbwrap_record_watch_send/recvVolker Lendecke2012-04-192-0/+529
| | | | With this API you can asynchronously wait for a record to be modified
* s3-dbwrap: Add dbwrap_set_stored_callbackVolker Lendecke2012-04-206-2/+47
| | | | This is a per-db function that is called whenever some record is modified
* s3-dbwrap: Add "db_context" to "db_record"Volker Lendecke2012-04-204-0/+10
|