From 9da24acb53bee272fce0cb3b59e1c59cc314ecad Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Sat, 26 Aug 2006 17:28:07 +0000 Subject: [PATCH] disable X-ORDERED 'VALUES' naming attributes by now --- servers/slapd/dn.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/servers/slapd/dn.c b/servers/slapd/dn.c index 487890ef6a..bbcf5a5388 100644 --- a/servers/slapd/dn.c +++ b/servers/slapd/dn.c @@ -86,6 +86,13 @@ LDAPRDN_validate( LDAPRDN rdn ) ava->la_private = ( void * )ad; } + /* + * Do not allow X-ORDERED 'VALUES' naming attributes + */ + if ( ad->ad_type->sat_flags & SLAP_AT_ORDERED_VAL ) { + return LDAP_INVALID_SYNTAX; + } + /* * Replace attr oid/name with the canonical name */ @@ -379,6 +386,10 @@ LDAPRDN_rewrite( LDAPRDN rdn, unsigned flags, void *ctx ) 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; -- 2.39.5