Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 85465 invoked from network); 26 May 2010 10:45:15 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 26 May 2010 10:45:15 -0000 Received: (qmail 65139 invoked by uid 500); 26 May 2010 10:45:14 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 65041 invoked by uid 500); 26 May 2010 10:45:14 -0000 Mailing-List: contact dev-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Apache Directory Developers List" Delivered-To: mailing list dev@directory.apache.org Received: (qmail 64820 invoked by uid 99); 26 May 2010 10:45:14 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 May 2010 10:45:14 +0000 X-ASF-Spam-Status: No, hits=-1466.5 required=10.0 tests=ALL_TRUSTED,AWL X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 May 2010 10:45:13 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o4QAirxO007292 for ; Wed, 26 May 2010 10:44:53 GMT Message-ID: <18702993.57301274870693137.JavaMail.jira@thor> Date: Wed, 26 May 2010 06:44:53 -0400 (EDT) From: "Emmanuel Lecharny (JIRA)" To: dev@directory.apache.org Subject: [jira] Closed: (DIRSERVER-1368) Using Extended Objectclass fails In-Reply-To: <87099454.1242774345753.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/DIRSERVER-1368?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Emmanuel Lecharny closed DIRSERVER-1368. ---------------------------------------- > Using Extended Objectclass fails > -------------------------------- > > Key: DIRSERVER-1368 > URL: https://issues.apache.org/jira/browse/DIRSERVER-1368 > Project: Directory ApacheDS > Issue Type: Bug > Components: core > Affects Versions: 1.5.5 > Environment: Linux - Ubuntu 9.04 > Reporter: Paul Edwards > Assignee: Emmanuel Lecharny > Fix For: 1.5.5 > > Attachments: ApacheDSTest.java, ApacheDSUtils.java > > > I have need to modify the schema. I have everything running smoothly (see previous posts to this group...) I have a situation where I need to extend InetOrgPerson. I have this scenario running successfully under OpenLdap. So I modify ou=schema in apacheDS with: > dn: m-oid=2.16.840.1.113730.3.2.22.249, ou=attributeTypes, cn=inetorgperson, ou=schema > m-oid: 2.16.840.1.113730.3.2.22.249 > m-substr: caseIgnoreSubstringsMatch > m-syntax: 1.3.6.1.4.1.1466.115.121.1.15 > m-equality: caseIgnoreMatch > m-singleValue: TRUE > m-name: accountStatus > m-collective: FALSE > m-obsolete: FALSE > m-usage: USER_APPLICATIONS > objectClass: metaAttributeType > objectClass: metaTop > objectClass: top > m-noUserModification: FALSE > m-description: Account Status > > dn: m-oid=2.16.840.1.113730.3.2.22, ou=objectClasses, cn=inetorgperson, ou=schema > m-oid: 2.16.840.1.113730.3.2.22 > m-obsolete: FALSE > m-may: accountStatus > objectClass: metaObjectClass > objectClass: metaTop > objectClass: top > m-typeObjectClass: STRUCTURAL > m-name: extendPerson > m-supObjectClass: inetOrgPerson > m-description: Extended InetOrgPerson > I can then connect to the apacheDS with third party ldap tools and see that these changes are present. > I then try to add: > dn: cn=pedwards,ou=People,dc=testdomain,dc=co,dc=nz > objectclass: top > objectclass: extendPerson > uid: pedwards > sn: Edwards > cn: pedwards > initials: PE > And I get: > LDAP: error code 65 - OBJECT_CLASS_VIOLATION: failed for Add Request > Attribute initials not declared in objectClasses of entry cn=pedwards,ou=People,dc=testdomain,dc=co,dc=nz > However if I use inetOrgPerson instead of extendPerson, the ldif goes in fine. It seems to me that its ignoring the fact that extendPerson extends inetOrgPerson. > org.apache.directory.shared.ldap.exception.LdapSchemaViolationException: Attribute initials not declared in objectClasses of entry cn=pedwards,ou=People,dc=testdomain,dc=co,dc=nz > at org.apache.directory.server.core.schema.SchemaInterceptor.assertAllAttributesAllowed(SchemaInterceptor.java:1829) > at org.apache.directory.server.core.schema.SchemaInterceptor.check(SchemaInterceptor.java:1703) > at org.apache.directory.server.core.schema.SchemaInterceptor.add(SchemaInterceptor.java:1787) > at org.apache.directory.server.core.interceptor.InterceptorChain$Entry$1.add(InterceptorChain.java:1196) > at org.apache.directory.server.core.operational.OperationalAttributeInterceptor.add(OperationalAttributeInterceptor.java:202) > at org.apache.directory.server.core.interceptor.InterceptorChain$Entry$1.add(InterceptorChain.java:1196) > at org.apache.directory.server.core.changelog.ChangeLogInterceptor.add(ChangeLogInterceptor.java:109) > at org.apache.directory.server.core.interceptor.InterceptorChain$Entry$1.add(InterceptorChain.java:1196) > at org.apache.directory.server.core.exception.ExceptionInterceptor.add(ExceptionInterceptor.java:220) > at org.apache.directory.server.core.interceptor.InterceptorChain$Entry$1.add(InterceptorChain.java:1196) > at org.apache.directory.server.core.interceptor.BaseInterceptor.add(BaseInterceptor.java:129) > at org.apache.directory.server.core.interceptor.InterceptorChain$Entry$1.add(InterceptorChain.java:1196) > at org.apache.directory.server.core.authz.AciAuthorizationInterceptor.add(AciAuthorizationInterceptor.java:448) > at org.apache.directory.server.core.interceptor.InterceptorChain$Entry$1.add(InterceptorChain.java:1196) > at org.apache.directory.server.core.referral.ReferralInterceptor.add(ReferralInterceptor.java:251) > at org.apache.directory.server.core.interceptor.InterceptorChain$Entry$1.add(InterceptorChain.java:1196) > at org.apache.directory.server.core.authn.AuthenticationInterceptor.add(AuthenticationInterceptor.java:212) > at org.apache.directory.server.core.interceptor.InterceptorChain$Entry$1.add(InterceptorChain.java:1196) > at org.apache.directory.server.core.normalization.NormalizationInterceptor.add(NormalizationInterceptor.java:117) > at org.apache.directory.server.core.interceptor.InterceptorChain.add(InterceptorChain.java:756) > at org.apache.directory.server.core.DefaultOperationManager.add(DefaultOperationManager.java:260) > at org.apache.directory.server.core.DefaultCoreSession.add(DefaultCoreSession.java:183) > at org.apache.directory.server.core.DefaultCoreSession.add(DefaultCoreSession.java:169) > at org.apache.directory.server.ldap.handlers.AddHandler.handle(AddHandler.java:57) > at org.apache.directory.server.ldap.handlers.AddHandler.handle(AddHandler.java:39) > at org.apache.directory.server.ldap.handlers.LdapRequestHandler.handleMessage(LdapRequestHandler.java:176) > at org.apache.directory.server.ldap.handlers.LdapRequestHandler.handleMessage(LdapRequestHandler.java:56) > at org.apache.mina.handler.demux.DemuxingIoHandler.messageReceived(DemuxingIoHandler.java:232) > at org.apache.directory.server.ldap.LdapProtocolHandler.messageReceived(LdapProtocolHandler.java:194) > at org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.messageReceived(DefaultIoFilterChain.java:722) > at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:434) > at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:48) > at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:802) > at org.apache.mina.core.filterchain.IoFilterEvent.fire(IoFilterEvent.java:59) > at org.apache.mina.core.session.IoEvent.run(IoEvent.java:64) > at org.apache.mina.filter.executor.OrderedThreadPoolExecutor$Worker.runTask(OrderedThreadPoolExecutor.java:552) > at org.apache.mina.filter.executor.OrderedThreadPoolExecutor$Worker.runTasks(OrderedThreadPoolExecutor.java:544) > at org.apache.mina.filter.executor.OrderedThreadPoolExecutor$Worker.run(OrderedThreadPoolExecutor.java:488) > at java.lang.Thread.run(Thread.java:619) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.