mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 00:29:35 -05:00
ITS#6570 part #1 (again), reject RDNs with binary BER values
This commit is contained in:
parent
007cd13010
commit
004540b360
1 changed files with 2 additions and 5 deletions
|
|
@ -302,16 +302,13 @@ LDAPRDN_rewrite( LDAPRDN rdn, unsigned flags, void *ctx )
|
|||
ava->la_attr = ad->ad_cname;
|
||||
|
||||
if( ava->la_flags & LDAP_AVA_BINARY ) {
|
||||
if( ava->la_value.bv_len == 0 ) {
|
||||
/* BER encoding is empty */
|
||||
return LDAP_INVALID_SYNTAX;
|
||||
}
|
||||
/* AVA is binary encoded, not supported */
|
||||
return LDAP_INVALID_SYNTAX;
|
||||
|
||||
/* Do not allow X-ORDERED 'VALUES' naming attributes */
|
||||
} else if( ad->ad_type->sat_flags & SLAP_AT_ORDERED_VAL ) {
|
||||
return LDAP_INVALID_SYNTAX;
|
||||
|
||||
/* AVA is binary encoded, don't muck with it */
|
||||
} else if( flags & SLAP_LDAPDN_PRETTY ) {
|
||||
transf = ad->ad_type->sat_syntax->ssyn_pretty;
|
||||
if( !transf ) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue