summaryrefslogtreecommitdiff
path: root/source3/lib
AgeCommit message (Collapse)AuthorFilesLines
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
2012-04-24s3: Fix Coverity ID 2751: REVERSE_INULLVolker Lendecke1-1/+1
2012-04-23s3-dbwrap: A void function can not return a valueAndrew Bartlett1-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
2012-04-21s3: Implement db_id for dbwrap_cacheVolker Lendecke1-0/+9
Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Sat Apr 21 13:46:00 CEST 2012 on sn-devel-104
2012-04-21s3: Initialize "stored_callback" in dbwrap_cacheVolker Lendecke1-0/+1
This should fix one of the recent flaky tests
2012-04-20s3:id_cache: do not use the in-memory idmap cache (it is going to be removed)Michael Adam1-90/+0
This also removes the ID_CACHE_FLUSH message.
2012-04-20s3-dbwrap: dbwrap_watch_record_stored => NT_STATUS_NOT_FOUND is ok...Stefan Metzmacher1-0/+3
Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Fri Apr 20 17:05:52 CEST 2012 on sn-devel-104
2012-04-19s3-g_lock: Use dbwrap_record_watch_send/recvVolker Lendecke1-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.
2012-04-19s3-dbwrap: Add dbwrap_record_watch_send/recvVolker Lendecke2-0/+529
With this API you can asynchronously wait for a record to be modified
2012-04-20s3-dbwrap: Add dbwrap_set_stored_callbackVolker Lendecke6-2/+47
This is a per-db function that is called whenever some record is modified
2012-04-20s3-dbwrap: Add "db_context" to "db_record"Volker Lendecke4-0/+10
2012-04-20s3-dbwrap: Add dbwrap_db_idVolker Lendecke6-0/+50
This returns a blob uniquely identifying the database
2012-04-20s3: Fix msg_channel in the cluster caseVolker Lendecke1-3/+6
2012-04-19s3: Fix the build on FreeBSDVolker Lendecke1-1/+1
Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Thu Apr 19 19:13:45 CEST 2012 on sn-devel-104
2012-04-19s3: Fix Coverity ID 2743: CHECKED_RETURNVolker Lendecke1-3/+6