summaryrefslogtreecommitdiffstats
path: root/source3/passdb/pdb_interface.c
Commit message (Collapse)AuthorAgeFilesLines
* lib/util: Remove dummy wrapper for getpwuid().Jelmer Vernooij2012-03-241-1/+1
|
* s3-passdb: trying to decouple passdb and secrets a little.Günther Deschner2012-01-181-0/+1
| | | | | | | Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Wed Jan 18 14:46:18 CET 2012 on sn-devel-104
* s3-passdb: use tevent_context in passdb.Günther Deschner2011-10-281-5/+5
| | | | | | | Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Fri Oct 28 13:09:47 CEST 2011 on sn-devel-104
* pdb-interface: Do not use unid_t hereSimo Sorce2011-10-181-16/+20
| | | | | | | | This interface needs to be publicly available, unid_t here is not really useful and makes it harder to use it as unid_t is not a public union. Autobuild-User: Simo Sorce <idra@samba.org> Autobuild-Date: Tue Oct 18 20:57:16 CEST 2011 on sn-devel-104
* s3-group-mapping: Remove fstrings from GROUP_MAP.Simo Sorce2011-10-121-45/+99
| | | | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Wed Oct 12 19:28:12 CEST 2011 on sn-devel-104
* s3-passdb: Only delete 1 entry from memcache.Andreas Schneider2011-08-211-1/+4
| | | | | | | | | | If we delete or update one user we shouldn't flush the complete memcache. Signed-off-by: Simo Sorce <idra@samba.org> Autobuild-User: Simo Sorce <idra@samba.org> Autobuild-Date: Sun Aug 21 16:39:10 CEST 2011 on sn-devel-104
* s3-passdb: Remove always the user from getpwsid cache.Andreas Schneider2011-08-211-3/+8
| | | | | | | We should do it always, not only in the pdb_default_delete_user() function. Signed-off-by: Simo Sorce <idra@samba.org>
* s3-passdb: Keep caches coherentAndreas Schneider2011-08-211-1/+23
| | | | | | | | | | | When deleting a user send a message to all interested parties so they can purge their caches. Otherwise some processes may positively respond with a cached getpwnam, when the user have actully been removed. Without this some tests that remove and then immediately create users are flakey. Signed-off-by: Simo Sorce <idra@samba.org>
* s3-passdb Use supplied pdb_methods in default passdb search handlersAndrew Bartlett2011-08-151-5/+7
|
* passdb: Call with correct backend methods instead of default methodsAmitay Isaacs2011-08-131-3/+5
| | | | Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* passdb: Add a function to expose loaded backend list.Amitay Isaacs2011-08-131-0/+6
| | | | This function is used in python wrapper to list available python backends.
* s3-secrets: add lsa_secret passdb api.Günther Deschner2011-07-311-3/+11
| | | | Guenther
* s3-passdb: add dummy calls to control global (replicated) secrets.Günther Deschner2011-07-311-0/+68
| | | | Guenther
* s3-passdb: Implement new pdb trust calls for the default backendSumit Bose2011-06-121-2/+102
| | | | | | | Signed-off-by: Simo Sorce <idra@samba.org> Autobuild-User: Simo Sorce <idra@samba.org> Autobuild-Date: Sun Jun 12 06:45:25 CEST 2011 on sn-devel-104
* s3-talloc Change TALLOC_ZERO_ARRAY() to talloc_zero_array()Andrew Bartlett2011-06-091-1/+1
| | | | | Using the standard macro makes it easier to move code into common, as TALLOC_ZERO_ARRAY isn't standard talloc.
* s3-talloc Change TALLOC_ARRAY() to talloc_array()Andrew Bartlett2011-06-091-1/+1
| | | | | Using the standard macro makes it easier to move code into common, as TALLOC_ARRAY isn't standard talloc.
* s3-passdb: add passdb.h where needed.Günther Deschner2011-03-301-0/+1
| | | | Guenther
* s3-includes: only include system/passwd.h when needed.Günther Deschner2011-03-301-0/+1
| | | | Guenther
* lib/util/util_pw: share sys_get{pw,gr} group of calls.Günther Deschner2011-03-301-0/+1
| | | | Guenther
* s3:auth: change num_groups to from size_t to uint32_tStefan Metzmacher2011-02-221-5/+5
| | | | | | This will help with the change from UNIX_USER_TOKEN to security_unix_token metze
* s3-ipasam: add ipasam_get_trusted_domain_by_sid()Sumit Bose2011-02-161-0/+16
| | | | Signed-off-by: Günther Deschner <gd@samba.org>
* s3-passdb: add {get,set,del,enum}_trusted_domain callsSumit Bose2011-02-161-0/+65
| | | | Signed-off-by: Günther Deschner <gd@samba.org>
* s3-auth: Fixed account lockout check.Andreas Schneider2011-01-171-1/+1
|
* Make sure that user exists after running add user script before adding sam ↵Bjoern Baumbach2010-12-071-0/+5
| | | | | | | account. Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Tue Dec 7 17:37:52 CET 2010 on sn-devel-104
* Make getpwnam_alloc() static to lib/username.c, and ensure all username ↵Jeremy Allison2010-10-201-2/+2
| | | | | | | | | | | | lookups go through Get_Pwnam_alloc(), which is the correct wrapper function. We were using it *some* of the time anyway, so this just makes us properly consistent. Jeremy. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Wed Oct 20 16:02:12 UTC 2010 on sn-devel-104
* libcli/security Provide a common, top level libcli/security/security.hAndrew Bartlett2010-10-121-1/+1
| | | | | | | | | | | | | | This will reduce the noise from merges of the rest of the libcli/security code, without this commit changing what code is actually used. This includes (along with other security headers) dom_sid.h and security_token.h Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Tue Oct 12 05:54:10 UTC 2010 on sn-devel-104
* s3: Remove talloc_autofree_context from pdb_interfaceVolker Lendecke2010-10-031-1/+1
| | | | | None of the pdb backends have special destructors that need to be run at program exit.
* s3: Remove talloc_autofree_context() from guest_user_info()Volker Lendecke2010-09-261-1/+2
| | | | pwd is freed a few lines down
* s3-util_sid: use shared dom_sid_compare_auth and dom_sid_equal_X functions.Günther Deschner2010-09-201-1/+2
| | | | Guenther
* s3-passdb: Try to unlock the account if it is locked out.Andreas Schneider2010-08-301-10/+53
| | | | Signed-off-by: Simo Sorce <idra@samba.org>
* s3-passdb: Added a pdb_try_account_unlock function.Andreas Schneider2010-08-301-0/+74
| | | | | | | | The function checks if the account has been autolocked. If we have a lockout_duration and a bad password time it checks if we can unlock the account. Signed-off-by: Simo Sorce <idra@samba.org>
* s3-build: only include nsswitch header where needed.Günther Deschner2010-08-261-0/+1
| | | | Guenther
* s3-build: only include memcache.h where needed.Günther Deschner2010-08-261-0/+1
| | | | Guenther
* s3-passdb: include samr.h where needed.Günther Deschner2010-08-061-0/+1
| | | | Guenther
* s3-secrets: only include secrets.h when needed.Günther Deschner2010-08-051-0/+1
| | | | Guenther
* s3-passdb: Fix typo in comment.Karolin Seeger2010-06-101-1/+1
| | | | Karolin
* s3:dom_sid Global replace of DOM_SID with struct dom_sidAndrew Bartlett2010-05-211-44/+44
| | | | | | | | | | This matches the structure that new code is being written to, and removes one more of the old-style named structures, and the need to know that is is just an alias for struct dom_sid. Andrew Bartlett Signed-off-by: Günther Deschner <gd@samba.org>
* s3:passdb Remove use of uint8 uint16 and uint32 in favour of C99 typesAndrew Bartlett2010-05-211-41/+41
| | | | Signed-off-by: Günther Deschner <gd@samba.org>
* s3-rpc_misc: clean out include/rpc_misc.h.Günther Deschner2010-05-181-3/+3
| | | | | | | Well known rids don't really belong into an rpc header, just use the ones defined in security.idl. Guenther
* s3: Make guest_user_info() staticVolker Lendecke2010-02-051-1/+1
|
* s3: Replace most calls to sid_append_rid() by sid_compose()Volker Lendecke2010-01-101-2/+1
|
* s3:passdb: remove the uid_to_rid method - we only need uid_to_sidMichael Adam2009-11-141-28/+0
| | | | Michael
* s3:pdb_default_uid_to_sid: fix some debug statements.Michael Adam2009-11-141-3/+3
| | | | Michael
* s3-account_policy: add pdb_policy_type enum.Günther Deschner2009-07-141-8/+8
| | | | Guenther
* Add pdb_get_domain_infoVolker Lendecke2009-07-041-0/+13
|
* Turn the pdb_rid_algorithm into a capabilities call that returns flagsVolker Lendecke2009-06-281-6/+6
|
* Fix some nonempty blank linesVolker Lendecke2009-06-081-34/+34
|
* Pass a talloc_ctx to pdb_enum_aliasmemVolker Lendecke2009-06-081-2/+3
|
* s3/passdb: Fix debug message: 'net setmaxrid' does not exist.Karolin Seeger2009-06-061-2/+2
| | | | | | This is aiming bug #6351. Karolin
* util: move add_gid_to_array_unique to toplevel and add add_uid_to_array_unique.Günther Deschner2009-05-291-20/+0
| | | | Guenther