]> git.sur5r.net Git - openldap/commitdiff
disable X-ORDERED 'VALUES' naming attributes by now
authorPierangelo Masarati <ando@openldap.org>
Sat, 26 Aug 2006 17:28:07 +0000 (17:28 +0000)
committerPierangelo Masarati <ando@openldap.org>
Sat, 26 Aug 2006 17:28:07 +0000 (17:28 +0000)
servers/slapd/dn.c

index 487890ef6a7ea1d8138f2de190d2639730628e9b..bbcf5a53885e3ea9f17135c3b33cf7ba3c236210 100644 (file)
@@ -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;