mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-20 22:59:34 -05:00
ITS#8842 Do some printability checks on the dc RDN
This commit is contained in:
parent
465b1c5972
commit
b0244fc869
1 changed files with 6 additions and 0 deletions
|
|
@ -27,6 +27,7 @@
|
|||
|
||||
#include "ldap-int.h"
|
||||
#include "ldap_schema.h"
|
||||
#include "ldif.h"
|
||||
|
||||
/* extension to UFN that turns trailing "dc=value" rdns in DNS style,
|
||||
* e.g. "ou=People,dc=openldap,dc=org" => "People, openldap.org" */
|
||||
|
|
@ -2478,6 +2479,11 @@ dn2domain( LDAPDN dn, struct berval *bv, int pos, int *iRDN )
|
|||
break;
|
||||
}
|
||||
|
||||
if ( ldif_is_not_printable( ava->la_value.bv_val, ava->la_value.bv_len ) ) {
|
||||
domain = 0;
|
||||
break;
|
||||
}
|
||||
|
||||
domain = 1;
|
||||
|
||||
if ( first ) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue