From: Alan T. DeKok Date: Sun, 19 Sep 2010 06:49:51 +0000 (+0200) Subject: Multiple calls to ber_printf seem to work better. Closes #106 X-Git-Tag: release_3_0_0_beta0~1235 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=freeradius.git;a=commitdiff_plain;h=f67727e2d6e019246b445a8b6f5d5890aee2d568 Multiple calls to ber_printf seem to work better. Closes #106 --- diff --git a/src/modules/rlm_ldap/edir_ldapext.c b/src/modules/rlm_ldap/edir_ldapext.c index 8b4b7f5..0c48ee8 100644 --- 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 */ - 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) {