summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* passdb: Move python wrapper for passdb in samba3 python packageAmitay Isaacs2011-08-131-1/+1
|
* py-samba3: Create samba3 python package to hold other modulesAmitay Isaacs2011-08-131-18/+18
| | | | This will include passdb and param.
* 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>
* s4-dsdb: Provide additional method to connect to specified database pathAmitay Isaacs2011-08-131-5/+16
| | | | | | samdb_connect() now calls samdb_connect_url() with default "sam.ldb". 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-133-0/+11
|
* s4-dsdb ensure we honour the hash_values control, even for really odd hashesAndrew Bartlett2011-08-131-2/+4
|
* s4-dsdb Give a less worrying error message on failure to get a transactionAndrew Bartlett2011-08-131-1/+1
|
* s4-scripting Rename passdb upgrade routine to avoid conflict with ↵Andrew Bartlett2011-08-133-20/+13
| | | | 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-133-3/+20
|
* 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
* s4-dsdb Add flag to set DSDB_BYPASS_PASSWORD_HASH controlAndrew Bartlett2011-08-132-0/+9
|
* 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.
* waf: Add SAMBA3_PYTHON context to build python wrappers in samba3Amitay Isaacs2011-08-131-0/+5
|
* samba-tool: Remove gpo setacl commandAmitay Isaacs2011-08-131-5/+0
|
* 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
* selftest:Samba4: test --domain-critical-only in provision_vampire_dc()Stefan Metzmacher2011-08-121-1/+1
| | | | | | | | | | | | This way only only replicate critical objects during the initial join as DC, then we'll replicate the whole domain while 'samba' is running. metze Signed-off-by: Andrew Tridgell <tridge@samba.org> Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Fri Aug 12 14:07:50 CEST 2011 on sn-devel-104
* s3:samba-tool: add --domain-critical-only to "samba-tool domain join"Stefan Metzmacher2011-08-121-3/+9
| | | | | | metze Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s4:py/samba/join: add domain_critical_only=False to join_DC/join_RODCStefan Metzmacher2011-08-121-3/+10
| | | | | | metze Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s4:py/samba/drs_utils: pass down req/req_level to self.net.replicate_chunk()Stefan Metzmacher2011-08-121-1/+2
| | | | | | metze Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s4:libnet_vampire: don't keep the replication state if ↵Stefan Metzmacher2011-08-121-0/+30
| | | | | | | | | | | DRSUAPI_DRS_CRITICAL_ONLY was used In that case we have incomplete information and need to start from 0 in the next run. metze Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s4:libnet: passdown the DsGetNCChangesReq* to the libnet_BecomeDC_StoreChunk ↵Stefan Metzmacher2011-08-123-4/+72
| | | | | | | | handler metze Signed-off-by: Andrew Tridgell <tridge@samba.org>
* selftest:target/Samba4: use the correct configuration in setup_vampire_dc()Stefan Metzmacher2011-08-121-0/+2
| | | | | | | | This allows "TDB_NO_FSYNC=1 make -j test TESTS=vampire" to work. metze Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s3:libsmb: keep the request order in cli_smb_req_unset_pending()Stefan Metzmacher2011-08-121-1/+3
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Fri Aug 12 12:36:03 CEST 2011 on sn-devel-104
* s3:libsmb: use tevent_req_defer_callback() unless there's only one request ↵Stefan Metzmacher2011-08-121-4/+41
| | | | | | | | | | | | | | | | | in cli_smb_received() Callers of tevent_req_done() (or similar functions) have to return directly. Otherwise the callback could invalidate the current stack state, which is likely to trigger segfaults. If there was only one pending request and we just got the response for that one, we can use tevent_req_done() directly. Otherwise there're more pending requests and we need to call cli_state_receive_next() or we got the response for chained requests. Both means that we have to use tevent_req_defer_callback(). metze
* s3:libsmb: make use of cli_state_receive_next() in cli_smb_received()Stefan Metzmacher2011-08-121-17/+2
| | | | metze
* s3:libsmb: notify all request about failures in cli_smb_req_set_pending()Stefan Metzmacher2011-08-121-0/+7
| | | | | | | | It's up to the caller to notify the current request, but we have to notify all other pending requests if we're not able to read the next response from the server. metze
* s3:libsmb: split out cli_state_receive_next() from cli_smb_req_set_pending()Stefan Metzmacher2011-08-121-2/+25
| | | | metze
* s3:libsmb: use talloc_stackframe() in cli_smb_received()Stefan Metzmacher2011-08-121-8/+12
| | | | metze
* s3:libsmb: call cli_smb_req_unset_pending() before tevent_req_done() also ↵Stefan Metzmacher2011-08-121-0/+1
| | | | | | for chained requests metze
* s3:libsmb: reset the destructor in cli_smb_req_unset_pending()Stefan Metzmacher2011-08-121-1/+2
| | | | metze
* s3:libsmb: add cli_state_notify_pending() and use itStefan Metzmacher2011-08-121-25/+45
| | | | | | | | | | If we got a problem on the connection we need to notify every pending request. But we need to make use of tevent_req_defer_callback() before tevent_req_nterror(), otherwise the callback, triggered by tevent_req_nterror(), could invalidate the state of current caller, which will likely cause segfaults. metze
* s4-test: use standard process model for 'dc' serverAndrew Tridgell2011-08-121-20/+12
| | | | | | | | | | | this provides us with both 'standard' and 'single' process models in selftest, ensuring that we test the standard process model in the build farm Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Fri Aug 12 11:06:50 CEST 2011 on sn-devel-104
* socket-wrapped: added wrappers for dup() and dup2()Andrew Tridgell2011-08-122-2/+131
| | | | | | | | | | The Samba4 standard process model uses dup() on incoming sockets as an optimisation (it makes select() a tiny bit faster when used). Adding dup() to socket wrapper allows us to use the standard process model in selftest Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s3:selftest: run smbtorture3 CHAIN1/CHAIN2 testsStefan Metzmacher2011-08-122-2/+1
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Fri Aug 12 09:37:04 CEST 2011 on sn-devel-104
* tevent: don't force the nesting flag to false in the destructorAndrew Tridgell2011-08-121-3/+7
| | | | | | | | | | | the tevent destructor is called in tevent_re_initialise(), to reset the event context back to its original state for creating child processes. We need the nesting flag to stay the same Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Fri Aug 12 05:18:25 CEST 2011 on sn-devel-104
* s4-dbcheck: offer to fix dsServiceName to be in GUID formAndrew Tridgell2011-08-121-0/+43
| | | | | | this fixes the dsServiceName so it can handle server renames Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>