Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
orbea -
OpenLDAP
Commits
932edf8f
Commit
932edf8f
authored
Dec 03, 2018
by
Howard Chu
Browse files
Use base64 to input DirSync cookie
parent
c65cf6e6
Changes
1
Hide whitespace changes
Inline
Side-by-side
clients/tools/ldapsearch.c
View file @
932edf8f
...
...
@@ -679,10 +679,24 @@ handle_private_option( int i )
*
maxattrp
++
=
'\0'
;
cookiep
=
strchr
(
maxattrp
,
'/'
);
if
(
cookiep
!=
NULL
)
{
*
cookiep
++
=
'\0'
;
if
(
*
cookiep
!=
'\0'
)
{
ber_str2bv
(
cookiep
,
0
,
0
,
&
dirSyncCookie
);
if
(
cookiep
[
1
]
!=
'\0'
)
{
struct
berval
type
;
int
freeval
;
char
save1
,
save2
;
/* dummy type "x"
* to use ldif_parse_line2() */
save1
=
cookiep
[
-
1
];
save2
=
cookiep
[
-
2
];
cookiep
[
-
2
]
=
'x'
;
cookiep
[
-
1
]
=
':'
;
cookiep
[
0
]
=
':'
;
ldif_parse_line2
(
&
cookiep
[
-
2
],
&
type
,
&
dirSyncCookie
,
&
freeval
);
cookiep
[
-
1
]
=
save1
;
cookiep
[
-
2
]
=
save2
;
}
*
cookiep
=
'\0'
;
}
num
=
sscanf
(
cvalue
,
"%d"
,
&
tmp
);
if
(
num
!=
1
)
{
...
...
Write
Preview
Supports
Markdown
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