Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2009-12-10 | s4-ldb: fixed 2 bugs in ldb_dn_set_extended_component() | Andrew Tridgell | 1 | -2/+5 | |
The first bug was that setting a component twice could cause it to appear twice in the DN. The second bug was that using an existing ldb_val from a previous call of ldb_dn_get_extended_component() as an argument to ldb_dn_set_extended_component() would cause a valgrind error (as the array the val pointed into will change). | |||||
2009-12-10 | s4-ldb: use GUID_to_ndr_blob() | Andrew Tridgell | 1 | -1/+6 | |
2009-12-07 | s4:ldb Add a function to match a message against an objectClass | Andrew Bartlett | 1 | -0/+19 | |
(as objectClass will always be a case insensitive ascii string, we can make a much simpler match function here than for the general case). Andrew Bartlett | |||||
2009-12-05 | s4-ldif: Fix memory leek in ldb_ldif_write() | Kamen Mazdrashki | 1 | -0/+2 | |
2009-11-30 | s4-ldb: changed ldb_msg_add_dn() to ldb_msg_add_linearized_dn() | Crístian Deives | 1 | -3/+4 | |
this makes the usage clearer Signed-off-by: Andrew Tridgell <tridge@samba.org> | |||||
2009-11-28 | s4: fix SD update and password change in upgrade script | Matthieu Patou | 1 | -0/+27 | |
- reserve a new Samba OID for recalculate SD control - fix the update SD function - fix handling of kvno in the update_machine_account_password function - fix handling of handles in RPC winreg server Signed-off-by: Andrew Tridgell <tridge@samba.org> | |||||
2009-11-27 | s4-ldb: better to test for valid arguments in ldb library than commandline | Andrew Tridgell | 1 | -0/+10 | |
We were testing for valid DNs in ldbrename in the command line tool. This hid a bug in the ldb library where we caught a bad DN in the objectclass module rather than in the main ldb code. It is better to do validation of the DNs passed on the command line in the library code, as this gives us more consistent error handling between the programming APIs for ldb and the command line. | |||||
2009-11-20 | Some changes to allow processing of ldap controls on modify requests. | Nadezhda Ivanova | 1 | -4/+13 | |
ldap_backend used to filter out ldap controls on modify. Also, modified python binding for ldap_modify to allow writing tests for such controls. | |||||
2009-11-20 | s4-ldb: added a warning about ldb_msg_add_dn | Andrew Tridgell | 1 | -0/+2 | |
ldb_msg_add_dn does not copy the dn linearized string | |||||
2009-11-20 | added new function "ldb_msg_add_dn" | Crístian Deives | 1 | -0/+9 | |
a helper function to a DN element to an ldb_msg using ldb_msg_add_string. Signed-off-by: Andrew Tridgell <tridge@samba.org> | |||||
2009-11-13 | s4-ldb: make DN escaping/unescaping consistent | Andrew Tridgell | 1 | -20/+54 | |
The DN escape function was using the form \c where c is any character. The unescape function was using \XX where XX is a 2 digit hex number. The asymmetry led to quite a few problems when we start to deal with DNs containing escape chars, such as CN=foo\0ADEL:XXX. The result was a DN that was not accessible. This patch changes the escaping to follow RFC2253 much more closely. We accept either type of escape, and produce the two types of escape, depending on the character being escaped | |||||
2009-11-12 | s4:ldb Allow ldb_msg_canonicalize to handle empty elements | Andrew Bartlett | 1 | -1/+1 | |
(These are deliberately there in DRS replication). Andrew Bartlett | |||||
2009-11-12 | s4:ldb Don't segfault if we somehow get an unknown extended dn element | Andrew Bartlett | 1 | -0/+8 | |
2009-11-12 | s4:ldb Change ldb_request_add_control to the normal 'for loop' pattern | Andrew Bartlett | 1 | -2/+1 | |
2009-11-12 | s4:ldb Remove DN+Binary code from the core ldb_dn | Andrew Bartlett | 1 | -256/+6 | |
This is now in dsdb_dn. Removing this to a specific wrapper avoids a number of bugs where Binary DNs were being handled incorrectly. This reverts much of tridge's commit fd22e0304782e20b9bbb29464b6c745d409ff4c6 Andrew Bartlett | |||||
2009-11-12 | s4:ldb Add a helper function for 'canonicalise' both strings base compares | Andrew Bartlett | 1 | -0/+27 | |
This will help simplify boilerplate comparison functions where we don't have a shortcut way to compare. Andrew Bartlett | |||||
2009-11-07 | ldb_init: use constant for result of "ldb_setup_wellknown_attributes" | Matthias Dieter Wallnöfer | 1 | -1/+1 | |
2009-11-06 | s4/ldb: Fix double allocation for "ldb_url" | Kamen Mazdrashki | 1 | -2/+2 | |
Signed-off-by: Stefan Metzmacher <metze@samba.org> | |||||
2009-10-27 | s4-ldb: '+' can also happen in base64 encoded index DNs | Andrew Tridgell | 1 | -1/+1 | |
2009-10-27 | s4:ldb Add additional tracing of the ldb API | Andrew Bartlett | 2 | -4/+80 | |
This helps pin down where errors occour, by printing a call stack and setting error strings and trace messages in the transaction case. Andrew Bartlett | |||||
2009-10-25 | s4-ldb: allow for unescaped '=' in a index DN | Andrew Tridgell | 1 | -0/+13 | |
The ldb_dn_explode code normally enforces all special characters, including a '=', must be escaped. Unfortunately this conflicts with the ltdb index DNs, which for binary attributes may be base64 encoded. This allows a unescaped '=' as a special case for index DNs. | |||||
2009-10-23 | s4-ldb: added ldb_transaction_cancel_noerr() | Andrew Tridgell | 1 | -0/+13 | |
This will be used to allow cancelling of transactions in a child after a fork() | |||||
2009-10-22 | s4-ldb: fast path for equal pointers | Andrew Tridgell | 1 | -1/+1 | |
We compare identical ldb_val values surprisingly often | |||||
2009-10-21 | s4-ldb: allow for non-null terminated ldb_val in ldb_dn_from_ldb_val | Andrew Tridgell | 1 | -1/+1 | |
The strlen() could go past the end of a non-null terminated value | |||||
2009-10-21 | s4:ldb Add new function to create a cut down list of controls | Andrew Bartlett | 1 | -0/+41 | |
This I hope will be useful for removing controls from the ldb_reply Andrew Bartlett | |||||
2009-10-21 | s4:ldb Add function to add controls to an LDB reply | Andrew Bartlett | 1 | -0/+34 | |
2009-10-18 | s4:ldb_msg_check_string_attribute - add a comment about the result values | Matthias Dieter Wallnöfer | 1 | -1/+5 | |
2009-10-18 | Revert "s4:ldb_msg - Use LDB constants on results" | Matthias Dieter Wallnöfer | 1 | -3/+4 | |
This reverts commit 56a8baff3df6a5120b6c7bbca771dfb7c6934fd5. Simo pointed out that I was wrong here. | |||||
2009-10-18 | s4:ldb_msg - Use LDB constants on results | Matthias Dieter Wallnöfer | 1 | -5/+7 | |
2009-10-16 | s4:ldb - fixed dangling pointer in ldb_request_add_control() | Endi S. Dewata | 1 | -2/+7 | |
2009-10-15 | s4-ldb: removed bugus RDN length check | Andrew Tridgell | 1 | -5/+0 | |
This isn't the rDN ! | |||||
2009-10-12 | Revert "s4:ldb - add a check which has to be done on beginning of a "modify" ↵ | Matthias Dieter Wallnöfer | 1 | -8/+0 | |
operation" This reverts commit f9990e9b391f330a8e6c5c158ee4e4eaa50f6176. abartlet claims that this behaviour is too AD specific to put here. Btw I had also some doubts if this is clean enough. I put it only here to make "ldap.py" pass. I'll try to find a new solution soon. | |||||
2009-10-12 | s4:ldb Allow a NULL module list | Andrew Bartlett | 1 | -1/+1 | |
2009-10-12 | s4:ldb Allow a module string of "" | Andrew Bartlett | 1 | -0/+6 | |
(We may have no modules set) Andrew Bartlett | |||||
2009-10-08 | s4:ldb - add a check which has to be done on beginning of a "modify" operation | Matthias Dieter Wallnöfer | 1 | -0/+8 | |
2009-10-02 | Revert "s4:ldb always talloc_free() the ldb_ldif_write context, even on success" | Andrew Tridgell | 1 | -1/+0 | |
This reverts commit a610843e9f21ee77fd29356313d2ef05fe25a1ed. | |||||
2009-10-02 | s4:ldb always talloc_free() the ldb_ldif_write context, even on success | Andrew Bartlett | 1 | -0/+1 | |
2009-10-02 | s4-ldb: Add new relax controls that allow relaxed x500 constraints checks | Matthieu Patou | 1 | -0/+27 | |
2009-10-02 | s4-ldb: Add support for binary blobs in DNs | Andrew Tridgell | 1 | -30/+288 | |
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-01 | s4:ldb_msg_diff - Fixes up possible memory leaks and the python binding of it | Matthias Dieter Wallnöfer | 1 | -3/+9 | |
2009-09-22 | s4-ldb: fixed call argument order for ldb_dn_from_ldb_val | Andrew Tridgell | 1 | -3/+3 | |
This caused _lots_ of problems, especially in server side sort | |||||
2009-09-22 | s4-ldb: when tracing, show ldb_set_debug messages | Andrew Tridgell | 1 | -0/+3 | |
2009-09-22 | s4-ldb: only show the outer level of ldb ops when tracing | Andrew Tridgell | 2 | -4/+37 | |
2009-09-22 | s4-ldb: don't show timestamps on every line of ldb traces | Andrew Tridgell | 3 | -64/+96 | |
This adds ldb_debug_add() and ldb_debug_end() to format multiline messages | |||||
2009-09-22 | Move the check above the talloc | Anatoliy Atanasov | 1 | -5/+6 | |
2009-09-21 | Add support in the ldb_dn.c code for MS-ADTS:3.1.1.5.1.2 Naming Constraints | Anatoliy Atanasov | 1 | -0/+13 | |
2009-09-21 | s4-ldb: bit prettier output | Andrew Tridgell | 1 | -7/+15 | |
2009-09-21 | s4-ldb: fixed O(n^2) string handling in ldif debug print | Andrew Tridgell | 1 | -3/+3 | |
2009-09-21 | s4-ldb: add a LDB_FLG_ENABLE_TRACING for full ldb tracing | Andrew Tridgell | 3 | -1/+126 | |
When LDB_FLG_ENABLE_TRACING is set ldb will send full traces of all operations and results | |||||
2009-09-20 | s4:ldb print out which LDB the transaction is still active on. | Andrew Bartlett | 1 | -2/+2 | |