summaryrefslogtreecommitdiff
path: root/source4/lib
AgeCommit message (Collapse)AuthorFilesLines
2008-08-22fixed a problem with length limited ldap valuesAndrew Tridgell10-29/+48
The core ldb code for string matching assumed NULL terminated strings, whereas the anr module used data_blob_const() to effectively truncate a ldb_val by changing its length. The ldb code is supposed to be based around length limited blobs, not NULL terminated strings, so the correct fix was to change the string comparison functions to be length limited (This used to be commit 26c6aa5a80ffaf06fc33f30a6533f8f16ef538bc)
2008-08-21Don't walk past the end of ldb values.Andrew Bartlett5-16/+31
This is a partial fix towards bugs due to us walking past the end of what we think are strings in ldb. There is much more work to do in this area. Andrew Bartlett (This used to be commit 5805a9a8f35fd90fa4f718f73534817fa3bbdfd2)
2008-08-21Push loading the objectGUID and objectSID handlers earlier.Andrew Bartlett1-4/+8
Andrew Bartlett (This used to be commit 0b6e53f80b063d8702718c84409d7b069aee9c05)
2008-08-21Handle error cases in attribute handlers better.Andrew Bartlett1-8/+18
We don't need to just bail, for all these error cases there is still real result that can be made - just fall back to binary copy/compare. Andrew Bartlett (This used to be commit 6aa5dde2aa9a5f070871ecc117e44bfcad363459)
2008-08-21All these syntaxes are now handled by the schema.Andrew Bartlett1-6/+0
(This used to be commit 94d5e69190f34d66d4defd4a7de7ce24bee77bc3)
2008-08-21Don't hardcode attributes to be treated as a DNAndrew Bartlett1-14/+1
This is now handled by reading the schema into the attributes. Also, when we do set something here, mark it as FIXED, so the schema and any reload from @ATTRIBUTES won't touch it. Andrew Bartlett (This used to be commit 7b24701335398ece3d1b3a20cf5f1174500b16ce)
2008-08-21Correct anr search commants and error messages in ldap.jsAndrew Bartlett1-7/+7
(This used to be commit 233dd885c2a2b4ee7cc2287efe7d6e03625d4981)
2008-08-21Don't allow a NULL syntaxAndrew Bartlett1-0/+4
(This used to be commit 505a0c2b702b696b91dab683626bb25b14a49c38)
2008-08-20Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-abartletAndrew Bartlett1-0/+4
(This used to be commit ae502f9e3991209d70a745bef3a3e6e7484cdb5f)
2008-08-20don't overwrite fixed attributes with @ATTRIBUTESAndrew Tridgell1-0/+4
(This used to be commit e860fc171fd127d73df23336089c1479911953da)
2008-08-20Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-abartletAndrew Bartlett3-2/+14
(This used to be commit 9fa48b3572cb4e55cfaa48a8b516a91904048573)
2008-08-20Merge commit 'origin/v4-0-test' into v4-0-testAndrew Tridgell24-176/+350
(This used to be commit 3bdc906eb63a494f0d8478c13f8330828aa2f725)
2008-08-20added a LDB_ATTR_FLAG_FIXED so the schema module can mark attributesAndrew Tridgell2-2/+7
as never to be removed. (This used to be commit 9dce558206a2ce70c69b9b6c5c3c9c58ee165b1d)
2008-08-20Remove last traces of the old 'subclass' featureAndrew Bartlett1-7/+0
(This used to be commit ed19d0abea5b206d186a51fa11dc0c04197e6ee2)
2008-08-19added some comments at the request of a frustrated abartletAndrew Tridgell1-0/+7
(This used to be commit cad2e6c4c13ccd02587e47d13e897e0a327b58eb)
2008-08-19Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-abartletAndrew Bartlett15-80/+277
(This used to be commit 27d07df301d60e49d36efd003f2fd2305c83c3fe)
2008-08-18librpc: don't build the old mszip decompression codeStefan Metzmacher1-2/+2
metze (This used to be commit f48dfd87badcddc64a1c0bf52939188a4a8f4add)
2008-08-18zlib: mark as modified for sambaStefan Metzmacher1-2/+8
metze (This used to be commit 0fb265e567d700b3c16eb8f28bc5f26653a819fa)
2008-08-18zlib: fix compiler warningsStefan Metzmacher12-74/+80
metze (This used to be commit ce44a608f66bf27070fd43d576551fde6f545d7c)
2008-08-18zlib: we don't need the inflateReset2 prototype twiceStefan Metzmacher1-2/+0
metze (This used to be commit 0dbbc287f65a51330c5309df5a96b3acd4d044d5)
2008-08-18lib/compression: Import of lzxpress decompression algorithmMatthieu Suiche3-1/+188
Signed-off-by: Stefan Metzmacher <metze@samba.org> (This used to be commit 531882dadd57eb6fa048c5d6e5fe3accc20df751)
2008-08-18Note the ldb syntax for attribute syntaxes in the table.Andrew Bartlett3-10/+30
This includes additional Samba-specific syntaxes made available from the ldif_handlers code. This commit also changes some table to use #defines, to ensure consistancy in other parts of the code. Andrew Bartlett (This used to be commit e26a5efd9a580ed3728e1f449e367b1cd4a73b5f)
2008-08-18Allow attributes to be overwritten, not just added toAndrew Bartlett1-3/+11
(This used to be commit 0aebae91be0fba7ffa94d73946a94aea930a252a)
2008-08-18Remove references to the unused @SUBCLASS feature.Andrew Bartlett4-83/+2
This was removed from ldb_tdb a while ago Andrew Bartlett (This used to be commit fcb87e77860b449ac3483ccec5e6b5ed087540f2)
2008-08-15Generate the subSchema in cn=AggregateAndrew Bartlett1-0/+30
This reads the schema from the in-memory structure, when the magic attributes are requested. The code is a modified version of that used in the ad2oLschema tool (now shared). The schema_fsmo module handles the insertion of the generated result. As such, this commit also removes these entries from the setup/schema.ldif Metze's previous stub of this functionality is also removed. Andrew Bartlett (This used to be commit c7c32ec7b42bdf0f7b669644516438c71b364e60)
2008-08-07lib: prepare the build of zlibStefan Metzmacher3-0/+32
metze (This used to be commit 159df68c04c9ae437ab48991154e91161ef72754)
2008-08-07zlib: add inflateReset2()...Stefan Metzmacher3-3/+28
metze (This used to be commit 2a4fb661d7e3d601a5eb9ccecb4d4f2b07073097)
2008-08-07import of zlib-1.2.3Stefan Metzmacher200-0/+54035
We want to use zlib for the mszip ndr (de)compression later, we'll need to add some new functions to zlib. metze (This used to be commit 65c9e91a1bb24851a030a304d011558562cc50d6)
2008-08-01libreplace: include <krb5.h> and <com_err.h> and no heimdal specific headersStefan Metzmacher1-2/+3
metze (This used to be commit cffed8e19e22a1fa7b7a322b153df5d54e4c3be2)
2008-08-01lib/crypto: remove dependency to internal heimdalStefan Metzmacher1-2/+21
metze (This used to be commit 9138fc6639fae7a5567c395254277199c89b0dcb)
2008-07-26lib/ldb/tools: allow -W and --realm when build from samba4Stefan Metzmacher1-0/+1
metze (This used to be commit 0aa6d63ec571b0ca05fbfe14d2b4e9ba3e1082e9)
2008-07-25Define HAVE_ASM_BYTEORDER at all timesBrad Hards1-2/+4
(This used to be commit 396ea14732d667960091f4a2570341059914ecb6)
2008-07-24Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-testAndrew Tridgell2-4/+5
(This used to be commit 24309dbf4d9622fcfafa29ef98bc0459fdaa814b)
2008-07-24fixd a bug in the signal handling code - we could get phantom signalsAndrew Tridgell1-5/+5
(signum 64) (This used to be commit af7fb2e38ba27cf8058eb1cef1f96bbc7b19849f)
2008-07-21Sleep longer in the hope that the OpenLDAP backend might catch upAndrew Bartlett1-2/+2
(This used to be commit 63c80c885dc3fb2228f082be8db752bb29e3962e)
2008-07-21Fix ldb_map to add/remove the same 'extra' objectclassAndrew Bartlett1-2/+3
The code previously added data->add_objectClass, but only removed the fixed objectclass of extensibleObject. Found by the ldap.py test. Andrew Bartlett (This used to be commit 4fa15c3173a997fa0b9041161d81e742e1fdb41c)
2008-07-16Another kludge to let the OpenLDAP backend catch up.Andrew Bartlett1-0/+2
This will go away when this is handled in an internal transation. Andrew Bartlett (This used to be commit f567e17758cfe937249beafae0a9087b67b27755)
2008-07-14Remove C++ keywords from events.h header.Andrew Bartlett1-4/+4
Andrew Bartlett (This used to be commit 7ca421eb32bed3c400f863b654712d922c82bfb9)
2008-07-09ldb_map: eliminate "discards qualifyer" warning (const).Michael Adam1-1/+1
Michael (This used to be commit b7c14af3790bcf825367a7f16d2aaa375b04393c)
2008-07-09Revert "tdbtool: fix off-by-one error in argument length. (bug #2344)"Michael Adam1-1/+1
This reverts commit fafb8ad2b81b9a46cf8259bedc1dca5023b06115. This fix is not valid: 1. convert_string() is not only used for key strings but also for data. 2. Some databases use string_tdb_data() i.e. non-null-terminated strings as keynames and others (like the one I was using), use string_term_tdb_data(), i.e. zero-terminated key strings. After discussion with Metze, the easiest (and proper way) to handle this is to specify key names as "keyname\0" for databases which use string_term_tdb_data(). Sorry for the noise... Michael (This used to be commit 17c012c4645f4e9542537c15f80d9b4e74304d11)
2008-07-08tdbtool: fix off-by-one error in argument length. (bug #2344)Michael Adam1-1/+1
This prevented all commands operating on keys (all non-traverse commands) in tdbtool to fail with a "fetch failed" or "delete failed" message. It seems that it fixes bug #2344 ... Apparently this bug was introduced with 94e53472666ed in 2005. Either nobody is using tdbtool or else tdb_find() has become more strict about the key legth in the meantime. :-) Michael (This used to be commit fafb8ad2b81b9a46cf8259bedc1dca5023b06115)
2008-07-07packet: make it possible to free the packet_context from the send_callbackStefan Metzmacher1-0/+6
metze (cherry picked from commit 20795c4a0d5f75561561470231de1a2fad2906ff) (This used to be commit 5d5b4e4ab23e1c630dfde2b9f296681e3979c4e0)
2008-07-02Fix bug #5578, reported by sendel2000@hotbox.ru. Bad (non-Samba) use of ↵Jeremy Allison1-0/+3
strlcat gives error. Jeremy. (This used to be commit e633dc4ec2d72c3d34b5e096e0460e07e07ab514)
2008-07-02Move ad2oLschema and oLschema2ldif into Samba4, out of LDBAndrew Bartlett5-1613/+0
LDB does not know about nor process the AD schema, so it makes no sense to have this tool there. I've been changing it anyway, to use a common schema manipulation library, and will enhance these links in the future. Andrew Bartlett (This used to be commit c7704805b9a3541e4c8768278c8289b0aa6ed5e3)
2008-07-02Collapse auxillary classes in LDAP schema conversion.Andrew Bartlett1-4/+106
MS-ADTS 3.1.1.3.1.1.5 describes the behaviour of auxiliary classes. In effect, these are additional MUST or MAY attributes that are appeneded to the parent class (the auxiliary does not become listed in the objectClass attribute), and so we do just that, and merge them here, for export to OpenLDAP as it's schema. Andrew Bartlett (This used to be commit d674e92591ea90eb3b2117d8dd21f79f718d7730)
2008-06-30ldb_ildap: don't force the build as shared_moduleStefan Metzmacher1-1/+0
metze (This used to be commit 0aef6d394d7a93cce9aee17af1153b07ea1a9c07)
2008-06-30lib/talloc: build as MERGED_OBJ instead of STATIC_LIBRARYStefan Metzmacher1-1/+1
metze (This used to be commit 5bf414efbdf279fd1b85eb47e7b47656bc435f11)
2008-06-30lib/events: build as MERGED_OBJ instead of STATIC_LIBRARYStefan Metzmacher1-1/+1
metze (This used to be commit a2a506ba2e044699d147486e987b11d839373784)
2008-06-30ldb: allow ldb modules to specify LDB_MODULE(name) or LDB_BACKEND(name)Stefan Metzmacher4-164/+201
metze (This used to be commit 1d5b714438a955d76f92f4ccd8aa2f7f89ffa5fd)
2008-06-30Relax the ldap.py tests so that they pass against OpenLDAP CVS.Andrew Bartlett1-3/+6
This requires a patched OpenLDAP checked out from their CVS HEAD. I hope to see the patches incorporated soon. Andrew Bartlett (This used to be commit 963bcfc777679ba122189ea6cf7f94b8d46cdce7)