summaryrefslogtreecommitdiff
path: root/source4/torture/ldap
Commit message (Collapse)AuthorAgeFilesLines
* s4-cldap/netlogon: Match Windows 2012R2 and return NETLOGON_NT_VERSION_5 ↵Andrew Bartlett2017-07-281-1/+1
| | | | | | | | | when version unspecified The previous patch set this incorrectly to NETLOGON_NT_VERSION_1 Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
* s4:torture/ldap: Test netlogon without NtVerArvid Requate2017-07-281-0/+48
| | | | | | | | BUG: https://bugzilla.samba.org/show_bug.cgi?id=11392 Signed-off-by: Arvid Requate <requate@univention.de> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* s4: popt: Global replace of cmdline_credentials -> ↵Jeremy Allison2017-05-115-6/+6
| | | | | | | | | | | popt_get_cmdline_credentials(). Add one use of popt_set_cmdline_credentials(). Fix 80 column limits when cmdline_credentials changes to popt_get_cmdline_credentials(). Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* s4: torture: Change torture_register_suite() to add a TALLOC_CTX *.Jeremy Allison2017-05-051-2/+2
| | | | | | | | Change callers to use the passed in TALLOC_CTX * instead of talloc_autofree_context(). Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Böhme <slow@samba.org>
* lib: modules: Change XXX_init interface from XXX_init(void) to ↵Jeremy Allison2017-04-221-1/+1
| | | | | | | | | | | | | | | | | | | | XXX_init(TALLOC_CTX *) Not currently used - no logic changes inside. This will make it possible to pass down a long-lived talloc context from the loading function for modules to use instead of having them internally all use talloc_autofree_context() which is a hidden global. Updated all known module interface numbers, and added a WHATSNEW. Signed-off-by: Jeremy Allison <jra@samba.org> Signed-off-by: Ralph Böhme <slow@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Sat Apr 22 01:17:00 CEST 2017 on sn-devel-144
* werror: replace WERR_INVALID_PARAM with WERR_INVALID_PARAMETER in ↵Günther Deschner2016-09-281-4/+4
| | | | | | | | | source4/torture/ Guenther Signed-off-by: Guenther Deschner <gd@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* torture_ldap_sort: avoid segfaultDouglas Bagnall2016-03-091-0/+1
| | | | | | Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Garming Sam <garming@catalyst.net.nz>
* torture: fix the ldap.netlogon-udp testMichael Adam2016-01-111-1/+12
| | | | | | | | | | This makes sure a host*NAME* handed in will get properly resolved. Bug uncovered by the new nss_wrapper code (1.1.2) which fixed the handling of the AI_NUMERICHOST flag in getaddrinfo. Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* torture: fix the ldap.cldap testMichael Adam2016-01-111-1/+12
| | | | | | | | | | This makes sure a host*NAME* handed in will get properly resolved. Bug uncovered by the new nss_wrapper code (1.1.2) which fixed the handling of the AI_NUMERICHOST flag in getaddrinfo. Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* torture: Make sure server_type isn't used uninitialized.Andreas Schneider2014-10-311-1/+1
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* nbt-cli: display all known NBT_SERVER flags.Günther Deschner2014-10-241-0/+4
| | | | | | | Guenther Signed-off-by: Guenther Deschner <gd@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* torture: Fix use-after-free in ldap.nested-searchAndrew Bartlett2014-09-271-2/+4
| | | | | | | | Found by AddressSanitizer Change-Id: Ie3bb4054201382cacb4b296308d561a3548f8cff Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* s4:torture/ldap: add includes to avoid compiler warningsStefan Metzmacher2014-04-025-1/+8
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* s4:torture/netlogon: Test netlogon with additional attrsBenjamin Franzke2013-11-121-0/+83
| | | | | | | | | | Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Nadezhda Ivanova <nivanova@symas.com> se enter the commit message for your changes. Lines starting Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Tue Nov 12 00:57:19 CET 2013 on sn-devel-104
* s4:torture/ldap: Add test for netlogon over tcpBenjamin Franzke2013-11-113-329/+518
| | | | | | | | | | | | | | | This patch moves the udp netlogon tests from cldap.c to netlogon.c and passes a generic netlogon-send function as parameter. Therefore a tcp replacement for cldap_netlogon is also added. The two variants tcp and udp are added as 2 new torture tests: ldap.netlogon-udp & ldap.netlogon-tcp Both tests succeed. Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Nadezhda Ivanova <nivanova@symas.com>
* s4:torture/cldap: Fix a typoBenjamin Franzke2013-11-111-1/+1
| | | | | Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Nadezhda Ivanova <nivanova@symas.com>
* s4:torture:ldap: Fix misleading outputHoward Chu2013-09-231-2/+2
| | | | | | | | | | | Looks like an errant copy/paste from the Abandon test. Signed-off-by: Howard Chu <hyc@symas.com> Reviewed-by: Jeremy Allison <jra@samba.org> Reviewed-by: Michael Adam <obnox@samba.org> Autobuild-User(master): Michael Adam <obnox@samba.org> Autobuild-Date(master): Mon Sep 23 22:47:50 CEST 2013 on sn-devel-104
* torture: Add tests for LDAP substring search with no strings providedAndrew Bartlett2013-06-241-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
* s4-schema: rename dsdb_attribute_from_ldb to dsdb_set_attribute_from_ldb ↵Matthieu Patou2012-04-181-2/+2
| | | | and dsdb_class_from_ldb to dsdb_set_class_from_ldb
* LDAP-CLDAP: demonstrate that pdc name is not an unc pathStefan Metzmacher2012-01-041-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
* LDAP-CLDAP: demonstrate that pdc name is an unc pathStefan Metzmacher2012-01-041-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
* s4:torture/ldap/cldap.c - remove the ↵Matthias Dieter Wallnöfer2011-11-271-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
* s4:torture/ldap/basic.c - fix a typoMatthias Dieter Wallnöfer2011-10-271-2/+2
| | | | Reviewed-by: abartlet
* libcli/cldap: don't pass tevent_context to cldap_socket_init()Stefan Metzmacher2011-10-102-6/+6
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Mon Oct 10 23:23:07 CEST 2011 on sn-devel-104
* libcli/cldap: pass tevent_context to cldap_search_send()Stefan Metzmacher2011-10-101-1/+1
| | | | metze
* libcli/cldap: pass tevent_context to cldap_netlogon_send()Stefan Metzmacher2011-10-101-1/+2
| | | | metze
* s4-libcli Remove resolve_name() as it conflicts with Samba3.Andrew Bartlett2011-05-031-1/+2
| | | | | | | This was just a wrapper around resolve_name_ex(), so just call that instead. Andrew Bartlett
* Fix some typesJelmer Vernooij2011-02-281-1/+1
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Mon Feb 28 23:30:06 CET 2011 on sn-devel-104
* ldb: use #include <ldb.h> for ldbAndrew Tridgell2011-02-101-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>
* s4-smbtorture: Make test names lowercase and dot-separated.Jelmer Vernooij2010-12-111-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
* s4:dsdb - remove "samdb_result_uint", "samdb_result_int64", ↵Matthias Dieter Wallnöfer2010-10-151-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>
* s4:torture/ldap: close connections with an UnbindRequestStefan Metzmacher2010-09-271-0/+29
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Mon Sep 27 07:14:23 UTC 2010 on sn-devel-104
* LDAP-BASIC: test AbandonRequestStefan Metzmacher2010-09-271-0/+41
| | | | metze
* s4-loadparm: 2nd half of lp_ to lpcfg_ conversionAndrew Tridgell2010-07-162-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>
* s4:torture/ldap/basic.c - add more error code/messages testsMatthias Dieter Wallnöfer2010-06-191-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).
* s4:libcli/ldap Rename ldap.h to libcli_ldap.hAndrew Bartlett2010-05-211-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
* Finish removal of iconv_convenience in public API's.Jelmer Vernooij2010-05-183-32/+27
|
* Added a function to check if an attribute can belong to a filtered replica.Nadezhda Ivanova2010-05-031-0/+17
|
* nbt: samlogon/netlogon structures - unify denominationsMatthias Dieter Wallnöfer2010-04-271-6/+6
|
* Revert "s4:prefer "samdb_*_dn" basedn calls over the "ldb_get_*_dn" functions"Matthias Dieter Wallnöfer2010-04-131-3/+3
| | | | | We should use the "ldb_get_*_basedn" calls since they are available in the LDB library.
* s4:torture/ldap/ldap_sort.c - There should be used the "base_dn" not the ↵Matthias Dieter Wallnöfer2010-04-121-2/+2
| | | | | | "root_dn" for the sort test The (forest) "root_dn" hasn't always to be the same as the (domain) "base_dn"!
* s4:torture: use a connected CLDAP socket.Stefan Metzmacher2010-02-262-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
* s4:torture/ldap/basic.c - add a basic test for referral returnMatthias Dieter Wallnöfer2010-02-251-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.
* s4:torture/ldap/basic.c - add some "const"Matthias Dieter Wallnöfer2010-02-221-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.
* s4/ldap: Test to expoit ldb_ildap bug in case of nested search requestsKamen Mazdrashki2010-01-292-0/+203
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s4:torture/ldap/ldap_sort - Add some casts to suppress warningsMatthias Dieter Wallnöfer2009-12-011-7/+7
|
* s4:dsdb/schema Simplify schema loading from ldb messagesAndrew Bartlett2009-11-121-17/+2
| | | | It turns out that we always add the class/attribute to the schema.
* lib/util Split data_blob_hex_string() into upper and lowerAndrew Bartlett2009-11-121-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
* s4-ldbwrap: added re-use of ldb contexts in ldb_wrap_connect()Andrew Tridgell2009-10-233-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.
* s4-torture: ran minimal_includes.pl over source4/tortureAndrew Tridgell2009-10-205-13/+0
| | | | This reduces compile time somewhat.