Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Nadezhda Ivanova
OpenLDAP
Commits
c2462059
Commit
c2462059
authored
Sep 16, 1998
by
Kurt Zeilenga
Browse files
Add ldap_ prefix to md5 calls.
Patch submitted by Chris Smith <csmith@platform.com>
parent
007cbfc8
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/slapd/back-ldbm/bind.c
View file @
c2462059
...
...
@@ -72,9 +72,9 @@ crypted_value_find(
char
*
userpassword
=
vals
[
i
]
->
bv_val
+
sizeof
(
"{MD5}"
)
-
1
;
MD5Init
(
&
MD5context
);
MD5Update
(
&
MD5context
,
cred
->
bv_val
,
strlen
(
cred
->
bv_val
));
MD5Final
(
MD5digest
,
&
MD5context
);
ldap_
MD5Init
(
&
MD5context
);
ldap_
MD5Update
(
&
MD5context
,
cred
->
bv_val
,
strlen
(
cred
->
bv_val
));
ldap_
MD5Final
(
MD5digest
,
&
MD5context
);
if
(
b64_ntop
(
MD5digest
,
sizeof
(
MD5digest
),
base64digest
,
sizeof
(
base64digest
))
<
0
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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