summaryrefslogtreecommitdiffstats
path: root/source4/dsdb/tests
Commit message (Collapse)AuthorAgeFilesLines
* s4:samldb LDB module - make sure to not add identical ↵Matthias Dieter Wallnöfer2012-05-041-4/+47
| | | | | | | | | | "servicePrincipalName"s more than once The service principal names need to be case-insensitively unique, otherwise we end up in a LDB ERR_ATTRIBUTE_OR_VALUE_EXISTS error. This issue has been discovered on the technical mailing list (thread: cannot rename windows xp machine in samba4) when trying to rename a AD client workstation.
* s4:samldb LDB module - implement "fSMORoleOwner" attribute protectionMatthias Dieter Wallnöfer2012-04-301-0/+77
| | | | | | | | | This is a very essential attribute since it references to various domain master roles (PDC emulator, schema...) depending on which entry it has been set. Incautious modifications can cause severe problems. Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Mon Apr 30 02:04:24 CEST 2012 on sn-devel-104
* s4:ldap.py - re-introduce the ↵Matthias Dieter Wallnöfer2012-03-261-11/+4
| | | | | | | | | | | | | "(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
* LDB/s4 - do not use the "(dn=...)" syntax on filters anymoreMatthias Dieter Wallnöfer2012-03-261-5/+5
| | | | | | | Make it AD-compatible using "(distinguishedName=...)". Reviewed-by: Andrew Bartlett <abartlet@samba.org> Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4:ldap.py - test the already mentioned structural object class sorting ↵Matthias Dieter Wallnöfer2012-03-261-0/+15
| | | | | | | behaviour Reviewed-by: Andrew Bartlett <abartlet@samba.org> Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4-selftest: Avoid running kinit for each new connectionAndrew Bartlett2012-02-203-3/+6
| | | | | | | | | | | | | | | | Kerberos is efficient when the credentials cache is set up once and then reused. Sadly this test creates a user, does a test and deletes the user, over and over. For this, using NTLM saves a little time, but we also stress the rest of the DB, and should rework the test. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Mon Feb 20 00:49:56 CET 2012 on sn-devel-104
* python: Change except: statement to except Exception:Amitay Isaacs2012-01-241-1/+1
| | | | | | | | This way we only catch true exceptions and keyboard interrupts are not caught here. Autobuild-User: Amitay Isaacs <amitay@samba.org> Autobuild-Date: Tue Jan 24 03:32:40 CET 2012 on sn-devel-104
* Remove broken code - these lines use undefined symbols.Jelmer Vernooij2011-11-141-7/+2
|
* test: fixed several tests to use samba.testsAndrew Tridgell2011-11-105-8/+9
| | | | | | | this fixes error checking. Test failures were not being detected otherwise Pair-Programmed-With: Amitay Isaacs <amitay@gmail.com>
* s4-sites: Document, fix under optimal coding, use exceptionsMatthieu Patou2011-11-021-18/+18
| | | | | Autobuild-User: Matthieu Patou <mat@samba.org> Autobuild-Date: Wed Nov 2 22:35:00 CET 2011 on sn-devel-104
* s4-selftest: add unit tests for sites's function in pythonMatthieu Patou2011-11-021-0/+125
|
* s4:ldap.py - fix up the dSHeuristics test to check for the right behaviourMatthias Dieter Wallnöfer2011-10-271-15/+27
| | | | Reviewed-by: abartlet
* s4:ldap.py - we test the creation of secrets already in the "systemOnly" ↵Matthias Dieter Wallnöfer2011-10-271-9/+0
| | | | | | testcase Reviewed-by: abartlet
* s4:ldap.py - enhance and fix up the object class testMatthias Dieter Wallnöfer2011-10-271-6/+95
| | | | | | Also address the problem described in bug #8486. Reviewed-by: abartlet
* s4:ldap.py - fix up the UTF8 testsMatthias Dieter Wallnöfer2011-10-271-7/+8
| | | | Reviewed-by: abartlet
* s4:ldap.py - reactivate some assertions in "test_all"Matthias Dieter Wallnöfer2011-10-271-2/+2
| | | | | | There should always be one result on both s4 and Windows. Reviewed-by: abartlet
* Remove pointless exception catching in tests.Jelmer Vernooij2011-10-092-10/+4
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sun Oct 9 00:00:26 CEST 2011 on sn-devel-104
* pyldb: fixed places where we try to concatenate a Dn with a stringAndrew Tridgell2011-09-192-16/+16
| | | | you need to either use str(dn) or use %s in a format string
* s4-dsdb: use get_config_basedn() in python testsAndrew Tridgell2011-09-194-18/+18
| | | | | | | 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>
* s4-acl: use dnsforest not dnsdomain for GC namesAndrew Tridgell2011-08-251-3/+3
|
* s4-acl-test: use symbolic names for groupTypeAndrew Tridgell2011-08-091-11/+16
| | | | clearer than magic numbers
* s4:sam.py - uncomment/enhance some account type testsMatthias Dieter Wallnöfer2011-05-251-30/+48
| | | | Reviewed-by: abartlet
* s4:sam.py - tests for "isCriticalSystemObject" attributeMatthias Dieter Wallnöfer2011-05-251-0/+132
| | | | Reviewed-by: abartlet
* s4:sam.py - unchanged "primaryGroupID" when account type remains the sameMatthias Dieter Wallnöfer2011-05-251-0/+38
| | | | | | Enhance the testcase with a workstation example. Reviewed-by: abartlet
* s4:sam.py - add tests to check that setting "userAccountValue" on usersdon't ↵Matthieu Patou2011-05-211-2/+40
| | | | | | | | | | | | impact the "primaryGroupID" attribute Notice: The domain administrators groups isn't referenced as "Domain Admins" since this name could differ. Signed-off-by: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Sat May 21 19:19:57 CEST 2011 on sn-devel-104
* s4-dsdb: add unit tests for dirsync controlMatthieu Patou2011-05-211-0/+713
| | | | Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s4:token_group.py python test - fix typosMatthias Dieter Wallnöfer2011-04-291-2/+2
|
* ldb: fixed --paged option in ldb toolsAndrew Tridgell2011-04-071-1/+1
| | | | | | 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'
* pyldb: add more tests for control manipulationMatthieu Patou2011-03-201-0/+4
|
* s4:operational LDB module - fix attribute names to be right up/down-casedMatthias Dieter Wallnöfer2011-03-041-3/+3
| | | | | Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Fri Mar 4 23:56:07 CET 2011 on sn-devel-104
* s4:ldap.py - rootdse tests should search for the rootDSE not the default DNMatthias Dieter Wallnöfer2011-03-041-1/+1
| | | | Reviewed by: Tridge
* s4:ldap.py - add a test in order to show the operational module fixedMatthias Dieter Wallnöfer2011-03-041-0/+14
| | | | Reviewed by: Tridge
* s4:ldap.py - other important RDN check testcasesMatthias Dieter Wallnöfer2011-03-041-0/+67
| | | | Reviewed by: Tridge
* s4:ldap.py - remove a debug outputMatthias Dieter Wallnöfer2011-03-041-1/+0
| | | | | | | This has only been needed for developing this testcase and has been forgotten to be removed afterwards. Reviewed by: Tridge
* pyldb: add tests for getting control resultsMatthieu Patou2011-02-211-0/+8
|
* s4-unittests: replace assertEquals(res, []) by assertEquals(len(res), 0)Matthieu Patou2011-02-212-25/+25
|
* s4:sam.py - add another "description" test caseMatthias Dieter Wallnöfer2011-02-151-0/+13
| | | | | | | Exactly for the syntax which is needed by Volker in s3's "pdb_ads". Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Tue Feb 15 16:10:15 CET 2011 on sn-devel-104
* s4-tests: Some tests that prove behavior for INHERITED user-provided ACEs is ↵Nadezhda Ivanova2011-02-101-0/+34
| | | | | | | different if the P flag is set. Autobuild-User: Nadezhda Ivanova <nivanova@samba.org> Autobuild-Date: Thu Feb 10 12:31:34 CET 2011 on sn-devel-104
* s4-dsdb Add tests to ensure we don't break the rootDSE function levels againAndrew Bartlett2011-02-021-0/+33
| | | | | | | | | | 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
* s4-python Ensure we add the Samba python path first.Andrew Bartlett2011-02-0211-11/+11
| | | | | | | This exact form of the construction is important, and we match on it in the installation scripts. Andrew Bartlett
* s4:ldap.py - check the write protection on LSA objectsMatthias Dieter Wallnöfer2011-01-251-5/+30
| | | | | | | 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
* s4-dsdb Don't use None as the input to the GENSEC loop in tokengroups testAndrew Bartlett2011-01-191-1/+1
| | | | | | The input to gensec.update() should always be a string. Andrew Bartlett
* s4-dsdb Add PAC validation test to tokengroups test.Andrew Bartlett2011-01-191-20/+78
| | | | | | | | | | | | | This confirms that the groups obtained from a Kerberos PAC match those that a manual search of a target LDAP server would reveal. This should allow mixing of a KDC specified by krb5.conf to test Samba or Windows alternatly. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Wed Jan 19 13:13:48 CET 2011 on sn-devel-104
* s4-dsdb Add a test of the tokenGroups behaviour on the user's DN.Andrew Bartlett2011-01-191-3/+21
| | | | Andrew Bartlett
* s4-tests: Added a test for correct inheritance of IO flagged ACEs.Nadezhda Ivanova2011-01-181-0/+18
| | | | | Autobuild-User: Nadezhda Ivanova <nivanova@samba.org> Autobuild-Date: Tue Jan 18 15:53:46 CET 2011 on sn-devel-104
* s4:urgent_replication.py - remove a now superflous RELAX controlMatthias Dieter Wallnöfer2011-01-141-1/+1
| | | | | | | | The LSA object creation protection changed to the trusted/untrusted connection model. Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Fri Jan 14 19:30:52 CET 2011 on sn-devel-104
* s4:samldb LDB module - fix "userAccountControl" handlingMatthias Dieter Wallnöfer2011-01-141-7/+19
| | | | | | | | "UF_ACCOUNTDISABLE" is only added automatically if no "userAccountControl" flags are set on LDAP add operations. Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Fri Jan 14 18:29:07 CET 2011 on sn-devel-104
* s4-test: added a tokengroups testAndrew Tridgell2011-01-141-0/+100
| | | | | | | this tests that the remote tokenGroups match the internally calculated ones Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-tests: Tests for expansion of ACEs containing generic information.Nadezhda Ivanova2011-01-111-2/+59
| | | | | Autobuild-User: Nadezhda Ivanova <nivanova@samba.org> Autobuild-Date: Tue Jan 11 12:10:25 CET 2011 on sn-devel-104
* acl tests: Fix import.Jelmer Vernooij2011-01-061-4/+7
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Thu Jan 6 16:07:49 CET 2011 on sn-devel-104