Multiple calls to ber_printf seem to work better. Closes #106
authorAlan T. DeKok <aland@freeradius.org>
Sun, 19 Sep 2010 06:49:51 +0000 (08:49 +0200)
committerAlan T. DeKok <aland@freeradius.org>
Sun, 19 Sep 2010 06:52:04 +0000 (08:52 +0200)
src/modules/rlm_ldap/edir_ldapext.c

index 8b4b7f5..0c48ee8 100644 (file)
@@ -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)
         {