projects
/
freeradius.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a55dd2f
)
Multiple calls to ber_printf seem to work better. Closes #106
author
Alan T. DeKok
<aland@freeradius.org>
Sun, 19 Sep 2010 06:49:51 +0000
(08:49 +0200)
committer
Alan T. DeKok
<aland@freeradius.org>
Sun, 19 Sep 2010 06:52:04 +0000
(08:52 +0200)
src/modules/rlm_ldap/edir_ldapext.c
patch
|
blob
|
history
diff --git
a/src/modules/rlm_ldap/edir_ldapext.c
b/src/modules/rlm_ldap/edir_ldapext.c
index
8b4b7f5
..
0c48ee8
100644
(file)
--- a/
src/modules/rlm_ldap/edir_ldapext.c
+++ b/
src/modules/rlm_ldap/edir_ldapext.c
@@
-434,7
+434,11
@@
int berEncodeAuthData(
}
/* BER encode the NMAS Version, the objectDN, and the password */
}
/* BER encode the NMAS Version, the objectDN, and the password */
- rc = ber_printf(requestBer, "{ioooo", RADAUTH_LDAP_EXT_VERSION, utf8ObjPtr, utf8ObjSize, utf8PwdPtr, utf8PwdSize, utf8SeqPtr, utf8SeqSize, utf8NasIPPtr, utf8NasIPSize);
+ rc = ber_printf(requestBer, "{i", RADAUTH_LDAP_EXT_VERSION);
+ rc = ber_printf(requestBer, "o", utf8ObjPtr, utf8ObjSize);
+ rc = ber_printf(requestBer, "o", utf8PwdPtr, utf8PwdSize);
+ rc = ber_printf(requestBer, "o", utf8SeqPtr, utf8SeqSize);
+ rc = ber_printf(requestBer, "o", utf8NasIPPtr, utf8NasIPSize);
if( *auth_state == -2)
{
if( *auth_state == -2)
{