summaryrefslogtreecommitdiffstats
path: root/source3/passdb/py_passdb.c
Commit message (Collapse)AuthorAgeFilesLines
* s3-py-passdb: Fix handling of uninitialized gid valuesAmitay Isaacs2011-11-181-1/+1
| | | | | | | | Uninitialized gid value is set to -1 and return as such from python passdb api. Autobuild-User: Amitay Isaacs <amitay@samba.org> Autobuild-Date: Fri Nov 18 06:18:33 CET 2011 on sn-devel-104
* s4-s3-upgrade now look for -1 as the special 'not set' valueAndrew Bartlett2011-11-181-1/+1
| | | | | | | this is possible because we know the py_passdb will always set -1 here, not passing though 0xFFFFFFFF. Andrew Bartlett
* py_passdb: Cannot steal an item pointer from an arrayAmitay Isaacs2011-11-111-4/+9
| | | | | Autobuild-User: Amitay Isaacs <amitay@samba.org> Autobuild-Date: Fri Nov 11 12:04:33 CET 2011 on sn-devel-104
* s3-py_passdb Ensure that group mapping list input is initailisedAndrew Bartlett2011-11-091-1/+2
| | | | | | This may help to ensure we consistantly crash on an incorrect de-reference. Andrew Bartlett
* pdb-interface: Do not use unid_t hereSimo Sorce2011-10-181-3/+4
| | | | | | | | 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-3/+5
| | | | | | | 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: Cleanup use of fstring and move to talloc.Simo Sorce2011-09-261-5/+14
| | | | Signed-off-by: Andreas Schneider <asn@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>
* 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: 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: 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: 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: Allocate talloc stackframe before calling in pdb functions.Amitay Isaacs2011-08-131-2/+32
|
* passdb: Added python wrapper to passdbAmitay Isaacs2011-08-131-0/+1553
- 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>