Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
a4a7e8b9
Commit
a4a7e8b9
authored
Sep 19, 2022
by
Hans Leidekker
Committed by
Alexandre Julliard
Nov 15, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wldap32/tests: Switch to db.debian.org.
This server supports secure connections.
parent
eafcb949
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
9 deletions
+17
-9
parse.c
dlls/wldap32/tests/parse.c
+17
-9
No files found.
dlls/wldap32/tests/parse.c
View file @
a4a7e8b9
...
...
@@ -57,7 +57,8 @@ 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_ONELEVEL
,
(
char
*
)
"(ou=*)"
,
NULL
,
0
,
ctrls
,
NULL
,
&
timeout
,
10
,
&
res
);
ret
=
ldap_search_ext_sA
(
ld
,
(
char
*
)
"dc=debian,dc=org"
,
LDAP_SCOPE_ONELEVEL
,
(
char
*
)
"(uid=*)"
,
NULL
,
0
,
ctrls
,
NULL
,
&
timeout
,
10
,
&
res
);
if
(
ret
==
LDAP_SERVER_DOWN
||
ret
==
LDAP_TIMEOUT
)
{
skip
(
"test server can't be reached
\n
"
);
...
...
@@ -140,8 +141,8 @@ static void test_ldap_bind_sA( void )
ULONG
ret
;
int
version
;
ld
=
ldap_
initA
(
(
char
*
)
"ldap.forumsys.com"
,
389
);
ok
(
ld
!=
NULL
,
"ldap_init failed
\n
"
);
ld
=
ldap_
sslinitA
(
(
char
*
)
"db.debian.org"
,
636
,
1
);
ok
(
ld
!=
NULL
,
"ldap_
ssl
init failed
\n
"
);
version
=
LDAP_VERSION3
;
ret
=
ldap_set_optionW
(
ld
,
LDAP_OPT_PROTOCOL_VERSION
,
&
version
);
...
...
@@ -155,9 +156,16 @@ static void test_ldap_bind_sA( void )
ret
=
ldap_connect
(
ld
,
NULL
);
ok
(
!
ret
,
"ldap_connect failed %#lx
\n
"
,
ret
);
ret
=
ldap_bind_sA
(
ld
,
(
char
*
)
"CN=read-only-admin,DC=example,DC=com"
,
(
char
*
)
"password"
,
LDAP_AUTH_SIMPLE
);
ok
(
!
ret
,
"ldap_bind_s failed %#lx
\n
"
,
ret
);
ret
=
ldap_bind_sA
(
ld
,
(
char
*
)
"uid=winetest,ou=users,dc=debian,dc=org"
,
(
char
*
)
"winetest"
,
LDAP_AUTH_SIMPLE
);
ok
(
ret
==
LDAP_INVALID_CREDENTIALS
,
"ldap_bind_s returned %#lx
\n
"
,
ret
);
ldap_unbind
(
ld
);
ld
=
ldap_sslinitA
(
(
char
*
)
"db.debian.org"
,
389
,
0
);
ok
(
ld
!=
NULL
,
"ldap_sslinit failed
\n
"
);
ret
=
ldap_connect
(
ld
,
NULL
);
ok
(
!
ret
,
"ldap_connect failed %#lx
\n
"
,
ret
);
ldap_unbind
(
ld
);
}
...
...
@@ -171,7 +179,7 @@ static void test_ldap_server_control( void )
LDAPControlW
*
ctrls
[
2
],
mask
;
LDAPMessage
*
res
;
ld
=
ldap_initA
(
(
char
*
)
"
ldap.forumsys.com
"
,
389
);
ld
=
ldap_initA
(
(
char
*
)
"
db.debian.org
"
,
389
);
ok
(
ld
!=
NULL
,
"ldap_init failed
\n
"
);
version
=
LDAP_VERSION3
;
...
...
@@ -197,7 +205,7 @@ static void test_ldap_server_control( void )
ok
(
ret
==
LDAP_PARAM_ERROR
,
"ldap_set_optionW should fail: %#lx
\n
"
,
ret
);
res
=
NULL
;
ret
=
ldap_search_sA
(
ld
,
(
char
*
)
"
OU=scientists,DC=example,DC=com
"
,
LDAP_SCOPE_BASE
,
(
char
*
)
"(objectclass=*)"
,
NULL
,
FALSE
,
&
res
);
ret
=
ldap_search_sA
(
ld
,
(
char
*
)
"
dc=debian,dc=org
"
,
LDAP_SCOPE_BASE
,
(
char
*
)
"(objectclass=*)"
,
NULL
,
FALSE
,
&
res
);
ok
(
!
ret
,
"ldap_search_sA failed %#lx
\n
"
,
ret
);
ok
(
res
!=
NULL
,
"expected res != NULL
\n
"
);
...
...
@@ -215,7 +223,7 @@ static void test_ldap_paged_search(void)
BerElement
*
ber
;
WCHAR
*
attr
;
ld
=
ldap_initA
(
(
char
*
)
"
ldap.forumsys.com
"
,
389
);
ld
=
ldap_initA
(
(
char
*
)
"
db.debian.org
"
,
389
);
ok
(
ld
!=
NULL
,
"ldap_init failed
\n
"
);
version
=
LDAP_VERSION3
;
...
...
@@ -272,7 +280,7 @@ START_TEST (parse)
test_ldap_server_control
();
test_ldap_bind_sA
();
ld
=
ldap_initA
(
(
char
*
)
"ldap.itd.umich.edu
"
,
389
);
ld
=
ldap_initA
(
(
char
*
)
"db.debian.org
"
,
389
);
ok
(
ld
!=
NULL
,
"ldap_init failed
\n
"
);
test_ldap_parse_sort_control
(
ld
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment