]> git.sur5r.net Git - openldap/commitdiff
do not treat extensibleObject as special; add comment about referral
authorPierangelo Masarati <ando@openldap.org>
Thu, 30 Jan 2003 21:21:20 +0000 (21:21 +0000)
committerPierangelo Masarati <ando@openldap.org>
Thu, 30 Jan 2003 21:21:20 +0000 (21:21 +0000)
servers/slapd/add.c

index 4f3af2341da259e38dde12f3afc9d5ff4e0d1fd2..5ebfaf5181eda4fd6f57c578fa0b5f410cada714 100644 (file)
@@ -243,18 +243,33 @@ do_add( Connection *conn, Operation *op )
                        goto done;
                }
 
-               /* check for special objectClass */
+               /*
+                * check for special objectClasses: alias, to allow
+                *
+                * dn: DC=alias,DC=example,DC=net
+                * aliasedObjectName: DC=aliased,DC=example,DC=net
+                * objectClass: alias
+                */
                if ( oc == slap_schema.si_oc_alias ) {
                        break;
                }
 
+               /*
+                * FIXME: a referral should be implemented
+                * as exemplified in RFC3296:
+                *
+                *       dn: DC=sub,DC=example,DC=net
+                *       dc: sub
+                *       ref: ldap://B/DC=sub,DC=example,DC=net 
+                *       objectClass: referral
+                *       objectClass: extensibleObject 
+                *
+                * in this case there would be no need to treat
+                * the "referral" objectClass as special.
+                */
                if ( oc == slap_schema.si_oc_referral ) {
                        break;
                }
-
-               if ( oc == slap_schema.si_oc_extensibleObject ) {
-                       break;
-               }
        }
 
        /*