summaryrefslogtreecommitdiff
path: root/source3/lib
AgeCommit message (Collapse)AuthorFilesLines
2012-06-21s3: Fix const warningsVolker Lendecke1-2/+3
Signed-off-by: Michael Adam <obnox@samba.org>
2012-06-21s3:move serverid_equal() to serverid.cMichael Adam2-21/+21
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-06-21s3:util: rename procid_equal() to serverid_equal()Michael Adam3-4/+4
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-06-21s3:util: remove (now) unused cluster_id_equal()Michael Adam1-6/+0
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-06-21s3:util: reformat procid_equal() to adhere to coding guidelinesMichael Adam1-7/+14
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-06-21s3:util: also compare the unique_id in procid_equal().Michael Adam1-0/+3
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-06-19s3: We can depend on pthreadpool nowVolker Lendecke1-42/+0
Signed-off-by: Jeremy Allison <jra@samba.org>
2012-06-19s3: Add a dummy implementation for the pthreadpool APIVolker Lendecke2-4/+183
Signed-off-by: Jeremy Allison <jra@samba.org>
2012-06-19Revert "s3-lib Remove unused sys_fcntl_long()"Stefan Metzmacher1-0/+14
This reverts commit 846a697e20478798288afb43cdb7a9f389a15c69. This is still used in source3/smbd/oplock_irix.c metze
2012-06-19lib/tdb_wrap: use tdb directly, not tdb_compat.Rusty Russell1-1/+1
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2012-06-19TDB2: make SAMBA use tdb1 again for the moment.Rusty Russell3-115/+0
Otherwise the following surgery will break the SAMBA build and testsuite. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2012-06-16build: Remove support for non-64bit sendfile()Andrew Bartlett1-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
2012-06-15s3-lib: Fix conversion of lib/events.c to modern tevent namesAndrew Bartlett1-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
2012-06-15dbwrap: dbwrap_store_int32->dbwrap_store_int32_bystringVolker Lendecke1-6/+6
Signed-off-by: Michael Adam <obnox@samba.org>
2012-06-15dbwrap: dbwrap_fetch_int32->dbwrap_fetch_int32_bystringVolker Lendecke1-2/+2
Signed-off-by: Michael Adam <obnox@samba.org>
2012-06-15s3-lib: Convert lib/events.c to modern tevent namesAndrew Bartlett1-14/+14
2012-06-15s3:vfs: change files_struct.fnum from int to uint64_tMichael Adam1-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
2012-06-15s3:lib: add a utility function "fsp_fnum_dbg" for logging the fnum of an fspMichael Adam1-0/+28
This is to unify logging of an files_struct. Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-06-15s3:lib: elaborate the comment for fsp_str_debug a bit.Michael Adam1-1/+1
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-06-15s3:lib: remove part of a comment for fsp_str_dbg that does not apply any more.Michael Adam1-2/+1
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-06-12s3: Add --pw-nt-hash to popt_common_credentialsVolker Lendecke1-0/+5
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-06-12s3: Add user_auth_info->use_pw_nt_hashVolker Lendecke1-0/+12
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-06-06s3:lib: we don't need smbd/proto.h in smbd_shim.cStefan Metzmacher1-1/+0
metze
2012-06-06build: Rationalise AIO support in configure, ensure on by defaultAndrew Bartlett1-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
2012-06-05s3:lib: split things into a conn_tdb.hStefan Metzmacher2-0/+63
metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Tue Jun 5 19:28:35 CEST 2012 on sn-devel-104
2012-06-03s3-libnetapi: Cope with popt versions without POPT_TABLEENDAndrew Bartlett2-0/+8
2012-06-02lib/replace: xattr wrappers in lib/replace rather than source3/lib/system.cAndrew Bartlett1-678/+0
This also moves all the still-used configure tests etc. The unused OSF API is also removed at this time. Andrew Bartlett
2012-05-28s3:libsmb: get rid of cli_state_remote_nameLuk Claes1-2/+3
Signed-off-by: Luk Claes <luk@debian.org> Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-05-24s3-smbldap: Add API for external callback to perform LDAP bind in smbldapAlexander Bokovoy1-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.
2012-05-18s3:idmap_cache: improve checks for format of value string in ↵Michael Adam1-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
2012-05-18s3:idmap_cache: add common exit point to idmap_cache_find_sid2unixid()Michael Adam1-12/+10
2012-05-18s3:idmap_cache: improve debug messages in idmap_cache_find_sid2unixid()Michael Adam1-5/+24
2012-05-15s3: Remove some unused codeVolker Lendecke1-14/+0
Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Tue May 15 18:24:10 CEST 2012 on sn-devel-104
2012-05-14lib/util: move tevent_req_poll_ntstatus() to tevent_ntstatus.cStefan Metzmacher1-11/+0
metze
2012-05-14s3:lib/util: use map_nt_error_from_unix_common() in tevent_req_poll_ntstatus()Stefan Metzmacher1-1/+1
metze
2012-05-14move the dbwrap library to the top levelMichael Adam14-2812/+2
Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Mon May 14 04:04:55 CEST 2012 on sn-devel-104
2012-05-13s3:lib:dbwrap: use [u]int[num]_t consistently in dbwrap_tdb.cMichael Adam1-1/+1
2012-05-13s3:lib:dbwrap: use [u]int[num]_t consistently in dbwrap_rbt.cMichael Adam1-2/+2
2012-05-13s3:lib:dbwrap: use [u]int[num]_t consistently in dbwrap_ctdb.cMichael Adam1-6/+8
2012-05-13s3:lib:dbwrap: use [u]int[num]_t consistently in dbwrap_file.cMichael Adam1-6/+7
2012-05-13s3:lib:dbwrap: use [u]int[num]_t consistently in dbwrap_util.cMichael Adam1-9/+9
2012-05-13s3:dbwrap: move definition of dbwrap_lock_order to dbwrap.hMichael Adam4-8/+7
This is needed in all of the library, not only in the dbwrap_open part.
2012-05-09s3-lib/sysacls: Do not include an embedded \0 between ACL entries in ↵Andrew Bartlett1-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
2012-05-09s3-lib: Add const to sys_acl_to_textAndrew Bartlett1-1/+1
2012-05-09s3-lib: Fix indentation in sys_acl_to_text()Andrew Bartlett1-2/+2
2012-05-06s3:idmap_cache: change DEBUG message to level 10Stefan Metzmacher1-1/+2
metze
2012-05-02s3-idmap: remove (now) unused function idmap_cache_set_sid2both()Andrew Bartlett2-25/+0
Signed-off-by: Michael Adam <obnox@samba.org>
2012-05-02s3-idmap: Rework idmap_cache to store ID_TYPE_BOTH valuesAndrew Bartlett2-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>
2012-05-01s3:util add sid_check_is_wellknown_builtin()Christian Ambach1-0/+27
2012-04-30s3-lib Add a way to allocate the task_id value in server_idAndrew Bartlett1-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