From e3b9e0a565fb41f6c885b6dd2da76ed2f5dd5f36 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Thu, 30 Jan 2003 21:21:20 +0000 Subject: [PATCH] do not treat extensibleObject as special; add comment about referral --- servers/slapd/add.c | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/servers/slapd/add.c b/servers/slapd/add.c index 4f3af2341d..5ebfaf5181 100644 --- a/servers/slapd/add.c +++ b/servers/slapd/add.c @@ -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; - } } /* -- 2.39.5