Stefan Metzmacher
ca173923a3
dsdb/tests/ldap: fix test_ldapServiceName against w2k8r2
...
Bug: https://bugzilla.samba.org/show_bug.cgi?id=10193
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2013-10-10 08:35:10 +02:00
Andrew Bartlett
68f8f4ec4d
dsdb-tests ldap.py: Add test for usn behaviour on certain changes
...
This probes when the usn is updated, and when it is not.
Andrew Bartlett
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Wed Jun 12 11:54:01 CEST 2013 on sn-devel-104
2013-06-12 11:54:01 +02:00
Andrew Bartlett
51298d33dd
dsdb-tests ldap.py: Fix quoting of print statements
...
While python didn't mind (oddly) it really confused my editor.
Andrew Bartlett
Reviewed-by: Stefan Metzmacher <metze@samba.org>
2013-06-12 10:02:08 +02:00
Matthias Dieter Wallnöfer
d86e701b7c
s4:ldap.py - re-introduce the "(dn=CN=ldaptestUSER3,CN=Users,DC=wallnoefer2,DC=local)" test
...
This syntax is not supported by Windows AD and should also be denied by
s4/LDB.
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Mon Mar 26 02:30:53 CEST 2012 on sn-devel-104
2012-03-26 02:30:53 +02:00
Matthias Dieter Wallnöfer
fa1c7615d0
s4:ldap.py - test the already mentioned structural object class sorting behaviour
...
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2012-03-26 00:57:29 +02:00
Andrew Tridgell
ba41389d3d
test: fixed several tests to use samba.tests
...
this fixes error checking. Test failures were not being detected
otherwise
Pair-Programmed-With: Amitay Isaacs <amitay@gmail.com>
2011-11-10 14:24:21 +11:00
Matthias Dieter Wallnöfer
d95b4c9497
s4:ldap.py - fix up the dSHeuristics test to check for the right behaviour
...
Reviewed-by: abartlet
2011-10-27 18:52:29 +02:00
Matthias Dieter Wallnöfer
bb02aa5e00
s4:ldap.py - we test the creation of secrets already in the "systemOnly" testcase
...
Reviewed-by: abartlet
2011-10-27 18:52:29 +02:00
Matthias Dieter Wallnöfer
6fc55cb9f2
s4:ldap.py - enhance and fix up the object class test
...
Also address the problem described in bug #8486 .
Reviewed-by: abartlet
2011-10-27 18:52:29 +02:00
Matthias Dieter Wallnöfer
c9ac028951
s4:ldap.py - fix up the UTF8 tests
...
Reviewed-by: abartlet
2011-10-27 18:52:28 +02:00
Matthias Dieter Wallnöfer
5875661cf2
s4:ldap.py - reactivate some assertions in "test_all"
...
There should always be one result on both s4 and Windows.
Reviewed-by: abartlet
2011-10-27 18:52:28 +02:00
Jelmer Vernooij
1417ea1eed
Remove pointless exception catching in tests.
...
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Sun Oct 9 00:00:26 CEST 2011 on sn-devel-104
2011-10-09 00:00:25 +02:00
Andrew Tridgell
966b5d5de2
pyldb: fixed places where we try to concatenate a Dn with a string
...
you need to either use str(dn) or use %s in a format string
2011-09-19 10:57:03 +10:00
Andrew Tridgell
4577ee1f95
s4-dsdb: use get_config_basedn() in python tests
...
we can't just append CN=Configuration to the basedn, as that won't
give the right configuration DN for a subdomain of a forest
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-09-19 10:57:03 +10:00
Andrew Tridgell
5f771b301d
ldb: fixed --paged option in ldb tools
...
we were sometimes using 'paged_result' and sometimes using 'paged_results'.
The latter seemed to be more common, so I changed the two places that
used the 'paged_result' string to 'paged_results'
2011-04-07 10:51:30 +10:00
Matthieu Patou
88d907189c
pyldb: add more tests for control manipulation
2011-03-20 11:27:26 +01:00
Matthias Dieter Wallnöfer
eade61ae03
s4:operational LDB module - fix attribute names to be right up/down-cased
...
Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Fri Mar 4 23:56:07 CET 2011 on sn-devel-104
2011-03-04 23:56:07 +01:00
Matthias Dieter Wallnöfer
5a722f187f
s4:ldap.py - rootdse tests should search for the rootDSE not the default DN
...
Reviewed by: Tridge
2011-03-04 23:09:53 +01:00
Matthias Dieter Wallnöfer
71df279f92
s4:ldap.py - add a test in order to show the operational module fixed
...
Reviewed by: Tridge
2011-03-04 23:09:44 +01:00
Matthias Dieter Wallnöfer
dabed32ffe
s4:ldap.py - other important RDN check testcases
...
Reviewed by: Tridge
2011-03-04 22:07:24 +01:00
Matthias Dieter Wallnöfer
2275bfb82d
s4:ldap.py - remove a debug output
...
This has only been needed for developing this testcase and has been
forgotten to be removed afterwards.
Reviewed by: Tridge
2011-03-04 22:07:24 +01:00
Matthieu Patou
175227bc71
pyldb: add tests for getting control results
2011-02-21 10:56:00 +03:00
Andrew Bartlett
f19c1e37c7
s4-dsdb Add tests to ensure we don't break the rootDSE function levels again
...
This both checks that the levels make sense, and they match what they
should be based on in the DB.
Andrew Bartlett
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Wed Feb 2 06:09:53 CET 2011 on sn-devel-104
2011-02-02 06:09:53 +01:00
Andrew Bartlett
7faa3be453
s4-python Ensure we add the Samba python path first.
...
This exact form of the construction is important, and we match on it
in the installation scripts.
Andrew Bartlett
2011-02-02 15:21:12 +11:00
Matthias Dieter Wallnöfer
932911e1e1
s4:ldap.py - check the write protection on LSA objects
...
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Tue Jan 25 13:09:41 CET 2011 on sn-devel-104
2011-01-25 13:09:41 +01:00
Matthias Dieter Wallnöfer
6857bbc899
dsdb:ldap.py - transform a test call into the new "msg.add" syntax
...
Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Wed Dec 22 13:05:53 CET 2010 on sn-devel-104
2010-12-22 13:05:53 +01:00
Kamen Mazdrashki
2e259de084
s4-dsdb/tests/python: Explicitly pass comamnd line LoadParm() instance to system_session()
...
Otherwise system_session() creates a LoadParm() instance
which resets certain global parameters to their defaults
from smb.conf ("log level" for instance)
Autobuild-User: Kamen Mazdrashki <kamenim@samba.org>
Autobuild-Date: Wed Dec 15 15:10:47 CET 2010 on sn-devel-104
2010-12-15 15:10:47 +01:00
Matthias Dieter Wallnöfer
e9f019e28c
s4:dsdb tests - make use of "ldb.get_domain_sid()"
2010-11-27 15:17:18 +01:00
Nadezhda Ivanova
d21d3e7db8
s4-tests: Modified ldap.py to use samba.tests.delete_force
2010-11-25 01:12:18 +02:00
Nadezhda Ivanova
439ff8717d
s4-tests: Ldap tests now use the get_dsheuristics and set_dsheuristics from SamDB.
...
Autobuild-User: Nadezhda Ivanova <nivanova@samba.org>
Autobuild-Date: Tue Nov 23 11:08:37 CET 2010 on sn-devel-104
2010-11-23 11:08:36 +01:00
Matthias Dieter Wallnöfer
8585de8881
ldb:rdn_name LDB module - add more RDN name constraints
...
And some small cleanups
Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Sat Nov 20 00:06:35 CET 2010 on sn-devel-104
2010-11-20 00:06:35 +01:00
Matthias Dieter Wallnöfer
8b7f23d644
s4:dsdb tests - use even more already defined pyldb functions to retrieve NCs
2010-11-19 12:07:06 +01:00
Matthias Dieter Wallnöfer
4c666f3e0a
s4:dsdb python tests - use "ldb.domain_dn"
...
By inspiration of Nadya's patches
2010-11-18 17:03:20 +00:00
Matthias Dieter Wallnöfer
113a9c1806
s4:objectclass LDB module - multiple "objectClass" change elements are unfortunately still allowed
...
The test message has been compressed - therefore I've now used "modify_ldif".
2010-11-13 12:32:34 +01:00
Matthias Dieter Wallnöfer
37bd313304
s4:objectclass LDB module - we should not simply ignore additional "objectClass" attribute changes
...
There first one we perform all other tentatives are terminated with
ERR_ATTRIBUTE_OR_VALUE_EXISTS (tested against Windows).
Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Fri Nov 12 19:39:07 UTC 2010 on sn-devel-104
2010-11-12 19:39:06 +00:00
Matthias Dieter Wallnöfer
5585591b2e
s4:samldb/objectclass_attrs LDB modules - move "description" logic from "objectclass_attrs" into "samldb"
...
This according to an answer from dochelp is SAM specific behaviour.
2010-11-12 18:55:04 +00:00
Matthias Dieter Wallnöfer
4b97e7c8f2
s4:objectguid/repl_meta_data LDB module - deny "objectGUID" updates
...
Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Mon Nov 8 10:36:50 UTC 2010 on sn-devel-104
2010-11-08 10:36:49 +00:00
Matthias Dieter Wallnöfer
9ba7ce6acf
s4:ldap.py - add more "objectGUID" related tests
...
Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Sun Nov 7 21:12:03 UTC 2010 on sn-devel-104
2010-11-07 21:12:03 +00:00
Matthias Dieter Wallnöfer
9057e603cf
s4:descriptor LDB module - make the "nTSecurityDescriptor" attribute fully behave as in AD
...
- fix crash when provided "nTSecurityDescriptor" attribute is empty
- print out the correct error codes if it's provided multi-valued
- simplify the "recalculate_sd" control handling
2010-11-07 19:09:29 +01:00
Matthias Dieter Wallnöfer
39ed810feb
s4:ldap.py - enhance the "distinguishedName" tests
...
The "dn" shortcut isn't supported by AD.
2010-11-06 21:10:40 +01:00
Matthias Dieter Wallnöfer
83f78a30a0
s4:ldap.py/passwords.py - just use objectclass "user" for users
...
Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Thu Nov 4 21:09:00 UTC 2010 on sn-devel-104
2010-11-04 21:09:00 +00:00
Jelmer Vernooij
0baa1fb4e4
pydsdb: Import testtools before subunit for those that don't have
...
testtools installed.
Also, cleanup some imports.
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Wed Nov 3 17:47:55 UTC 2010 on sn-devel-104
2010-11-03 17:47:54 +00:00
Matthias Dieter Wallnöfer
9d4eeaeb19
s4:objectclass LDB module - the structural objectclass has always to be specified
...
Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Wed Nov 3 16:20:55 UTC 2010 on sn-devel-104
2010-11-03 16:20:55 +00:00
Nadezhda Ivanova
3f4380993e
s4-tests: Tests for the dSHeuristics attribute value restrictions
...
Autobuild-User: Nadezhda Ivanova <nivanova@samba.org>
Autobuild-Date: Wed Nov 3 13:58:42 UTC 2010 on sn-devel-104
2010-11-03 13:58:42 +00:00
Matthias Dieter Wallnöfer
02547de5f9
s4:ldap.py/sam.py - simplify the objectclass specifications
...
- For user accounts we only need to specify "user" ("person" is an inherited
objectclass)
- Don't use the brackets when we have only one objectclass specified
2010-11-01 12:34:51 +01:00
Matthias Dieter Wallnöfer
1b68910d65
s4:ldap.py - add a test for attribute ranges - still very basic
...
And partially outcommented.
Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Tue Oct 26 18:53:12 UTC 2010 on sn-devel-104
2010-10-26 18:53:12 +00:00
Matthias Dieter Wallnöfer
a839422fc5
s4:ldap.py - enhance and activate the "description" attribute test
...
It tests only the "description" attribute in particular since it behaves
differently from all others.
2010-10-26 18:12:00 +00:00
Matthias Dieter Wallnöfer
c3fa990f21
s4:ldap.py - prove the denied multi-valued replace requests
...
Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Mon Oct 25 11:49:19 UTC 2010 on sn-devel-104
2010-10-25 11:49:19 +00:00
Matthias Dieter Wallnöfer
09ce56d957
s4:ldap.py - test the "isCriticalSystemObject" behaviour
2010-10-13 13:35:21 +00:00
Matthias Dieter Wallnöfer
584ac76a4f
s4:ldap.py - split it up and move SAM related stuff to sam.py
...
ldap.py would still need some additional split-up but it's a start.
Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Fri Oct 8 14:05:18 UTC 2010 on sn-devel-104
2010-10-08 14:05:17 +00:00