summaryrefslogtreecommitdiffstats
path: root/source3/passdb
Commit message (Collapse)AuthorAgeFilesLines
* s3-pdb_ipa: Add supprted encryption types to struct pdb_trusted_domainSumit Bose2011-08-311-0/+23
| | | | Signed-off-by: Günther Deschner <gd@samba.org>
* s3-pdb_ipa: Add posix offset to struct pdb_trusted_domainSumit Bose2011-08-311-0/+22
| | | | Signed-off-by: Günther Deschner <gd@samba.org>
* s3-pdb_ipa: Derive domain GUID from SIDSumit Bose2011-08-311-2/+23
| | | | Signed-off-by: Günther Deschner <gd@samba.org>
* s3-passdb: Allocate talloc stackframe before calling pdb_get_group_sid()Amitay Isaacs2011-08-261-5/+6
| | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s3-passdb: Make domain_sid argument optional for search_aliases methodAmitay Isaacs2011-08-261-5/+10
| | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s3-passdb: Return assigned number of hours and not MAX_HOURS_LENAmitay Isaacs2011-08-261-3/+4
| | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s3-passdb: Convert lm_pw and nt_pw to python string using lengthAmitay Isaacs2011-08-261-2/+2
| | | | | | | lm_pw and nt_pw are fixed length strings and convert them to python strings as fixed length strings. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* pdb-samba4: use ldb_get_default_basedn() instead of NULLAndrew Tridgell2011-08-251-3/+3
| | | | | | this makes pdb-samba4 safe for multi-domain setups Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* 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-id_cache: Move id caches mgmt out of smbdAndreas Schneider2011-08-212-70/+0
| | | | | | | | | | We must leave the MSG_IDMAP_KILL operation in SMBD as it uses smbd specific internal globals and makes sense only in the context of a smbd daemon. The rest is moved under lib/ as we need to deal with id cache cleanups in other daemons too (like lsasd). Signed-off-by: Simo Sorce <idra@samba.org>
* s3:passdb/py_passdb.c - restore Python >= 2.4 compatibilityMatthias Dieter Wallnöfer2011-08-191-0/+7
| | | | | Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Fri Aug 19 21:03:44 CEST 2011 on sn-devel-104
* s3-passdb pdb_samba4 handles PDB_PWHISTORY alreadyAndrew Bartlett2011-08-191-1/+0
| | | | | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Fri Aug 19 10:40:16 CEST 2011 on sn-devel-104
* s3-passdb: Fix the get/set routines for pw_history for samuAmitay Isaacs2011-08-191-2/+2
| | | | | | | | Return pw_history with current string length (which is a multiple of PW_HISTORY_ENTRY_LEN) and same thing for setting the pw_history. Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s3-passdb: Display username when reporting error on add_sam_account.Amitay Isaacs2011-08-191-1/+2
| | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s3-passdb: Use pdb_get_nt_passwd() to get nt passwd.Amitay Isaacs2011-08-191-1/+1
| | | | | Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s3-passdb: Fix call for search_aliases(). It returns bool and not NTSTATUS.Amitay Isaacs2011-08-191-4/+1
| | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s3-passdb: Return list of sids from python wrapper enum_group_membersAmitay Isaacs2011-08-191-5/+9
| | | | | | | | Instead of returning rids as the C api does, return sids, so it is similar to enum_aliasmem and can be used easily in s3_upgrade. Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s3-passdb: Make arguments for python wrapper enum_group_mapping() optionalAmitay Isaacs2011-08-191-5/+10
| | | | | | | Set the defaults, if no arguments are provided. Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s3-passdb: Added python wrapper for passdb methodsAmitay Isaacs2011-08-191-21/+831
| | | | | | | | | | | | | Added following methods - uid_to_sid, gid_to_sid, sid_to_id, new_rid - get_trusteddom_pw, set_trusteddom_pw, del_trusteddom_pw, enum_trusteddoms - get_trusted_domain, get_trusted_domain_by_sid, set_trusted_domain, del_trusted_domain, enum_trusted_domains - get_secret, set_secret, delete_secret Updated documentation for all methods Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s3-passdb: Python wrapper for passdbAmitay Isaacs2011-08-191-8/+1283
| | | | | | | | | | | | | | | | | | | - Added Groupmap python wrapper - Added passdb methods getgrsid, getgrgid, getgrnam create_dom_group, delete_dom_group add_group_mapping_entry, update_group_mapping_entry, delete_group_mapping_entry enum_group_mapping, enum_group_members add_groupmem, del_groupmem create_alias, delete_alias get_aliasinfo, set_aliasinfo add_aliasmem, del_aliasmem, enum_aliasmem get_account_policy, set_account_policy search_groups, search_aliases Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s3-passdb: Replace SMB_MALLOC_ARRAY()/SAFE_FREE() with talloc equivalents.Amitay Isaacs2011-08-192-8/+7
| | | | | Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s3/ldap: don't continue if we couldn't get the domain info on startupBjörn Jacke2011-08-181-7/+4
| | | | | | | | | while some things work without the domain info, some important things don't, which is highly irritating. As even calls like EnumTrustDom fail and thus clients' domain logins fail we are sufficiently broken to refuse to go on. Autobuild-User: Björn Jacke <bj@sernet.de> Autobuild-Date: Thu Aug 18 12:48:37 CEST 2011 on sn-devel-104
* s3-passdb Use supplied pdb_methods in default passdb search handlersAndrew Bartlett2011-08-151-5/+7
|
* s3-passdb: Fix python < 2.6 build errors in passdb python wrapperAndrew Bartlett2011-08-141-0/+4
| | | | | Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Sun Aug 14 03:59:48 CEST 2011 on sn-devel-104
* s3-passdb: Added python method to get_global_sam_sidAmitay Isaacs2011-08-131-0/+31
| | | | Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s3-passdb: Return dom_sid and guid with correct python types.Amitay Isaacs2011-08-131-7/+31
| | | | Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* passdb: Move python wrapper for passdb in samba3 python packageAmitay Isaacs2011-08-131-1/+1
|
* s3-passdb: Connect to specified samdb if location is provided, otherwise use ↵Amitay Isaacs2011-08-131-1/+9
| | | | | | default Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s3-passdb: Fix the error messages and return correct NTSTATUSAmitay Isaacs2011-08-131-6/+8
| | | | Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-scripting Rename passdb upgrade routine to avoid conflict with ↵Andrew Bartlett2011-08-131-14/+7
| | | | upgradeprovision
* s3-passdb Add support for pdb_add_sam_account() and password hashes to ↵Andrew Bartlett2011-08-131-69/+222
| | | | | | | | | pdb_samba4 This will help when using this as part of the Samba3 passdb -> Samba4 ldb database upgrade script. Andrew Bartlett
* s4-dsdb Add ability to force a particular SID in the upgrade caseAndrew Bartlett2011-08-131-1/+2
|
* s3-passdb Make pdb_element_is_changed available to all passdb modulesAndrew Bartlett2011-08-133-29/+33
| | | | | | This will allow pdb_samba4 to use this Andrew Bartlett
* passdb: Allocate talloc stackframe before calling in pdb functions.Amitay Isaacs2011-08-131-2/+32
|
* passdb: Call with correct backend methods instead of default methodsAmitay Isaacs2011-08-133-10/+15
| | | | Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* passdb: Added python wrapper to passdbAmitay Isaacs2011-08-132-0/+1560
| | | | | | | | | | | | - Added python wrapper for samu structure. - Added python wrapper for passdb methods: domain_info(), getsampwnam(), getsampwsid(), create_user(), delete_user(), add_sam_account(), delete_sam_account(), update_sam_account(), rename_sam_account(), search_users() Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* passdb: Add a function to read secrets db from a specified pathAmitay Isaacs2011-08-131-6/+16
| | | | | This allows to load secrets db from a different location. The original secrets_init() now calls secrets_init_path() with lp_private_dir().
* passdb: Add a function to expose loaded backend list.Amitay Isaacs2011-08-132-0/+7
| | | | This function is used in python wrapper to list available python backends.
* s3-secrets: add lsa_secret passdb api.Günther Deschner2011-07-312-3/+245
| | | | Guenther
* s3-passdb: add dummy calls to control global (replicated) secrets.Günther Deschner2011-07-312-0/+80
| | | | Guenther
* s3:dbwrap: move all .c and .h files of dbwrap to lib/dbwrap/Michael Adam2011-07-295-5/+5
| | | | | Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Fri Jul 29 13:34:22 CEST 2011 on sn-devel-104
* s3:dbwrap: move db_open() to a file dbwrap_open.c of its own.Michael Adam2011-07-293-0/+3
| | | | | | Also start new folder lib/dbwrap/ where dbwrap_open.c is stored and make the fallbacke implementation functoins non-static and create a dbwrap_private.h header file that contains their prototypes.
* s3-waf: the passdb subsystem needs to be called pdbAndrew Tridgell2011-07-281-6/+6
| | | | | | | | | the 'pdb' name is builtin to the passdb module loading code as a fixed string. We need to call the subsystem pdb so that external passdb modules end up in bin/modules/pdb/ where they can be found by the Samba3 module loader Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* First part of fix for bug 8310 - toupper_ascii() is broken on big-endian systemsJeremy Allison2011-07-191-4/+4
| | | | | | | | | | Remove int toupper_ascii(int c); int tolower_ascii(int c); int isupper_ascii(int c); int islower_ascii(int c); and replace with their _m equivalents, as they are identical.
* lib/util Move bitmap.c to lib/utilAndrew Bartlett2011-07-081-0/+1
|
* s3-build link passdb modules against libpassdbAndrew Bartlett2011-07-041-11/+6
| | | | | | | | | | This ensures that they don't include a duplicate copy of pdb_interface.c functions, because they will instead link the library. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Mon Jul 4 12:24:50 CEST 2011 on sn-devel-104
* s3-build allow_undefined_symbols=False is the default nowAndrew Bartlett2011-07-041-1/+0
|
* s3-waf: add some missing tdb dependencies.Günther Deschner2011-06-281-1/+1
| | | | Guenther