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

Re: corrupted binary attributes



At 01:48 AM 6/17/00 +0800, S.T. Wong wrote:
>I'm testing OpenLDAP 2.0-alpha3 on Solaris 2.6.

Suggest you look at latest devel codes... alpha3 is quite old.

>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.

Yes, it should.  I'll fix it in -devel (and releng 1.2).

>I'm not sure whether it relates to the problem

Likely not.  The typo is likely beign.