[Date Prev][Date Next] [Chronological] [Thread] [Top]

corrupted binary attributes



Hello,

I'm testing OpenLDAP 2.0-alpha3 on Solaris 2.6.  Newly added binary attributes
get corrupted (found in ldapsearch output) after restarting the server.  Found 
there's a typo in ldap_add_ext() in library/libldap/add.c :

        for ( i = 0; attrs[i] != NULL; i++ ) {
                if ( ( attrs[i]->mod_op & LDAP_MOD_BVALUES) != 0 ) {
                        rc = ber_printf( ber, "{s[V]}", attrs[i]->mod_type,
                            attrs[i]->mod_values );
                } else {
                        rc = ber_printf( ber, "{s[v]}", attrs[i]->mod_type,
                            attrs[i]->mod_values );
                }

I think the it should be attrs[i]->mod_bvalues in the first ber_printf. I'm
not sure whether it relates to the problem

Would anyone pls help?  Thanks a lot.

Regards,
ST Wong

-- 
S.T. Wong                           | Email: st-wong@cuhk.edu.hk