mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-30 03:29:35 -05:00
require ';binary' when appropriate (ITS#5071)
This commit is contained in:
parent
d0baca7a62
commit
32a9d5c7ed
1 changed files with 10 additions and 0 deletions
|
|
@ -265,6 +265,16 @@ str2entry2( char *s, int checkvals )
|
|||
goto fail;
|
||||
}
|
||||
}
|
||||
|
||||
/* require ';binary' when appropriate (ITS#5071) */
|
||||
if ( slap_syntax_is_binary( ad->ad_type->sat_syntax ) && !slap_ad_is_binary( ad ) ) {
|
||||
Debug( LDAP_DEBUG_ANY,
|
||||
"str2entry: attributeType %s #%d: "
|
||||
"needs ';binary' transfer as per syntax %s\n",
|
||||
ad->ad_cname.bv_val, 0,
|
||||
ad->ad_type->sat_syntax->ssyn_oid );
|
||||
goto fail;
|
||||
}
|
||||
}
|
||||
|
||||
if (( ad_prev && ad != ad_prev ) || ( i == lines )) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue