summaryrefslogtreecommitdiffstats
path: root/source4
Commit message (Collapse)AuthorAgeFilesLines
...
* s4-smbtorture: make sure to wipe out dcerpc auth flags before RPC-BIND starts.Günther Deschner2010-07-161-0/+1
| | | | Guenther
* smbtorture shell: Allow any config option to be set.James Peach2010-07-161-5/+6
| | | | | | Not sure what I was thinking by restricting the shell to "torture:" parametric options. It's really extemely useful to be able to set arbitrary options.
* s4-loadparm: 2nd half of lp_ to lpcfg_ conversionAndrew Tridgell2010-07-16252-1297/+1297
| | | | | | | this converts all callers that use the Samba4 loadparm lp_ calling convention to use the lpcfg_ prefix. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4-loadparm: change lp_*() to lpcfg_*() and provide s3 compatibility lp_*()Andrew Tridgell2010-07-162-553/+623
| | | | | | | | | | | | | | | This patch changes all Samba4 loadparm functions that take a loadparm_context or a loadparm_service structure to use a lpcfg_*() prefix. It then creates lp_*() functions which are wrappers around the lpcfg_*() functions. This should allow us to mix Samba3 and Samba4 code which uses loadparm calls. This first patch just makes the manual changes to the core loadparm code. The tree will not build with just this patch. The next patch replaces all of the callers, and was generated automatically with a perl script. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4:testprogs Operate the blackbox kinit and net tests using the :local configAndrew Bartlett2010-07-162-7/+5
| | | | | | | | | | | | | | This :local tells selftest.pl to use the local smb.conf for the test environment, not the generic client smb.conf This then makes the rest work properly - otherwise, it may attempt to connect to the wrong KDC for example. The only problem is that we can't test the 'net join' with this set, so this is removed from the test. The member server test environment checks this anyway. Andrew Bartlett
* s4:provision Handle machine account password changes while keeping keytabAndrew Bartlett2010-07-151-15/+23
| | | | | | | | | The challenge here is to update the existing record if it already exists, rather than deleting the old record. This ensures that the secrets.keytab handling code keeps the previous password in the keytab. Andrew Bartlett
* s4:pyldb whitespace fixAndrew Bartlett2010-07-151-1/+1
|
* s4:pyldb Fix memory handling for ldb_message_elementAndrew Bartlett2010-07-151-5/+10
| | | | | | | The problem here is that we need to use the array, not the individual message element as the memory context. Andrew Bartlett
* s4 upgradeprovision: Adapt the list of attribute modifiedMatthieu Patou2010-07-151-4/+25
| | | | | | | | | | | | | | * isMemberOfPartialAttributeSet is now allowed to be deleted (on schema objects) * attributeDisplayNames is now allowed to be added and modified (used on display specifiers) * spnMapping is now allowed to be altered on Directory Service objects * minPwdAge is now modified if the previous value was 0 We issue a clear information about the userControl attribute for administrator to invite the user to modify himself the value. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4 ldb modules: relax some tests about attributes that should not be hereMatthieu Patou2010-07-151-0/+9
| | | | | | | For attributes that we know that are harmless and that used to be stored in the ldb we relax the tests on the existance in a given objectclass. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4 upgradeprovision: Synchronize the calculated keyversionnumber with the ↵Matthieu Patou2010-07-151-1/+22
| | | | | | one previously stored Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4 upgradeprovision: do not copy RID Set it's automaticaly created by the ↵Matthieu Patou2010-07-151-24/+34
| | | | | | RID manager Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4 upgradeprovision: add function to backup the provision before updatingMatthieu Patou2010-07-151-152/+268
| | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4 upgradeprovision: fix whitespacesMatthieu Patou2010-07-151-13/+13
| | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4: Add unit test for increment_calculated_keyversion_numberMatthieu Patou2010-07-151-1/+25
| | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4 upgradeprovision: introduce a new function to update the field use for ↵Matthieu Patou2010-07-151-3/+37
| | | | | | | | | | calculating msds-keyversionnumber This function change the version field of the unicodePwd in the replPropertyMetaData so that the version is equal or superior to the reference value passed. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4 python: Add functions to samdb to manipulate version of ↵Matthieu Patou2010-07-152-1/+128
| | | | | | | | | | replPropertyMetaData attribute This change contains also helpers for attribute id to attribute oid conversion and from attribute id to attribute name. It brings also unit tests Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4 dsdb: Use the changereplmetadata controlMatthieu Patou2010-07-152-72/+222
| | | | | | | | This control allow to specify the replPropertyMetaData attribute to be specified on modify request. It can be used for very specific needs to tweak the content of the replication data. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4 dsdb: create a new control: changereplmetadataMatthieu Patou2010-07-152-0/+7
| | | | | | This control is designed to allow replmetadata to be specified Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* ldb: allow ldb_sequence_number to be called in pythonMatthieu Patou2010-07-151-0/+26
| | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4: Unit test update_machine_account_password through kinitMatthieu Patou2010-07-151-0/+1
| | | | | | | This patch is for testing the chgdcpass script which is mostly a call to update_machine_account_password. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4: Add a simple script to change dc passwordMatthieu Patou2010-07-151-0/+63
| | | | | | | This script will mostly be used by unit test (blackbox type) to test the change of the dc password Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4 provision: move update_machine_account_password to helpersMatthieu Patou2010-07-152-49/+51
| | | | | | This is to allow reuse of this function and also unit tests Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4: Added acl search tests for anonymous connection.Nadezhda Ivanova2010-07-141-83/+68
| | | | | | The tests make sure that we comply with dsHeuristics setting and restrict anonymous access to rootDSE. They will be enabled when the implementation is pushed. tests are verified against win2k8.
* Fixed system_session_anon to actually make an anonymous sessionNadezhda Ivanova2010-07-141-1/+1
| | | | | It seems that because the flag is false, this always used the supplied credentials rhather than establish anonymous connection.
* s4-smbtorture: add very simple RPC-BIND testsuite.Günther Deschner2010-07-144-2/+99
| | | | Guenther
* s4-smbtorture: rename rpc/bind.c to rpc/multi_bind.c.Günther Deschner2010-07-143-2/+2
| | | | Guenther
* s4: Reorganized dsHeuristics reset so the code can be reusedNadezhda Ivanova2010-07-131-53/+38
| | | | | Moved the setting of dsHeuristics to a method as soon we will have to set other values as well in different tests
* dcerpc: move dcerpc_pull_auth_trailer into a the common dcerpc_util.c fileSimo Sorce2010-07-131-67/+0
| | | | Signed-off-by: Günther Deschner <gd@samba.org>
* s4-dcerpc: move some util functions up to main librpc directory.Günther Deschner2010-07-132-31/+1
| | | | | | | Guenther Signed-off-by: Simo Sorce <idra@samba.org> Signed-off-by: Günther Deschner <gd@samba.org>
* s4:provision: remove --policy-guid and --policy-guid-dc cmdline optionsStefan Metzmacher2010-07-101-5/+0
| | | | metze
* s4:provision: also use fixed GUID names of the default group policies for ↵Stefan Metzmacher2010-07-101-2/+3
| | | | | | domain and domain controllers in tests metze
* s4 provision: use correct GUID for default policiesMatthieu Patou2010-07-101-2/+7
| | | | | | | | | The value of GUID for policy is not random for default policies, it is described here ("How Core Group Policy Works"): http://technet.microsoft.com/en-us/library/cc784268%28WS.10%29.aspx at paragraph System\Policies Container. Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s4 unittests: remove the provision directory before (re)generatingMatthieu Patou2010-07-103-0/+3
|
* s4 net: Add spn module to list/add/remove spn on objectsMatthieu Patou2010-07-104-0/+253
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s4:winbind: let WBSRV_SAMBA3_SET_STRING() initialize the whole bufferStefan Metzmacher2010-07-101-0/+1
| | | | | | | We should not send uninitialized bytes to the winbind pipe, this makes also makes valgrind very unhappy. metze
* s4:wb_cmd_list_groups: also handle NT_STATUS_NO_MORE_ENTRIESStefan Metzmacher2010-07-101-1/+2
| | | | metze
* s4:wb_cmd_list_users: also handle NT_STATUS_NO_MORE_ENTRIESStefan Metzmacher2010-07-101-1/+2
| | | | metze
* s4:libnet_GroupList: allocate children strings on the correct talloc parentStefan Metzmacher2010-07-101-2/+2
| | | | | | | Otherwise the _recv() function won't move the children strings to the callers memory context and let the callers crash. metze
* s4:libnet_UserList: allocate children strings on the correct talloc parentStefan Metzmacher2010-07-101-2/+2
| | | | | | | Otherwise the _recv() function won't move the children strings to the callers memory context and let the callers crash. metze
* s4:drepl_notify: hide some bugs from the make test outputStefan Metzmacher2010-07-091-1/+12
| | | | | | | | | | | | | | It's useless to get messages like this every few seconds: dreplsrv_notify: Failed to send DsReplicaSync to edbf4745-2966-49a7-8653-99200f1c9430._msdcs.samba2003.example.com for CN=Configuration,DC=samba2003,DC=example,DC=com - NT_STATUS_OBJECT_NAME_NOT_FOUND : WERR_BADFILE We have a non bug regarding non-linked DN attributes and changes of the target DN. metze
* s4:drsuapi: don't return all linked attributes at the same timeStefan Metzmacher2010-07-091-8/+51
| | | | | | | | | | | | | Windows gives them in chunks, but I don't know the correct rule to calculate the chunk size. For now I'll use 1500 as the max size. Windows isn't happy when it gets ~ 100000 linked attributes in one response. It corrupts its directory index and later moves some objects to the LostAndFound folder. metze
* s4:selftest: run RPC-SAMR-LARGE-DC against the vampire_dc to test the rid ↵Stefan Metzmacher2010-07-091-0/+5
| | | | | | alloc code metze
* s4:dsdb/repl: expose drsuapi_DsExtendedError to the caller (e.g. the ↵Stefan Metzmacher2010-07-094-6/+13
| | | | | | ridalloc client) metze
* s4:drepl_out_helpers: don't return NT_STATUS_OK, if an extended operation ↵Stefan Metzmacher2010-07-091-1/+14
| | | | | | doesn't return success metze
* s4:drepl_ridalloc: only ask the rid master for a new rid pool if we need to.Stefan Metzmacher2010-07-091-9/+38
| | | | | | | | | | if we are at least half-exhausted then ask for a new pool. This fixes a bug where we're sending unintialized alloc_pool variable as exop->fsmo_info to the rid master and get back DRSUAPI_EXOP_ERR_PARAM_ERROR. metze
* s4:dsdb:ridalloc: use ridalloc_ridset_values infrastructure in ↵Stefan Metzmacher2010-07-091-74/+56
| | | | | | ridalloc_allocate_rid_pool_fsmo() metze
* s4:dsdb:ridalloc: use ridalloc_ridset_values infrastructure in ↵Stefan Metzmacher2010-07-091-80/+102
| | | | | | ridalloc_allocate_rid() metze
* s4:dsdb:ridalloc: use ridalloc_ridset_values infrastructure in ↵Stefan Metzmacher2010-07-091-19/+14
| | | | | | ridalloc_create_rid_set_ntds() metze
* s4:dsdb:ridalloc: add ridalloc_ridset_values infrastructureStefan Metzmacher2010-07-091-0/+83
| | | | metze