]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/schema_prep.c
fix dirsep's in DN (ITS#5172)
[openldap] / servers / slapd / schema_prep.c
index 7c6b0defa30fe3e8a076151e806c53dbe8a4ed81..b4999b958b75090bd9baf0e1ff18ef1655482643 100644 (file)
@@ -2,7 +2,7 @@
 /* $OpenLDAP$ */
 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  *
- * Copyright 1998-2006 The OpenLDAP Foundation.
+ * Copyright 1998-2007 The OpenLDAP Foundation.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -85,9 +85,9 @@ oidValidate(
 
 
 static int objectClassPretty(
-       struct slap_syntax *syntax,
-       struct berval * in,
-       struct berval * out,
+       Syntax *syntax,
+       struct berval *in,
+       struct berval *out,
        void *ctx )
 {
        ObjectClass *oc;
@@ -241,8 +241,8 @@ objectSubClassMatch(
 static int objectSubClassIndexer( 
        slap_mask_t use,
        slap_mask_t mask,
-       struct slap_syntax *syntax,
-       struct slap_matching_rule *mr,
+       Syntax *syntax,
+       MatchingRule *mr,
        struct berval *prefix,
        BerVarray values,
        BerVarray *keysp,
@@ -532,12 +532,12 @@ static struct slap_schema_ad_map {
                offsetof(struct slap_internal_schema, si_ad_collectiveExclusions) },
 #endif
 
-       { "entryDN", "( 1.3.6.1.4.1.4203.666.1.33 NAME 'entryDN' "   
+       { "entryDN", "( 1.3.6.1.1.20 NAME 'entryDN' "   
                        "DESC 'DN of the entry' "
                        "EQUALITY distinguishedNameMatch "
                        "SYNTAX 1.3.6.1.4.1.1466.115.121.1.12 "
                        "SINGLE-VALUE NO-USER-MODIFICATION USAGE directoryOperation )",
-               NULL, SLAP_AT_HIDE|SLAP_AT_DYNAMIC,
+               NULL, SLAP_AT_DYNAMIC,
                NULL, NULL,
                NULL, NULL, NULL, NULL, NULL,
                offsetof(struct slap_internal_schema, si_ad_entryDN) },
@@ -603,7 +603,7 @@ static struct slap_schema_ad_map {
                        "EQUALITY CSNMatch "
                        "ORDERING CSNOrderingMatch "
                        "SYNTAX 1.3.6.1.4.1.4203.666.11.2.1{64} "
-                       "SINGLE-VALUE NO-USER-MODIFICATION USAGE dSAOperation )",
+                       "NO-USER-MODIFICATION USAGE dSAOperation )",
                NULL, SLAP_AT_HIDE,
                NULL, NULL,
                NULL, NULL, NULL, NULL, NULL,
@@ -986,18 +986,6 @@ static struct slap_schema_ad_map {
                NULL, NULL, NULL, NULL, NULL,
                offsetof(struct slap_internal_schema, si_ad_authPasswordSchemes) },
 #endif
-#ifdef LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND
-       { "krbName", "( 1.3.6.1.4.1.250.1.32 "
-                       "NAME ( 'krbName' 'kerberosName' ) "
-                       "DESC 'Kerberos principal associated with object' "
-                       "EQUALITY caseIgnoreIA5Match "
-                       "SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 "
-                       "SINGLE-VALUE )",
-               NULL, 0,
-               NULL, NULL,
-               NULL, NULL, NULL, NULL, NULL,
-               offsetof(struct slap_internal_schema, si_ad_krbName) },
-#endif
 
        { "description", "( 2.5.4.13 NAME 'description' "
                        "DESC 'RFC4519: descriptive information' "