summaryrefslogtreecommitdiffstats
path: root/source4
Commit message (Collapse)AuthorAgeFilesLines
...
* s4-test: Use ldb_msg_normalize() in sqlite3 backendKamen Mazdrashki2010-07-191-4/+13
| | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4-test: Use ldb_msg_normalize() in torture/rpc/dssync.c testKamen Mazdrashki2010-07-191-2/+4
| | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4-dsdb: use ldb_msg_normalize() in ldbadd-process_file()Kamen Mazdrashki2010-07-191-1/+9
| | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4-dsdb: use ldb_msg_normalize() in source4/lib/ldb/common/ldb.cKamen Mazdrashki2010-07-191-5/+7
| | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4-dsdb: use ldb_msg_normalize() in source4/dsdb/schema/schema_set.cKamen Mazdrashki2010-07-191-5/+4
| | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4-ldb: Add ldb_msg_normalize() to accept a memory context from clientKamen Mazdrashki2010-07-192-12/+46
| | | | | | | | Previos implementation from ldb_msg_canonicalize() was moved into this function and now ldb_msg_canonicalize() is based on ldb_msg_normalize() Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4-ldb: Use _ldb_msg_add_el() in ldb_msg_add()Kamen Mazdrashki2010-07-191-4/+10
| | | | | | | Previous implementation was 'leaking' attribute name string, that is allocated by ldb_msg_add_empty() Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4-ldb: Use _ldb_msg_add_el() in ldb_msg_add_empty()Kamen Mazdrashki2010-07-191-22/+17
| | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4-ldb: Add separate function to add empty element into ldb_msgKamen Mazdrashki2010-07-191-0/+30
| | | | | | | | It just adds another element, nothing more. Caller is responsible to fill-in the added element and determine how to handle data allocation contexts. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4-ldb: Write more explanatory comment for ldb_msg_add()Kamen Mazdrashki2010-07-191-3/+8
| | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4-pyldb: Use ldb_msg_difference() in py_ldb_msg_diff()Kamen Mazdrashki2010-07-191-2/+10
| | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4-test: Use ldb_msg_difference() in torture/rpc/dssync.c testKamen Mazdrashki2010-07-191-3/+6
| | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4-tools: use ldb_msg_difference() in ldbedit - modify_record()Kamen Mazdrashki2010-07-191-6/+10
| | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4-dsdb/schema/schema_set.c: fix trailing spaces and comments spellingKamen Mazdrashki2010-07-191-30/+38
| | | | | | | | | Few comments split on several lines also... (Sorry Metze, I know you hate reviewing "and this, and that" type of patches, but those are just cosmetics) Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4-dsdb: use ldb_msg_difference() in source4/dsdb/schema/schema_set.cKamen Mazdrashki2010-07-191-2/+10
| | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4-ldb: Implement ldb_msg_difference() function to accept a memory context ↵Kamen Mazdrashki2010-07-192-23/+92
| | | | | | | | | | | | | | | from client Old implementation from ldb_msg_diff() was moved into this this function but with changed interface so that a memory context may be passed. ldb_msg_diff() function is now based on ldb_msg_difference(), which fixes a hidden leak - internal ldb_msg object (returned from ldb_msg_canonicalize) wasn't freed and stays attached to ldb_context for the connection lifetime. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4 nss_switch: fix build problem on computer without the iniparserMatthieu Patou2010-07-171-1/+1
| | | | | Although the build was ok on my workstation it appears that on build server it was not because the include path was not correct.
* s4-waf: add the missing bits for builing nss_winbind and pam_winbindMatthieu Patou2010-07-171-0/+1
| | | | This is something that was not picked up during the migration to waf
* s4 unittests: add blackblox test for ktpassMatthieu Patou2010-07-171-0/+1
|
* s4: create a simple version of ktpassMatthieu Patou2010-07-171-0/+93
| | | | | | This script is intended to be a replacement for the ktutil of Windows. It's use is for exporting keytab that will be used for kerberized services.
* s4-smbtorture: run all testcases with bigendian push as well in RPC-BIND.Günther Deschner2010-07-161-0/+3
| | | | Guenther
* s4-smbtorture: rearrange testlist in RPC-BIND.Günther Deschner2010-07-161-5/+23
| | | | Guenther
* 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