Matthias Dieter Wallnöfer
957cc4b8b6
s4:ldb_tdb - fix memory leaks
2009-10-03 15:49:40 +02:00
Matthias Dieter Wallnöfer
817208090d
s4:ldb.h - add constant for LDAP EXOP password change
...
Also enhance some other comments.
2009-10-03 13:27:50 +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
deb268f7fa
s4:rdn_name - fix up the rename operation
...
A function call was wrong ("ldb_request" rathen than "ldb_next_request").
2009-10-03 10:36:41 +02:00
Matthias Dieter Wallnöfer
2b9b232912
Revert "s4:LDB/LDAP - Re-allow renames"
...
This reverts commit 767fce6fcc
.
Simo pointed out that the patch generates race conditions. We need to solve this
using a new control.
2009-10-03 00:14:05 +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
b45f56d4ba
s4:ldb_ildap - Don't segfault on a empty RDN
2009-10-02 21:27:46 +02:00
Matthias Dieter Wallnöfer
767fce6fcc
s4:LDB/LDAP - Re-allow renames
...
The main problem is that the "rdn_name" module launches on a rename request also
a modification one with the "special attributes" which can't be changed directly.
An introduced flag helps to bypass the restriction.
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
Andrew Bartlett
2651603269
s4:ldb Don't allow RDN to be modified with an LDB modify message
...
Found by the Microsoft testsuite at the AD interop event.
Andrew Bartlett
2009-10-02 19:17:24 +02:00
Matthias Dieter Wallnöfer
d2ac4cbcee
s4:rdn_name module - a normal error message should be enough for this failure
...
I don't think that we really want to have this error printed out on the server
console (stdout) since this hasn't serious results as DB or data corruption
and similar.
2009-10-02 19:17:23 +02:00
Andrew Bartlett
2f211daa47
s4:ldb Don't allow modifcation of distinguishedName
2009-10-02 18:57:08 +02:00
Andrew Tridgell
35ff1f6f1f
Revert "s4:ldb Fix ldb_list_find() folowing the change from char * to TDB_DATA"
...
This reverts commit f0c2c9854c
.
2009-10-02 22:40:31 +10:00
Andrew Tridgell
a0c82f17f8
Revert "s4:ldb always talloc_free() the ldb_ldif_write context, even on success"
...
This reverts commit a610843e9f
.
2009-10-02 22:40:02 +10:00
Andrew Tridgell
959eff9206
Revert "s4:ldb Remove LTDB_PACKING_FORMAT_NODN"
...
This reverts commit bcbf0ae1e7
.
2009-10-02 22:39:44 +10:00
Andrew Tridgell
52b10ff3c5
Revert "s4-ldb: merged with master"
...
This reverts commit 14c9070322
.
2009-10-02 22:39:19 +10:00
Andrew Tridgell
dfafd58348
Revert "s4-ldb: overallocate idxptr to reduce memory fragmentation"
...
This reverts commit e7846f69ca
.
2009-10-02 22:39:10 +10:00
Andrew Tridgell
81c193da09
Revert "s4-ldb: fixed a memory leak"
...
This reverts commit c7358d9890
.
2009-10-02 22:38:58 +10:00
Matthias Dieter Wallnöfer
ee956c9172
s4:ldb.h - cosmetic - add whitespace
2009-10-02 12:45:09 +02:00
Andrew Bartlett
46c2af3612
s4:dsdb Add 'lazy_commit' module to swallow the 'lazy commit' OID
...
This allows this control to be specified as critical. We support the
control because we choose to always be durable in our transactions.
We really, really need a 'duplicate request' API, as at the
moment we can't do this without a large, error-prone set of code that
cannot cope with new request fields or types.
Andrew Bartlett
2009-10-02 12:45:06 +02:00
Andrew Tridgell
c7358d9890
s4-ldb: fixed a memory leak
2009-10-02 12:45:05 +02:00
Andrew Tridgell
e7846f69ca
s4-ldb: overallocate idxptr to reduce memory fragmentation
2009-10-02 12:45:04 +02:00
Andrew Bartlett
14c9070322
s4-ldb: merged with master
2009-10-02 12:45:03 +02:00
Andrew Bartlett
bcbf0ae1e7
s4:ldb Remove LTDB_PACKING_FORMAT_NODN
...
The restructured code makes this hader to support, and we have not had
this kind of LDB for a very long time now.
Andrew Bartlett
2009-10-02 12:45:03 +02:00
Andrew Bartlett
a610843e9f
s4:ldb always talloc_free() the ldb_ldif_write context, even on success
2009-10-02 12:45:02 +02:00
Andrew Bartlett
f0c2c9854c
s4:ldb Fix ldb_list_find() folowing the change from char * to TDB_DATA
...
(The format of index records in the internal manipulation changed)
Andrew Bartlett
2009-10-02 12:45:02 +02:00
Matthieu Patou
977a0aa273
pythonbindings: allow add() to have an array of controls as second parameter
2009-10-02 12:45:00 +02:00
Matthieu Patou
a73a0372f9
s4-ldb: Add new relax controls that allow relaxed x500 constraints checks
2009-10-02 12:44:59 +02:00
Andrew Tridgell
fd22e03047
s4-ldb: Add support for binary blobs in DNs
...
AD has the concept of a DN prefixed with B:NN:XXXXXX: that contains a
binary blob. We need to support those in order to give correctly
formatted binary blobs for things like wellKnownObjects
This implementation is not ideal, as it allows for binary blobs on all
DNs, whereas it should only allow them on those with a syntax of
2.5.5.7. We should clean this up in the future, but meanwhile this
implementation at least gets us a working DC join of w2k8 to s4.
This patch also uses a static function for marking DNs as invalid,
which is very useful when debugging this code, as you can break on it
in gdb.
2009-10-02 12:03:05 +10:00
Matthias Dieter Wallnöfer
c173c1beb1
s4:pyldb - Wrong error type (found only after the push)
2009-10-01 14:02:59 +02:00
Matthias Dieter Wallnöfer
54ea150f36
s4:ldb_msg_diff - Fixes up possible memory leaks and the python binding of it
2009-10-01 13:59:02 +02:00
Matthias Dieter Wallnöfer
ad549072aa
s4:pyldb - Fixed the return value in "py_ldb_msg_diff"
...
The case distinction shouldn't be needed also when "diff" is NULL.
"PyLdbMessage_FromMessage" works with "NULL" arguments.
2009-09-30 16:01:17 +02:00
Jelmer Vernooij
6b595a93c1
ldb: Check for talloc using pkg-config before checking manually, so we
...
find version errors.
2009-09-26 13:53:27 +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
Andrew Tridgell
9b7de7f491
fixed spelling
2009-09-23 14:01:29 -07:00
Andrew Tridgell
83bef7d047
s4-ldb: server side sort args are const char *
2009-09-22 17:10:06 -07:00
Andrew Tridgell
1dfcd4c22c
s4-ldb: fixed call argument order for ldb_dn_from_ldb_val
...
This caused _lots_ of problems, especially in server side sort
2009-09-22 17:10:06 -07:00
Andrew Tridgell
4a74b28397
s4-ldb: when tracing, show ldb_set_debug messages
2009-09-22 17:10:06 -07:00
Andrew Tridgell
2e98ee0907
s4-ldb: only show the outer level of ldb ops when tracing
2009-09-22 17:10:05 -07:00
Andrew Tridgell
ec5d01278a
s4-ldb: don't show timestamps on every line of ldb traces
...
This adds ldb_debug_add() and ldb_debug_end() to format multiline
messages
2009-09-22 17:10:05 -07:00
Anatoliy Atanasov
68f33428c7
Move the check above the talloc
2009-09-22 14:46:18 -07:00
Andrew Bartlett
399c7160d5
s4:ldb Add 'single-value' support to LDB.
...
This is currently only triggered via Samba4's schema code.
2009-09-21 20:50:26 -07:00
Nadezhda Ivanova
9e85192e64
Merge branch 'master' of git://git.samba.org/samba
2009-09-21 17:29:28 -07:00
Anatoliy Atanasov
b850d7fb08
Add support in the ldb_dn.c code for MS-ADTS:3.1.1.5.1.2 Naming Constraints
2009-09-21 17:18:10 -07:00
Andrew Tridgell
1fa643bdd7
s4-ldb: bit prettier output
2009-09-21 16:31:06 -07:00
Andrew Tridgell
4d984d0c05
s4-ldb: fixed O(n^2) string handling in ldif debug print
2009-09-21 16:31:01 -07:00
Andrew Tridgell
b23294e407
s4-ldb: add --trace command line option to ldb tools
...
This enabled LDB_FLG_ENABLE_TRACING
2009-09-21 15:27:05 -07:00
Andrew Tridgell
97ffb912c1
s4-ldb: add a LDB_FLG_ENABLE_TRACING for full ldb tracing
...
When LDB_FLG_ENABLE_TRACING is set ldb will send full traces
of all operations and results
2009-09-21 15:27:05 -07:00
Nadezhda Ivanova
13b979b03d
Merge branch 'master' of git://git.samba.org/samba
2009-09-21 14:26:15 -07:00