summaryrefslogtreecommitdiffstats
path: root/source3
Commit message (Collapse)AuthorAgeFilesLines
...
* 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-194-16/+16
| | | | | Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* Fix bug #8370 - vfs_chown_fsp broken -- returns in the wrong directoryJeremy Allison2011-08-192-5/+18
| | | | | | | Ensure we always use vfs_ChDir() to keep the singleton cache coherent. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Fri Aug 19 00:43:05 CEST 2011 on sn-devel-104
* 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: Next step to fix MIT trustsVolker Lendecke2011-08-171-0/+4
| | | | | | | | aa3f10c was not complete in the sense that it did not fully cover some conditions that led to invalid domains in the winbind parent Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Wed Aug 17 13:59:06 CEST 2011 on sn-devel-104
* s3: Increase a debug level in ads_find_dcVolker Lendecke2011-08-171-1/+2
| | | | | This message can happen with AD trusts that winbind can not cope with. The message is not really clear and not worth spamming syslog always.
* Replace calls to sid_equal with calls to dom_sid_equalVolker Lendecke2011-08-174-8/+9
|
* s3-messaging: IDMAP_ messages belongs to the Winbind rangeSimo Sorce2011-08-161-4/+4
| | | | | Autobuild-User: Simo Sorce <idra@samba.org> Autobuild-Date: Tue Aug 16 22:27:05 CEST 2011 on sn-devel-104
* s3: Use ZERO_STRUCT where appropriateVolker Lendecke2011-08-161-1/+1
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Tue Aug 16 13:59:55 CEST 2011 on sn-devel-104
* s3:registry: enhance debugging of deletekey_recursiveMichael Adam2011-08-151-0/+14
| | | | | Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Mon Aug 15 19:34:44 CEST 2011 on sn-devel-104
* s3:dbwrap_ctdb: improve transaction start/commit/cancel debuggingMichael Adam2011-08-151-2/+8
| | | | | * also log nesting transaction start/commit/cancel * unify transaction log messages slightly
* s3:lib: fix a comment in tdb_unpack()Michael Adam2011-08-151-1/+1
|
* s3:registry: fix regdb_key_exists: the record has to contain at least the ↵Michael Adam2011-08-151-1/+72
| | | | | | | | 4-byte subkey counter More precisley, we return false if the record does not match the required structure of a leading 4-byte subkey counter followed by the corresponding number zero-terminated strings.
* s3: avoid reading past the end of buffer in tdb_unpack 'f' if zero ↵Gregor Beck2011-08-151-1/+1
| | | | | | termination is missing Signed-off-by: Michael Adam <obnox@samba.org>
* s3: avoid reading past the end of buffer in tdb_unpack 'P' if zero ↵Gregor Beck2011-08-151-1/+3
| | | | | | termination is missing Signed-off-by: Michael Adam <obnox@samba.org>
* build: link pys3param against pytalloc-util not pytallocAndrew Bartlett2011-08-151-1/+1
| | | | | | | | | pytalloc is the python module, pytalloc-util is the library that we can depend on Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Mon Aug 15 09:54:02 CEST 2011 on sn-devel-104
* s3-passdb Use supplied pdb_methods in default passdb search handlersAndrew Bartlett2011-08-151-5/+7
|
* s3-prefork: Do not use mmap/mremap/munmap directlySimo Sorce2011-08-151-9/+11
| | | | | | | | Use the wrappers in util.h as they deal with trying to do the best they can on platfroms that do not support mmap extensions. Autobuild-User: Simo Sorce <idra@samba.org> Autobuild-Date: Mon Aug 15 04:13:51 CEST 2011 on sn-devel-104
* s3: Fix bug 8360Volker Lendecke2011-08-141-7/+16
| | | | | | | OS/2 sends an unexpected write&x/read&x chain Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Sun Aug 14 08:48:58 CEST 2011 on sn-devel-104
* 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
* torture: use tevent_ functions names instead of the legacy event_ onesSimo Sorce2011-08-131-3/+3
|
* s3-smbd Avoid races creating 'ncaclrpc dir' with epmd in a child processAndrew Bartlett2011-08-131-0/+9
|
* 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-param: Add python wrapper for s3 parametersAmitay Isaacs2011-08-132-0/+94
| | | | | | This provids a get_context() method to return s3 context as s4 context type. Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* 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>
* s3-param: Make sure we have talloc stack frame before calling in s3 codeAmitay Isaacs2011-08-131-1/+8
| | | | | When loading parameters as s4 context in s3 code, ensure we have a talloc stack frame. This is required for python wrapping s3 params.
* param: Add smb.conf loading support to s3/s4 loadparm bridgeAndrew Bartlett2011-08-131-0/+6
|
* 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-132-6/+17
| | | | | 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:smb2cli: pass more fields to smb2cli_req_create()/smb2cli_req_send()Stefan Metzmacher2011-08-1211-16/+80
| | | | | | | | | The caller should take care of the global cli_state values. metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Fri Aug 12 19:38:27 CEST 2011 on sn-devel-104
* s3:smb2cli: allow 32bit dyn_len in smb2cli_req_create()/smb2cli_req_send()Stefan Metzmacher2011-08-122-5/+5
| | | | metze
* s3:libsmb: keep a cli_smb_state->one_wayStefan Metzmacher2011-08-121-12/+19
| | | | | | | This moves the SMB1 specific stuff to cli_smb_req_create(), instead of having it in the core dispatching code. metze
* s3:libsmb: abstract the incoming dispatch function via a function pointerStefan Metzmacher2011-08-122-5/+17
| | | | | | This will allow handling of SMB2 in future. metze
* s3:libsmb: split out cli_state_dispatch_smb1() from cli_smb_received()Stefan Metzmacher2011-08-121-45/+66
| | | | metze
* s3:libsmb: add missing TALLOC_FREE(frame) to cli_smb_received()Stefan Metzmacher2011-08-121-0/+1
| | | | metze
* s3:smb2_server: make sure we prefer responses over requests on the client socketStefan Metzmacher2011-08-121-12/+52
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Fri Aug 12 16:46:43 CEST 2011 on sn-devel-104