mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-14 02:43:04 -05:00
allow "proxied" attributeDescriptions in DN as well (more about ITS#3959)
This commit is contained in:
parent
a1ff59f436
commit
07fd8431c2
1 changed files with 24 additions and 4 deletions
|
|
@ -73,7 +73,12 @@ LDAPRDN_validate( LDAPRDN rdn )
|
|||
|
||||
rc = slap_bv2ad( &ava->la_attr, &ad, &text );
|
||||
if ( rc != LDAP_SUCCESS ) {
|
||||
return LDAP_INVALID_SYNTAX;
|
||||
rc = slap_bv2undef_ad( &ava->la_attr,
|
||||
&ad, &text,
|
||||
SLAP_AD_PROXIED|SLAP_AD_NOINSERT );
|
||||
if ( rc != LDAP_SUCCESS ) {
|
||||
return LDAP_INVALID_SYNTAX;
|
||||
}
|
||||
}
|
||||
|
||||
ava->la_private = ( void * )ad;
|
||||
|
|
@ -132,7 +137,12 @@ LDAPDN_validate( LDAPDN dn )
|
|||
|
||||
rc = slap_bv2ad( &ava->la_attr, &ad, &text );
|
||||
if ( rc != LDAP_SUCCESS ) {
|
||||
return LDAP_INVALID_SYNTAX;
|
||||
rc = slap_bv2undef_ad( &ava->la_attr,
|
||||
&ad, &text,
|
||||
SLAP_AD_PROXIED|SLAP_AD_NOINSERT );
|
||||
if ( rc != LDAP_SUCCESS ) {
|
||||
return LDAP_INVALID_SYNTAX;
|
||||
}
|
||||
}
|
||||
|
||||
ava->la_private = ( void * )ad;
|
||||
|
|
@ -344,7 +354,12 @@ LDAPRDN_rewrite( LDAPRDN rdn, unsigned flags, void *ctx )
|
|||
|
||||
rc = slap_bv2ad( &ava->la_attr, &ad, &text );
|
||||
if ( rc != LDAP_SUCCESS ) {
|
||||
return LDAP_INVALID_SYNTAX;
|
||||
rc = slap_bv2undef_ad( &ava->la_attr,
|
||||
&ad, &text,
|
||||
SLAP_AD_PROXIED|SLAP_AD_NOINSERT );
|
||||
if ( rc != LDAP_SUCCESS ) {
|
||||
return LDAP_INVALID_SYNTAX;
|
||||
}
|
||||
}
|
||||
|
||||
ava->la_private = ( void * )ad;
|
||||
|
|
@ -469,7 +484,12 @@ LDAPDN_rewrite( LDAPDN dn, unsigned flags, void *ctx )
|
|||
|
||||
rc = slap_bv2ad( &ava->la_attr, &ad, &text );
|
||||
if ( rc != LDAP_SUCCESS ) {
|
||||
return LDAP_INVALID_SYNTAX;
|
||||
rc = slap_bv2undef_ad( &ava->la_attr,
|
||||
&ad, &text,
|
||||
SLAP_AD_PROXIED|SLAP_AD_NOINSERT );
|
||||
if ( rc != LDAP_SUCCESS ) {
|
||||
return LDAP_INVALID_SYNTAX;
|
||||
}
|
||||
}
|
||||
|
||||
ava->la_private = ( void * )ad;
|
||||
|
|
|
|||
Loading…
Reference in a new issue