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
38d350ef
Commit
38d350ef
authored
Aug 01, 2005
by
Hans Leidekker
Committed by
Alexandre Julliard
Aug 01, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implement ldap_err2string.
parent
d344162f
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
191 additions
and
1 deletion
+191
-1
.cvsignore
dlls/wldap32/.cvsignore
+1
-0
Makefile.in
dlls/wldap32/Makefile.in
+3
-1
error.c
dlls/wldap32/error.c
+31
-0
main.c
dlls/wldap32/main.c
+3
-0
winldap_private.h
dlls/wldap32/winldap_private.h
+2
-0
wldap32.rc
dlls/wldap32/wldap32.rc
+25
-0
wldap32.spec
dlls/wldap32/wldap32.spec
+3
-0
wldap32_En.rc
dlls/wldap32/wldap32_En.rc
+123
-0
No files found.
dlls/wldap32/.cvsignore
View file @
38d350ef
Makefile
Makefile
libwldap32.def
libwldap32.def
wldap32.dll.dbg.c
wldap32.dll.dbg.c
wldap32.res
dlls/wldap32/Makefile.in
View file @
38d350ef
...
@@ -4,7 +4,7 @@ SRCDIR = @srcdir@
...
@@ -4,7 +4,7 @@ SRCDIR = @srcdir@
VPATH
=
@srcdir@
VPATH
=
@srcdir@
MODULE
=
wldap32.dll
MODULE
=
wldap32.dll
IMPORTLIB
=
libwldap32.
$(IMPLIBEXT)
IMPORTLIB
=
libwldap32.
$(IMPLIBEXT)
IMPORTS
=
kernel32
IMPORTS
=
user32
kernel32
EXTRALIBS
=
@LDAPLIBS@
EXTRALIBS
=
@LDAPLIBS@
C_SRCS
=
\
C_SRCS
=
\
...
@@ -15,6 +15,8 @@ C_SRCS = \
...
@@ -15,6 +15,8 @@ C_SRCS = \
main.c
\
main.c
\
search.c
search.c
RC_SRCS
=
wldap32.rc
@MAKE_DLL_RULES@
@MAKE_DLL_RULES@
### Dependencies:
### Dependencies:
dlls/wldap32/error.c
View file @
38d350ef
...
@@ -27,6 +27,7 @@
...
@@ -27,6 +27,7 @@
#include "windef.h"
#include "windef.h"
#include "winbase.h"
#include "winbase.h"
#include "winuser.h"
#include "winnls.h"
#include "winnls.h"
#ifdef HAVE_LDAP_H
#ifdef HAVE_LDAP_H
...
@@ -39,8 +40,38 @@
...
@@ -39,8 +40,38 @@
#include "winldap_private.h"
#include "winldap_private.h"
#include "wldap32.h"
#include "wldap32.h"
extern
HINSTANCE
hwldap32
;
WINE_DEFAULT_DEBUG_CHANNEL
(
wldap32
);
WINE_DEFAULT_DEBUG_CHANNEL
(
wldap32
);
PCHAR
ldap_err2stringA
(
ULONG
err
)
{
static
char
buf
[
256
]
=
""
;
TRACE
(
"(0x%08lx)
\n
"
,
err
);
if
(
err
<=
WLDAP32_LDAP_REFERRAL_LIMIT_EXCEEDED
)
LoadStringA
(
hwldap32
,
err
,
buf
,
256
);
else
LoadStringA
(
hwldap32
,
WLDAP32_LDAP_LOCAL_ERROR
,
buf
,
256
);
return
buf
;
}
PWCHAR
ldap_err2stringW
(
ULONG
err
)
{
static
WCHAR
buf
[
256
]
=
{
0
};
TRACE
(
"(0x%08lx)
\n
"
,
err
);
if
(
err
<=
WLDAP32_LDAP_REFERRAL_LIMIT_EXCEEDED
)
LoadStringW
(
hwldap32
,
err
,
buf
,
256
);
else
LoadStringW
(
hwldap32
,
WLDAP32_LDAP_LOCAL_ERROR
,
buf
,
256
);
return
buf
;
}
/*
/*
* NOTES: does nothing
* NOTES: does nothing
*/
*/
...
...
dlls/wldap32/main.c
View file @
38d350ef
...
@@ -26,6 +26,8 @@
...
@@ -26,6 +26,8 @@
#include "windef.h"
#include "windef.h"
#include "winbase.h"
#include "winbase.h"
HINSTANCE
hwldap32
;
WINE_DEFAULT_DEBUG_CHANNEL
(
wldap32
);
WINE_DEFAULT_DEBUG_CHANNEL
(
wldap32
);
BOOL
WINAPI
DllMain
(
HINSTANCE
hinst
,
DWORD
reason
,
LPVOID
reserved
)
BOOL
WINAPI
DllMain
(
HINSTANCE
hinst
,
DWORD
reason
,
LPVOID
reserved
)
...
@@ -35,6 +37,7 @@ BOOL WINAPI DllMain( HINSTANCE hinst, DWORD reason, LPVOID reserved )
...
@@ -35,6 +37,7 @@ BOOL WINAPI DllMain( HINSTANCE hinst, DWORD reason, LPVOID reserved )
switch
(
reason
)
switch
(
reason
)
{
{
case
DLL_PROCESS_ATTACH
:
case
DLL_PROCESS_ATTACH
:
hwldap32
=
hinst
;
DisableThreadLibraryCalls
(
hinst
);
DisableThreadLibraryCalls
(
hinst
);
break
;
break
;
case
DLL_PROCESS_DETACH
:
case
DLL_PROCESS_DETACH
:
...
...
dlls/wldap32/winldap_private.h
View file @
38d350ef
...
@@ -120,6 +120,8 @@ ULONG ldap_bindA(WLDAP32_LDAP*,PCHAR,PCHAR,ULONG);
...
@@ -120,6 +120,8 @@ ULONG ldap_bindA(WLDAP32_LDAP*,PCHAR,PCHAR,ULONG);
ULONG
ldap_bindW
(
WLDAP32_LDAP
*
,
PWCHAR
,
PWCHAR
,
ULONG
);
ULONG
ldap_bindW
(
WLDAP32_LDAP
*
,
PWCHAR
,
PWCHAR
,
ULONG
);
ULONG
ldap_bind_sA
(
WLDAP32_LDAP
*
,
PCHAR
,
PCHAR
,
ULONG
);
ULONG
ldap_bind_sA
(
WLDAP32_LDAP
*
,
PCHAR
,
PCHAR
,
ULONG
);
ULONG
ldap_bind_sW
(
WLDAP32_LDAP
*
,
PWCHAR
,
PWCHAR
,
ULONG
);
ULONG
ldap_bind_sW
(
WLDAP32_LDAP
*
,
PWCHAR
,
PWCHAR
,
ULONG
);
PCHAR
ldap_err2stringA
(
ULONG
);
PWCHAR
ldap_err2stringW
(
ULONG
);
WLDAP32_LDAP
*
ldap_initA
(
const
PCHAR
,
ULONG
);
WLDAP32_LDAP
*
ldap_initA
(
const
PCHAR
,
ULONG
);
WLDAP32_LDAP
*
ldap_initW
(
const
PWCHAR
,
ULONG
);
WLDAP32_LDAP
*
ldap_initW
(
const
PWCHAR
,
ULONG
);
WLDAP32_LDAP
*
ldap_openA
(
PCHAR
,
ULONG
);
WLDAP32_LDAP
*
ldap_openA
(
PCHAR
,
ULONG
);
...
...
dlls/wldap32/wldap32.rc
0 → 100644
View file @
38d350ef
/*
* Top level resource file for WLDAP32
*
* Copyright 2005 Hans Leidekker
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include "windef.h"
#include "winbase.h"
#include "winuser.h"
#include "wldap32_En.rc"
dlls/wldap32/wldap32.spec
View file @
38d350ef
...
@@ -19,6 +19,9 @@
...
@@ -19,6 +19,9 @@
@ cdecl ldap_bind_s(ptr str str long) ldap_bind_sA
@ cdecl ldap_bind_s(ptr str str long) ldap_bind_sA
@ cdecl ldap_bind_sA(ptr str str long)
@ cdecl ldap_bind_sA(ptr str str long)
@ cdecl ldap_bind_sW(ptr wstr wstr long)
@ cdecl ldap_bind_sW(ptr wstr wstr long)
@ cdecl ldap_err2string(long) ldap_err2stringA
@ cdecl ldap_err2stringA(long)
@ cdecl ldap_err2stringW(long)
@ cdecl ldap_init(str long) ldap_initA
@ cdecl ldap_init(str long) ldap_initA
@ cdecl ldap_initA(str long)
@ cdecl ldap_initA(str long)
@ cdecl ldap_initW(wstr long)
@ cdecl ldap_initW(wstr long)
...
...
dlls/wldap32/wldap32_En.rc
0 → 100644
View file @
38d350ef
/*
* English resources for WLDAP32
*
* Copyright 2005 Hans Leidekker
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
LANGUAGE LANG_ENGLISH, SUBLANG_DEFAULT
STRINGTABLE DISCARDABLE
{
0 "Success"
1 "Operations Error"
2 "Protocol Error"
3 "Time Limit Exceeded"
4 "Size Limit Exceeded"
5 "Compare False"
6 "Compare True"
7 "Authentication Method Not Supported"
8 "Strong Authentication Required"
9 "Referral (v2)"
10 "Referral"
11 "Administration Limit Exceeded"
12 "Unavailable Critical Extension"
13 "Confidentiality Required"
14 ""
15 ""
16 "No Such Attribute"
17 "Undefined Type"
18 "Inappropriate Matching"
19 "Constraint Violation"
20 "Attribute Or Value Exists"
21 "Invalid Syntax"
22 ""
23 ""
24 ""
25 ""
26 ""
27 ""
28 ""
29 ""
30 ""
31 ""
32 "No Such Object"
33 "Alias Problem"
34 "Invalid DN Syntax"
35 "Is Leaf"
36 "Alias Dereference Problem"
37 ""
38 ""
39 ""
40 ""
41 ""
42 ""
43 ""
44 ""
45 ""
46 ""
47 ""
48 "Inappropriate Authentication"
49 "Invalid Credentials"
50 "Insufficient Rights"
51 "Busy"
52 "Unavailable"
53 "Unwilling To Perform"
54 "Loop Detected"
55 ""
56 ""
57 ""
58 ""
59 ""
60 "Sort Control Missing"
61 "Index range error"
62 ""
63 ""
64 "Naming Violation"
65 "Object Class Violation"
66 "Not allowed on Non-leaf"
67 "Not allowed on RDN"
68 "Already Exists"
69 "No Object Class Mods"
70 "Results Too Large"
71 "Affects Multiple DSAs"
72 ""
73 ""
74 ""
75 ""
76 ""
77 ""
78 ""
79 ""
80 "Other"
81 "Server Down"
82 "Local Error"
83 "Encoding Error"
84 "Decoding Error"
85 "Timeout"
86 "Auth Unknown"
87 "Filter Error"
88 "User Cancelled"
89 "Parameter Error"
90 "No Memory"
91 "Can't connect to the LDAP server"
92 "Operation not supported by this version of the LDAP protocol"
93 "Specified control was not found in message"
94 "No result present in message"
95 "More results returned"
96 "Loop while handling referrals"
97 "Referral hop limit exceeded"
}
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