37 key.sk_attrtype = (
char *)
"ou";
44 ok( !
ret,
"ldap_create_sort_controlA failed 0x%x\n",
ret );
50 ret =
ldap_search_ext_sA( ld, (
char *)
"",
LDAP_SCOPE_ONELEVEL, (
char *)
"(ou=*)",
NULL, 0, ctrls,
NULL, &
timeout, 10, &
res );
53 skip(
"test server can't be reached\n");
57 ok( !
ret,
"ldap_search_ext_sA failed 0x%x\n",
ret );
58 ok(
res !=
NULL,
"expected res != NULL\n" );
66 win_skip(
"Test would crash on older wldap32 versions\n");
70 ok( !
ret,
"ldap_parse_resultA failed 0x%x\n",
ret );
95 ret =
ldap_search_extW( ld,
base,
LDAP_SCOPE_SUBTREE,
filter,
NULL, 0,
NULL,
NULL, timelimit, 0, &
message );
98 skip(
"test server can't be reached\n");
101 ok( !
ret,
"ldap_search_extW failed 0x%08x\n",
ret );
104 ret =
ldap_search_extW( ld,
base,
LDAP_SCOPE_SUBTREE,
filter,
NULL, 0,
NULL,
NULL, timelimit, 0, &
message );
105 ok( !
ret,
"ldap_search_extW failed 0x%08x\n",
ret );
115 skip(
"test server can't be reached\n");
123 ok( !
ret,
"ldap_set_optionW failed 0x%08x\n",
ret );
131 ok( !
ret,
"ldap_get_optionW failed 0x%08x\n",
ret );
139 ld =
ldap_initA((
char *)
"ldap.itd.umich.edu", 389 );
140 ok( ld !=
NULL,
"ldap_init failed\n" );
_STLP_MOVE_TO_STD_NAMESPACE void sort(_RandomAccessIter __first, _RandomAccessIter __last)
#define GetProcAddress(x, y)
static const WCHAR version[]
HMODULE WINAPI DECLSPEC_HOTPATCH GetModuleHandleA(LPCSTR lpModuleName)
ULONG CDECL ldap_create_sort_controlA(WLDAP32_LDAP *ld, PLDAPSortKeyA *sortkey, UCHAR critical, PLDAPControlA *control)
ULONG CDECL ldap_control_freeA(LDAPControlA *control)
ULONG CDECL ldap_controls_freeA(LDAPControlA **controls)
WLDAP32_LDAP *CDECL ldap_initA(const PCHAR hostname, ULONG portnumber)
ULONG CDECL ldap_parse_sort_controlA(WLDAP32_LDAP *ld, PLDAPControlA *control, ULONG *result, PCHAR *attr)
ULONG CDECL ldap_parse_resultA(WLDAP32_LDAP *ld, WLDAP32_LDAPMessage *result, ULONG *retcode, PCHAR *matched, PCHAR *error, PCHAR **referrals, PLDAPControlA **serverctrls, BOOLEAN free)
ULONG CDECL ldap_search_extW(WLDAP32_LDAP *ld, PWCHAR base, ULONG scope, PWCHAR filter, PWCHAR attrs[], ULONG attrsonly, PLDAPControlW *serverctrls, PLDAPControlW *clientctrls, ULONG timelimit, ULONG sizelimit, ULONG *message)
ULONG CDECL ldap_search_ext_sA(WLDAP32_LDAP *ld, PCHAR base, ULONG scope, PCHAR filter, PCHAR attrs[], ULONG attrsonly, PLDAPControlA *serverctrls, PLDAPControlA *clientctrls, struct l_timeval *timeout, ULONG sizelimit, WLDAP32_LDAPMessage **res)
GLint GLint GLint GLint GLint GLint GLint GLbitfield GLenum filter
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble * u
static void test_ldap_search_extW(LDAP *ld)
static void test_ldap_set_optionW(LDAP *ld)
static void test_ldap_get_optionW(LDAP *ld)
static void test_ldap_parse_sort_control(LDAP *ld)
ULONG CDECL ldap_get_optionW(WLDAP32_LDAP *ld, int option, void *value)
ULONG CDECL ldap_set_optionW(WLDAP32_LDAP *ld, int option, void *value)
#define LDAP_OPT_REFERRALS
#define LDAP_SCOPE_SUBTREE
WINLDAPAPI ULONG ldap_unbind(LDAP *)
#define LDAP_OPT_PROTOCOL_VERSION
#define LDAP_CONTROL_NOT_FOUND
#define LDAP_SCOPE_ONELEVEL