summaryrefslogtreecommitdiff
path: root/source4/torture/ldap
AgeCommit message (Collapse)AuthorFilesLines
2013-06-24torture: Add tests for LDAP substring search with no strings providedAndrew Bartlett1-0/+110
Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Mon Jun 24 23:55:07 CEST 2013 on sn-devel-104
2012-04-18s4-schema: rename dsdb_attribute_from_ldb to dsdb_set_attribute_from_ldb ↵Matthieu Patou1-2/+2
and dsdb_class_from_ldb to dsdb_set_class_from_ldb
2012-01-04LDAP-CLDAP: demonstrate that pdc name is not an unc pathStefan Metzmacher1-0/+9
For LOGON_SAM_LOGON_RESPONSE_EX and LOGON_SAM_LOGON_USER_UNKNOWN_EX, pdc name is not in unc path form. [MS-ADTS] 7.3.1.* uses UnicodeLogonServer, which seems to be in unc form, while NetbiosComputerName is not in unc form. metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Wed Jan 4 20:06:14 CET 2012 on sn-devel-104
2012-01-04LDAP-CLDAP: demonstrate that pdc name is an unc pathStefan Metzmacher1-0/+6
For LOGON_SAM_LOGON_RESPONSE and LOGON_SAM_LOGON_USER_UNKNOWN, I assume all levels without _EX in the name, pdc name is in unc path form. [MS-ADTS] 7.3.1.* uses UnicodeLogonServer, which seems to be in unc form, while NetbiosComputerName is not in unc form. metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Wed Jan 4 13:37:42 CET 2012 on sn-devel-104
2011-11-27s4:torture/ldap/cldap.c - remove the ↵Matthias Dieter Wallnöfer1-87/+4
"test_cldap_netlogon_flag_ds_dns_forest" test The test is wrong since the DNS_* (DS_DNS_CONTROLLER, DS_DNS_DOMAIN, DS_DNS_FOREST_ROOT) flags are never set on the plain CLDAP pipe. They get added only over the DsRGetDCName* calls over NETLOGON RPC. Signed-off-by: Stefan Metzmacher <metze@samba.org> Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Sun Nov 27 16:23:27 CET 2011 on sn-devel-104
2011-10-27s4:torture/ldap/basic.c - fix a typoMatthias Dieter Wallnöfer1-2/+2
Reviewed-by: abartlet
2011-10-10libcli/cldap: don't pass tevent_context to cldap_socket_init()Stefan Metzmacher2-6/+6
metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Mon Oct 10 23:23:07 CEST 2011 on sn-devel-104
2011-10-10libcli/cldap: pass tevent_context to cldap_search_send()Stefan Metzmacher1-1/+1
metze
2011-10-10libcli/cldap: pass tevent_context to cldap_netlogon_send()Stefan Metzmacher1-1/+2
metze
2011-05-03s4-libcli Remove resolve_name() as it conflicts with Samba3.Andrew Bartlett1-1/+2
This was just a wrapper around resolve_name_ex(), so just call that instead. Andrew Bartlett
2011-02-28Fix some typesJelmer Vernooij1-1/+1
Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Mon Feb 28 23:30:06 CET 2011 on sn-devel-104
2011-02-10ldb: use #include <ldb.h> for ldbAndrew Tridgell1-2/+2
thi ensures we are using the header corresponding to the version of ldb we're linking against. Otherwise we could use the system ldb for link and the in-tree one for include Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-12-11s4-smbtorture: Make test names lowercase and dot-separated.Jelmer Vernooij1-8/+8
This is consistent with the test names used by selftest, should make the names less confusing and easier to integrate with other tools. Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sat Dec 11 04:16:13 CET 2010 on sn-devel-104
2010-10-15s4:dsdb - remove "samdb_result_uint", "samdb_result_int64", ↵Matthias Dieter Wallnöfer1-2/+2
"samdb_result_uint64" and "samdb_result_string" We have ldb_msg_find_attr_as_* calls which do exactly the same. Therefore this reduces only code redundancies. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-09-27s4:torture/ldap: close connections with an UnbindRequestStefan Metzmacher1-0/+29
metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Mon Sep 27 07:14:23 UTC 2010 on sn-devel-104
2010-09-27LDAP-BASIC: test AbandonRequestStefan Metzmacher1-0/+41
metze
2010-07-16s4-loadparm: 2nd half of lp_ to lpcfg_ conversionAndrew Tridgell2-8/+8
this converts all callers that use the Samba4 loadparm lp_ calling convention to use the lpcfg_ prefix. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-06-19s4:torture/ldap/basic.c - add more error code/messages testsMatthias Dieter Wallnöfer1-30/+264
And now we do match at least the LDAP error code (the WERROR one does still differ from Windows - we will see how to change that).
2010-05-21s4:libcli/ldap Rename ldap.h to libcli_ldap.hAndrew Bartlett1-1/+1
It is a problem if a samba header is called ldap.h if we also want to use OpenLDAP's ldap.h Andrew Bartlett
2010-05-18Finish removal of iconv_convenience in public API's.Jelmer Vernooij3-32/+27
2010-05-03Added a function to check if an attribute can belong to a filtered replica.Nadezhda Ivanova1-0/+17
2010-04-27nbt: samlogon/netlogon structures - unify denominationsMatthias Dieter Wallnöfer1-6/+6
2010-04-13Revert "s4:prefer "samdb_*_dn" basedn calls over the "ldb_get_*_dn" functions"Matthias Dieter Wallnöfer1-3/+3
We should use the "ldb_get_*_basedn" calls since they are available in the LDB library.
2010-04-12s4:torture/ldap/ldap_sort.c - There should be used the "base_dn" not the ↵Matthias Dieter Wallnöfer1-2/+2
"root_dn" for the sort test The (forest) "root_dn" hasn't always to be the same as the (domain) "base_dn"!
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