summaryrefslogtreecommitdiff
path: root/source4/torture/ldap
AgeCommit message (Collapse)AuthorFilesLines
2010-02-26s4:torture: use a connected CLDAP socket.Stefan Metzmacher2-14/+46
This is needed because we don't (want) to specify an explicit local address. And the socket family (ipv4 vs. ipv6) needs to be autodetected based on the remote address before the socket() syscall. Otherwise we would try to connect to a ipv4 address through an ipv6only socket. metze
2010-02-25s4:torture/ldap/basic.c - add a basic test for referral returnMatthias Dieter Wallnöfer1-3/+219
I implemented this referral test in C since the LDB python API isn't capable to extract referrals from search result sets (there the result sets are simple lists which contain only the matching entries). First I enhanced the RootDSE test to return all partition base DNs in a new null-terminated list "partitions". Then I used this in my referrals test which I've implemented in the LDB api since I needed some certain DN functions.
2010-02-22s4:torture/ldap/basic.c - add some "const"Matthias Dieter Wallnöfer1-5/+3
In addition I removed a "talloc_free(req)" since we never free elsewhere the requests explicitly and do it only indirectly with freeing the "conn" object when the testsuite terminates.
2010-01-29s4/ldap: Test to expoit ldb_ildap bug in case of nested search requestsKamen Mazdrashki2-0/+203
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2009-12-01s4:torture/ldap/ldap_sort - Add some casts to suppress warningsMatthias Dieter Wallnöfer1-7/+7
2009-11-12s4:dsdb/schema Simplify schema loading from ldb messagesAndrew Bartlett1-17/+2
It turns out that we always add the class/attribute to the schema.
2009-11-12lib/util Split data_blob_hex_string() into upper and lowerAndrew Bartlett1-1/+1
Rather than have a repeat of the bugs we found at the plugfest where hexidecimal strings must be in upper or lower case in particular places, ensure that each caller chooses which case they want. This reverts most of the callers back to upper case, as things were before tridge's patch. The critical call in the extended DN code is of course handled in lower case. Andrew Bartlett
2009-10-23s4-ldbwrap: added re-use of ldb contexts in ldb_wrap_connect()Andrew Tridgell3-3/+3
This allows us to reuse a ldb context if it is open twice, instead of going through the expensive process of a full ldb open. We can reuse it if all of the parameters are the same. The change relies on callers using talloc_unlink() or free of a parent to close a ldb context.
2009-10-20s4-torture: ran minimal_includes.pl over source4/tortureAndrew Tridgell5-13/+0
This reduces compile time somewhat.
2009-10-19s4:torture "cldap" test - restore the removed constraints and add moreMatthias Dieter Wallnöfer1-4/+34
Consider for description the post on the technical mailing list. I hope that this satisfies abartlet again.
2009-10-18s4:torture "cldap" test - rework and test more resultsMatthias Dieter Wallnöfer1-21/+17
2009-10-14s4:torture cldap test - Add checks for the right forest DNS nameMatthias Dieter Wallnöfer1-1/+6
2009-10-14s4:torture - fix up "ldap_basic" testMatthias Dieter Wallnöfer1-5/+6
2009-10-02ds-flags: use the new name DS_DNS_FOREST_ROOTAndrew Tridgell1-5/+5
Update to use the new DS_DNS_FOREST_ROOT name, which makes it clearer what this bit means (according to MS-ADTS doc)
2009-08-05s4:torture The test logic for the target was wrong. This should correct it.Matthias Dieter Wallnöfer1-4/+4
2009-08-05s4:torture Remove some unwanted code in the LDAP test - hope this fixes up ↵Matthias Dieter Wallnöfer1-12/+0
the test failures
2009-08-04s4:torture rework LDAP sort testAndrew Bartlett2-0/+157
This reworks the test to be part of the LDAP tests, to make better use of the torture API and the ldb API (in particular around adding controls), and a general cleanup. This also adds the test to the 'make test' run. Andrew Bartlett
2009-07-31s4: Adds a small test for the new enhanced error messages from the AD LDAP ↵Matthias Dieter Wallnöfer1-4/+183
server
2009-06-18Fixes for the "cldap" testsMatthias Dieter Wallnöfer2-6/+19
- Insert a check after the "tsocket" library call to make sure that the call terminated correctly - Add a comment to explain why on further calls of "cldap_socket_init" the destination address hasn't to be specified
2009-04-02major upgrade to the ldb attribute handlingAndrew Tridgell1-1/+1
This is all working towards supporting the full WSPP schema without a major performance penalty. We now use binary searches when looking up classes and attributes. We also avoid the loop loading the attributes into ldb, by adding a hook to override the ldb attribute search function in a module. The attributes can thus be loaded once, and then saved as part of the global schema. Also added support for a few more key attribute syntaxes, as needed for the full schema.
2009-03-22LDAP-CLDAP: remove temporary debug statements...Stefan Metzmacher1-2/+2
metze
2009-03-19s4:cldap: rewrite the cldap library based on tsocketStefan Metzmacher2-48/+73
metze
2009-03-11LDAP-BENCH-CLDAP: also test CLDAP rootdse searches.Stefan Metzmacher1-6/+79
metze
2009-02-05LDAP-UPTODATEVECTOR: fix segfault against samba4 as serverStefan Metzmacher1-0/+1
metze
2009-02-02s4:cldap: s/private/private_dataStefan Metzmacher1-2/+2
metze
2008-10-15idl: finally fully share nbt.idl in s3 and s4.Günther Deschner1-7/+8
Guenther
2008-10-14Sync with Samba 3.Jelmer Vernooij1-4/+4
2008-10-11Fix include paths to new location of libutil.Jelmer Vernooij2-2/+2
2008-10-02The IRIX compiler does not like embedded unnamed unionsVolker Lendecke1-44/+44
2008-09-29LDB ASYNC: misc changesSimo Sorce1-26/+38
2008-09-23Merge ldb_search() and ldb_search_exp_fmt() into a simgle function.Simo Sorce2-8/+6
The previous ldb_search() interface made it way too easy to leak results, and being able to use a printf-like expression turns to be really useful.
2008-08-20Add a torture test for the new 'netlogon' flags.Matthias Dieter Wallnöfer1-0/+146
Signed-off-by: Andrew Bartlett <abartlet@samba.org> (This used to be commit a484334fb4dafd1df514d1bf88f7e0c4f07dff86)
2008-06-14Make up the right dependencies now that ldb depends on libeventsSimo Sorce1-1/+1
(This used to be commit 3b8eec7ca334528cad3cdcd5e3fc5ee555d8d0e0)
2008-05-21Extend the 'netlogon' CLDAP and NBT implementation.Andrew Bartlett1-1/+21
This now handles checking if the user exists, including validating the ACB mask on the user. This would be a nasty security hole, if Kerberos did not already expose this information anonymously... Andrew Bartlett (This used to be commit 441b286c00f9a7743cdefeb243545bdbd2c94c5e)
2008-05-17Modify the LDAP-CLDAP test for better coverage.Andrew Bartlett1-4/+8
This fixes up some compiled in constants and checks a couple more NT versions. Andrew Bartlett (This used to be commit ca1b3fe3add06dc22361d5a5fe7e63a6abb1697c)
2008-05-16Rework the CLDAP and NBT netlogon requests and responses.Andrew Bartlett1-33/+34
This now matches section 7.3.3 of the MS-ATDS specification, and all our current tests pass against windows. There is still more testing to do, and the server implementation to complete. Andrew Bartlett (This used to be commit 431d0c03965cbee85691cd0dc1e2a509c1a2b717)
2008-04-27Move subunit infrastructure code into lib/torture.Jelmer Vernooij1-1/+1
(This used to be commit 5b44d8121de7735d69e6238a1442aff034a8ebd3)
2008-04-21Remove more event_context_init() uses from function calls within deep down ↵Simo Sorce3-4/+10
the code. Make sure we pass around the event_context where we need it instead. All test but a few python ones fail. Jelmer promised to fix them. (This used to be commit 3045d391626fba169aa26be52174883e18d323e9)
2008-04-17Specify event_context to ldb_wrap_connect explicitly.Jelmer Vernooij2-2/+2
(This used to be commit b4e1ae07a284c044704322446c94351c2decff91)
2008-04-17Use provided event context rather than looking for it.Jelmer Vernooij1-1/+1
(This used to be commit fd0bb96acea3d7949cf0574bb6f3568a90f67f4e)
2008-04-02Install public header files again and include required prototypes.Jelmer Vernooij1-3/+3
(This used to be commit 47ffbbf67435904754469544390b67d34c958343)
2008-02-21Remove yet more uses of global_loadparm.Jelmer Vernooij2-3/+3
(This used to be commit e01c1e87c0fe9709df7eb5b863f7ce85564174cd)
2008-01-06r26683: Add another testcase. I still don't know what's wrong here.Andrew Bartlett1-0/+21
Andrew Bartlett (This used to be commit 341929c615e5573887889cf22950a25b536c6fc1)
2008-01-06r26682: Move CLDAP to the modern torture system, and add value checking.Andrew Bartlett1-14/+28
Andrew Bartlett (This used to be commit df17c4a9e84f4a4087c4a4a8ad44a82d4acb522e)
2008-01-01r26639: librpc: Pass iconv convenience on from RPC connection to NDR ↵Jelmer Vernooij1-2/+4
library, so it can be overridden by OpenChange. (This used to be commit 2f29f80e07adef1f020173f2cd6d947d0ef505ce)
2007-12-21r26540: Revert my previous commit after concerns raised by Andrew.Jelmer Vernooij1-1/+1
(This used to be commit 6ac86f8be7d9a8c5ab396a93e6d1e6819e11f173)
2007-12-21r26539: Remove unnecessary statics.Jelmer Vernooij1-1/+1
(This used to be commit e53e79eebef3ece6978f0a2b4a1ee0a0814bb5d2)
2007-12-21r26376: Add context for libcli_resolve.Jelmer Vernooij1-1/+1
(This used to be commit 459e1466a411d6f83b7372e248566e6e71c745fc)
2007-12-21r26355: Eliminate global_loadparm in more places.Jelmer Vernooij2-10/+12
(This used to be commit 5d589a0d94bd76a9b4c9fc748854e8098ea43c4d)
2007-12-21r26353: Remove use of global_loadparm.Jelmer Vernooij2-3/+6
(This used to be commit 17637e4490e42db6cdef619286c4d5a0982e9d1a)