Andrew Tridgell
818d98acf1
s4-ldap: test the rDN size limit
2009-10-15 15:54:40 +11:00
Matthias Dieter Wallnöfer
30faff7567
s4:ldap.py - Further enhancements
...
- Enhance test for "distinguishedName"
- Add a test for single-valued attributes
- Add a test for multi-valued attributes
- Add a test for empty messages
- Add a test for empty attributes
2009-10-08 00:18:07 +02:00
Matthias Dieter Wallnöfer
6a4efccb38
s4:ldap.py - commented out the UTF8 tests (and fixed some deletion DNs)
2009-10-03 16:54:19 +02:00
Matthias Dieter Wallnöfer
be938ab44b
s4:ldap.py - add tests for valid parent and RDN
2009-10-03 12:48:51 +02:00
Matthias Dieter Wallnöfer
2904f3378d
s4:ldap.py - add a test for the "systemOnly" classes
2009-10-03 10:57:14 +02:00
Matthias Dieter Wallnöfer
e218a529e0
s4:ldap.py - add a very special rename test (with invalid - empty RDN)
2009-10-02 21:27:46 +02:00
Matthias Dieter Wallnöfer
a076d9fb59
s4:ldap.py - major enhancements
...
- Clean up and reorder it a bit
- Test which adds invalid attributes
- Test which makes sure that the 'distinguishedName' attribute cannot be modified
- Test which makes sure that we cannot change the RDN/'name' attribute through a modify request
2009-10-02 19:29:31 +02:00
Matthieu Patou
9a9202e7bd
pythonbindings: allow add() to have an array of controls as second parameter
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2009-09-26 01:31:38 +02:00
Nadezhda Ivanova
025590e7a4
Merge branch 'master' of git://git.samba.org/samba
2009-09-20 17:43:46 -07:00
Nadezhda Ivanova
6283f2caaa
Initial implementation of security descriptor creation in DS
...
TODO's:
ACE sorting and clarifying the inheritance of object specific ace's.
2009-09-20 15:16:17 -07:00
Matthias Dieter Wallnöfer
1516f67356
s4:sec_descriptor - fix constant
2009-09-20 23:16:04 +02:00
Zahari Zahariev
fec33db90e
Tests for descriptor inheritance
...
Signed-off-by: Nadezhda Ivanova <nadezhda.ivanova@postpath.com>
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2009-09-16 07:51:45 -07:00
Jelmer Vernooij
667b825d18
pyldb: Don't segfault when invalid type is specified to Dn.get().
...
(#6722 )
2009-09-14 17:03:30 +02:00
Jelmer Vernooij
08ce8a4752
Mark test_security_descriptor_add_neg as known failing (for now).
2009-09-08 23:58:52 +02:00
Zahari Zahariev
af0946c101
Basic tests for nTSceurityDescriptor both SDDL and BASE64 format
...
These are updated second eddition unittests using ldb.add_ldif()
and ldb.modify_ldif(). Unittests are found to work when using
the right local domain SID. Negative test separated.
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2009-09-08 23:58:52 +02:00
Matthias Dieter Wallnöfer
fc90586a42
s4:ldap.py - Adds a test for the primary group behaviour
...
This passes the Windows Server behaviour. Also SAMBA 4 should match it.
Also some small enhancement.
2009-09-07 08:37:25 +02:00
Andrew Bartlett
425386ff61
s4:ldb Add ldb_ldif_write_string() and python wrappers
...
This allows us to turn a python LdbMessage back into a string.
Andrew Bartlett
2009-08-26 15:59:00 +10:00
Andrew Bartlett
3ed33813bb
s4:ldb Add hooks to get/set the flags on a ldb_message_element
...
Also add tests to prove that we got this correct, and correct the
existing tests which used the wrong constants.
Andrew Bartlett
2009-08-26 15:07:50 +10:00
Andrew Bartlett
7234a24f82
s4:ldb Add python binding and test for ldb_msg_diff()
2009-08-24 20:24:18 +10:00
Andrew Tridgell
341477347d
fixed the updateNow schema test to use a canonical OID
...
The expression time.strftime("%s", time.gmtime())[3:] leads to a
string with a leading 0. When added then read back from the prefix map
this leads to a different string, so it is never found.
Use the simpler str(random.randint(a,b)) expression instead
2009-08-17 11:14:07 +10:00
Matthias Dieter Wallnöfer
44dfb2902e
s4: Better way to call "dom_sid_to_rid" from ldap.py
2009-08-14 00:14:15 +02:00
Matthias Dieter Wallnöfer
159a33a7d4
s4:test for "primaryGroupToken"
...
Tests for the right behaviour of this introduced constructed attribute.
Since we don't support the read-only-ness of those attributes yet, I commented
some lines out.
Also I had to add a function for python which converts domain SIDs in RIDs.
And a small fix for the "groupType" test.
2009-08-11 12:59:17 +02:00
Jelmer Vernooij
bb944dcf64
pyldb: Raise proper exception when attempting to assign a string to a dn
...
attribute.
2009-08-03 18:15:16 +02:00
Anatoliy Atanasov
e3631da158
Test for schemaUpdateNow command
2009-07-08 14:40:20 +10:00
Andrew Bartlett
5c19c60c57
s4:ldb Add test for integer normalisation behaviour
...
This uses groupType as the example, but this actually applies to all
integer types in AD.
Andrew Bartlett
2009-06-19 11:32:01 +10:00
Jelmer Vernooij
832b929dde
pyldb: Fix three more (minor) memory leaks.
2009-06-17 20:45:40 +02:00
Jelmer Vernooij
f1561cd72b
pyldb/tests: Use different dn's everywhere, to easily spot which test is
...
breaking in gdb.
2009-06-17 20:45:39 +02:00
Jelmer Vernooij
2f27d0c762
pyldb: Support getting the parent of special DNs without segfaulting.
...
Found by: Андрей Григорьев <andrew@ei-grad.ru>
2009-06-17 20:45:37 +02:00
Andrew Bartlett
82ad66e9df
s4:ldb Make it possible to re-run ldap.py again
...
The parentGUID test didn't clean up after itself correctly.
Andrew Bartlett
2009-04-14 10:52:33 +10:00
Jelmer Vernooij
8f4e4d2e30
Adapt Zahari's test to the generic LDB Python tests.
2009-03-20 22:58:15 +01:00
Andrew Tridgell
a1ebb85020
added support for parentGUID
...
This is made up of 4 parts:
1) change our schema to include the parentGUID attribute type
2) in the add hook in the objectclass module, get the objectGUID of
the parent and add it to the message as parentGUID
3) in the rename hook in the objectclass module, get the objectGUID
of the new parent, and insert an async modify request after the
renmam is done
4) added a simple test suite
2009-03-17 14:18:53 +11:00
Jelmer Vernooij
e548660c87
Fix ldap.py test on systems that *can* find the record (the search fails here locally).
2009-01-08 12:51:19 +01:00
Jelmer Vernooij
ea1ff069a5
Fix ldap.py test.
2009-01-07 11:06:00 +01:00
Andrew Bartlett
59f8c1d98a
Use new error constant (missing from 6efb7ff9)
2009-01-07 17:09:26 +11:00
Jelmer Vernooij
6efb7ff981
Fix various Python-related bugs.
2008-12-21 07:34:27 +01:00
Jelmer Vernooij
eeb25cf548
Fix more introduced regressions in new bindings.
2008-12-21 04:36:16 +01:00
Jelmer Vernooij
94ed43390c
Fix all pyldb tests except for modules.
2008-12-20 22:21:39 +01:00
Jelmer Vernooij
759a3bcc88
Merge branch 'pyregistry' of git://git.samba.org/jelmer/samba
...
Conflicts:
source4/lib/ldb/ldb_wrap.c
2008-12-19 23:55:45 +01:00
Jelmer Vernooij
5076c64d43
Merge branch 'master' of ssh://git.samba.org/data/git/samba
2008-12-19 21:47:45 +01:00
Jelmer Vernooij
6998ef4fe0
Avoid use of parentheses in Python import statements, as it's not supported by Python2.3.
2008-12-19 21:47:31 +01:00
Jelmer Vernooij
04bef7fe2a
Fix more tests.
2008-12-19 16:08:35 +00:00
Jelmer Vernooij
e0672ae29b
Remove swig support from standalone ldb build.
2008-12-19 01:24:00 +00:00
Andrew Bartlett
eb3714acfa
s4:ldb: add some python tests for extended dns
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2008-12-17 12:29:29 +11:00
Andrew Bartlett
004bbbcd3b
Assert that the server provides allowedAttributes (etc) on each entry
...
This attribute is critical for the operation of nearly all the
Microsoft Mangement Console tools
Andrew Bartlett
2008-10-16 12:26:03 +11:00
Jelmer Vernooij
f8a02a1a80
Fix subunit files location after cherrypicks.
2008-10-08 03:33:38 +02:00
Simo Sorce
7b20cbb115
Fix python test, we can't check only the first member, because the order
...
is not guaranteed
2008-09-24 01:42:30 -04:00
Jelmer Vernooij
0e2928f946
Don't expose ldb_request in the Python API but rather use regular
...
parameters.
2008-09-20 15:06:26 +02:00
Jelmer Vernooij
acae07bc17
Add support for implementing LDB modules in Python.
2008-09-19 16:17:52 +02:00
Simo Sorce
e060303670
Fix spellings and file names
...
(This used to be commit baddefd0a6fa430af1a3001064149127e0d29361)
2008-09-12 13:29:51 -04:00
Andrew Tridgell
094895cbe1
disable the anr== tests until they are understood
...
(This used to be commit 6028404a9a9db64d4025ef6e685ee13c4aadca2e)
2008-08-22 21:54:21 +10:00