Commit 6d901a17 authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

wldap32: Use a test query that is more likely to succeed within 20 seconds.

parent 822e4cba
......@@ -34,7 +34,7 @@ static void test_ldap_parse_sort_control( LDAP *ld )
LDAPMessage *res = NULL;
struct l_timeval timeout;
key.sk_attrtype = (char *)"cn";
key.sk_attrtype = (char *)"ou";
key.sk_matchruleoid = NULL;
key.sk_reverseorder = FALSE;
......@@ -47,7 +47,7 @@ static void test_ldap_parse_sort_control( LDAP *ld )
ctrls[1] = NULL;
timeout.tv_sec = 20;
timeout.tv_usec = 0;
ret = ldap_search_ext_sA( ld, (char *)"", LDAP_SCOPE_SUBTREE, (char *)"(cn=Verisign*)", NULL, 0, ctrls, NULL, &timeout, 10, &res );
ret = ldap_search_ext_sA( ld, (char *)"", LDAP_SCOPE_ONELEVEL, (char *)"(ou=*)", NULL, 0, ctrls, NULL, &timeout, 10, &res );
ok( !ret, "ldap_search_ext_sA failed 0x%x\n", ret );
if (ret)
{
......@@ -84,7 +84,7 @@ START_TEST (parse)
{
LDAP *ld;
ld = ldap_initA((char *)"directory.verisign.com", 389 );
ld = ldap_initA((char *)"ldap.itd.umich.edu", 389 );
ok( ld != NULL, "ldap_init failed\n" );
test_ldap_parse_sort_control( ld );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment