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
7f988091
Commit
7f988091
authored
Mar 30, 2020
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Mar 30, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adsldp: Map 1.3.6.1.4.1.1466.115.121.1.7 to ADSTYPE_BOOLEAN.
Signed-off-by:
Dmitry Timoshkov
<
dmitry@baikal.ru
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
5a6c8359
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
+15
-0
adsldp.c
dlls/adsldp/adsldp.c
+13
-0
schema.c
dlls/adsldp/schema.c
+2
-0
No files found.
dlls/adsldp/adsldp.c
View file @
7f988091
...
...
@@ -1349,6 +1349,19 @@ static HRESULT add_column_values(LDAP_namespace *ldap, ADS_SEARCH_COLUMN *col,
break
;
}
case
ADSTYPE_BOOLEAN
:
if
(
stricmp
(
values
[
i
]
->
bv_val
,
"TRUE"
))
col
->
pADsValues
[
i
].
u
.
Boolean
=
1
;
else
if
(
stricmp
(
values
[
i
]
->
bv_val
,
"FALSE"
))
col
->
pADsValues
[
i
].
u
.
Boolean
=
0
;
else
{
FIXME
(
"not recognized boolean value %s
\n
"
,
debugstr_an
(
values
[
i
]
->
bv_val
,
values
[
i
]
->
bv_len
));
col
->
pADsValues
[
i
].
u
.
Boolean
=
0
;
}
TRACE
(
"=> %d
\n
"
,
col
->
pADsValues
[
i
].
u
.
Boolean
);
break
;
case
ADSTYPE_INTEGER
:
col
->
pADsValues
[
i
].
u
.
Integer
=
strtol
(
values
[
i
]
->
bv_val
,
NULL
,
10
);
TRACE
(
"%s => %d
\n
"
,
debugstr_an
(
values
[
i
]
->
bv_val
,
values
[
i
]
->
bv_len
),
col
->
pADsValues
[
i
].
u
.
Integer
);
...
...
dlls/adsldp/schema.c
View file @
7f988091
...
...
@@ -58,6 +58,8 @@ ADSTYPEENUM get_schema_type(const WCHAR *name, const struct attribute_type *at,
type
=
find_schema_type
(
name
,
at
,
at_count
);
if
(
!
type
||
!
type
->
syntax
)
return
ADSTYPE_CASE_IGNORE_STRING
;
if
(
!
wcscmp
(
type
->
syntax
,
L"1.3.6.1.4.1.1466.115.121.1.7"
))
return
ADSTYPE_BOOLEAN
;
if
(
!
wcscmp
(
type
->
syntax
,
L"1.3.6.1.4.1.1466.115.121.1.12"
))
return
ADSTYPE_DN_STRING
;
if
(
!
wcscmp
(
type
->
syntax
,
L"1.3.6.1.4.1.1466.115.121.1.15"
))
...
...
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