mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
do not treat extensibleObject as special; add comment about referral
This commit is contained in:
parent
cbf7b063e3
commit
e3b9e0a565
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user