Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 36877 invoked from network); 6 Aug 2010 22:57:05 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 6 Aug 2010 22:57:05 -0000 Received: (qmail 93141 invoked by uid 500); 6 Aug 2010 22:57:05 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 93097 invoked by uid 500); 6 Aug 2010 22:57:04 -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 93090 invoked by uid 99); 6 Aug 2010 22:57:04 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Aug 2010 22:57:04 +0000 X-ASF-Spam-Status: No, hits=-5.1 required=10.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_MED,RCVD_IN_RP_CERTIFIED,RCVD_IN_RP_SAFE X-Spam-Check-By: apache.org Received-SPF: unknown (athena.apache.org: error in processing during lookup of rbenjamin@ebay.com) Received: from [216.33.244.6] (HELO rhv-mipot-001.corp.ebay.com) (216.33.244.6) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Aug 2010 22:56:57 +0000 DomainKey-Signature: s=corp; d=ebay.com; c=nofws; q=dns; h=X-EBay-Corp:X-IronPort-AV:Received:Received:From:To:Date: Subject:Thread-Topic:Thread-Index:Message-ID:References: In-Reply-To:Accept-Language:Content-Language: X-MS-Has-Attach:X-MS-TNEF-Correlator:acceptlanguage: x-ems-proccessed:x-ems-stamp:Content-Type:MIME-Version: X-CFilter; b=P5z8icHQpFr72uDui6JgCHb5SJXUh2a+C52z2MUAII1Xx6O1Odb/phVM cBkZQnLk8UVC3sk+Lut+YjZSqiG3IxORBep11yh1EzNnNMEPCsu8o7Kpq 25hU2lIIMvQqlzi; DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=ebay.com; i=rbenjamin@ebay.com; q=dns/txt; s=corp; t=1281135417; x=1312671417; h=from:to:date:subject:message-id:references:in-reply-to: mime-version; z=From:=20"Benjamin,=20Roy"=20|To:=20A pache=20Directory=20Developers=20List=20|Date:=20Fri,=206=20Aug=202010=2015:56:33=20-070 0|Subject:=20RE:=20Embedded=20sample=20question |Message-ID:=20|References:=20=0D=0A =09<4C5BD4B5.3010005@gmail.com>=0D=0A=20=0D=0A=20< D205F956606F5043900AEAB6863B480B011E37CD5A@RHV-MEXMS-002. corp.ebay.com>|In-Reply-To:=20 |MIME-Version:=201.0; bh=W2HPH1+1nmK3e3K2hSc1rWdMbA50LmgJ6Fhq6QNHjSY=; b=gSIlZQE1K+mhbaZ4aIONAVG3XRsZ8KtgvngCI9eXs6HPpYqfES0stRDT biDH7CgQYuNZ6eNnDUYD089wsgLO2mtPywKkRZ27MklfLPHpmlh8LYkXe KwL7e7TZB7nkXUW; X-EBay-Corp: Yes X-IronPort-AV: E=Sophos;i="4.55,331,1278313200"; d="scan'208,217";a="74442635" Received: from rhv-vtenf-001.corp.ebay.com (HELO RHV-MEXHT-001.corp.ebay.com) ([10.112.113.52]) by rhv-mipot-001.corp.ebay.com with ESMTP; 06 Aug 2010 15:56:36 -0700 Received: from RHV-MEXMS-002.corp.ebay.com ([10.245.17.114]) by RHV-MEXHT-001.corp.ebay.com ([10.245.24.100]) with mapi; Fri, 6 Aug 2010 15:56:35 -0700 From: "Benjamin, Roy" To: Apache Directory Developers List Date: Fri, 6 Aug 2010 15:56:33 -0700 Subject: RE: Embedded sample question Thread-Topic: Embedded sample question Thread-Index: Acs1UXYZh7juR8zJSViZpoQeA2VTmQAXOlQAAAJyREA= Message-ID: References: <4C5BD4B5.3010005@gmail.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US x-ems-proccessed: 10SqDH0iR7ekR7SRpKqm5A== x-ems-stamp: amAzNnom48vSgCmmcvuvxw== Content-Type: multipart/alternative; boundary="_000_D205F956606F5043900AEAB6863B480B011E37CE32RHVMEXMS002co_" MIME-Version: 1.0 X-CFilter: Scanned --_000_D205F956606F5043900AEAB6863B480B011E37CE32RHVMEXMS002co_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable HI, What I really need to do is to create a dc. I have tried: File pd =3D new File("C:\\doit"); pd.mkdirs(); JdbmPartition partition =3D null; try { JdbmPartitionFactory f =3D new JdbmPartitionFactory= (); partition =3D f.createPartition("sevenseas", "o=3Ds= evenseas", 500, pd); //partition.initialize(); directoryService.addPartition(partition); } catch (Exception e) { e.printStackTrace(); } directoryService.startup(); ldapServer.start(); try { // create the context entry Entry entry =3D new DefaultEntry(new DN("o=3Dsevens= eas")); entry.put("objectClass", "top", "organizationalUnit= ", "extensibleObject"); entry.put("o", "sevenseas"); // add the context entry AddOperationContext adOpContext =3D new AddOperatio= nContext(directoryService.getAdminSession(), entry); directoryService.getOperationManager().add(adOpCont= ext); //directoryService.getPartitionNexus().addContextPa= rtition(partition); } catch (Exception e) { e.printStackTrace(); } which gave me: schema partition directory exists, skipping schema extraction [15:54:06] WARN [org.apache.directory.server.core.DefaultDirectoryService] = - You didn't change the admin password of directory service instance 'null'= . Please update the admin password as soon as possible to prevent a possib= le security breach. [15:54:06] WARN [org.apache.directory.server.core.referral.ReferralIntercep= tor] - could not find objectClass attribute in entry: Entry dn[n]: o=3Dsevenseas objectClass: top objectClass: organizationalUnit objectClass: extensibleObject o: sevenseas [15:54:06] ERROR [org.apache.directory.server.core.schema.SchemaInterceptor= ] - ERR_60 Entry o=3Dsevenseas does not contain a STRUCTURAL ObjectClass org.apache.directory.shared.ldap.exception.LdapSchemaViolationException: ER= R_60 Entry o=3Dsevenseas does not contain a STRUCTURAL ObjectClass at org.apache.directory.server.core.schema.SchemaInterceptor.assertOb= jectClasses(SchemaInterceptor.java:1688) at org.apache.directory.server.core.schema.SchemaInterceptor.check(Sc= hemaInterceptor.java:1416) at org.apache.directory.server.core.schema.SchemaInterceptor.add(Sche= maInterceptor.java:1507) at org.apache.directory.server.core.interceptor.InterceptorChain$Elem= ent$1.add(InterceptorChain.java:1020) at org.apache.directory.server.core.operational.OperationalAttributeI= nterceptor.add(OperationalAttributeInterceptor.java:236) at org.apache.directory.server.core.interceptor.InterceptorChain$Elem= ent$1.add(InterceptorChain.java:1020) at org.apache.directory.server.core.changelog.ChangeLogInterceptor.ad= d(ChangeLogInterceptor.java:105) at org.apache.directory.server.core.interceptor.InterceptorChain$Elem= ent$1.add(InterceptorChain.java:1020) at org.apache.directory.server.core.exception.ExceptionInterceptor.ad= d(ExceptionInterceptor.java:157) at org.apache.directory.server.core.interceptor.InterceptorChain$Elem= ent$1.add(InterceptorChain.java:1020) at org.apache.directory.server.core.admin.AdministrativePointIntercep= tor.add(AdministrativePointInterceptor.java:339) at org.apache.directory.server.core.interceptor.InterceptorChain$Elem= ent$1.add(InterceptorChain.java:1020) at org.apache.directory.server.core.interceptor.BaseInterceptor.add(B= aseInterceptor.java:128) at org.apache.directory.server.core.interceptor.InterceptorChain$Elem= ent$1.add(InterceptorChain.java:1020) at org.apache.directory.server.core.authz.AciAuthorizationInterceptor= .add(AciAuthorizationInterceptor.java:420) at org.apache.directory.server.core.interceptor.InterceptorChain$Elem= ent$1.add(InterceptorChain.java:1020) at org.apache.directory.server.core.referral.ReferralInterceptor.add(= ReferralInterceptor.java:247) at org.apache.directory.server.core.interceptor.InterceptorChain$Elem= ent$1.add(InterceptorChain.java:1020) at org.apache.directory.server.core.authn.AuthenticationInterceptor.a= dd(AuthenticationInterceptor.java:314) at org.apache.directory.server.core.interceptor.InterceptorChain$Elem= ent$1.add(InterceptorChain.java:1020) at org.apache.directory.server.core.normalization.NormalizationInterc= eptor.add(NormalizationInterceptor.java:118) at org.apache.directory.server.core.interceptor.InterceptorChain.add(= InterceptorChain.java:650) at org.apache.directory.server.core.DefaultOperationManager.add(Defau= ltOperationManager.java:265) at org.example.StartStopListener2.contextInitialized(StartStopListene= r2.java:108) at org.apache.catalina.core.StandardContext.listenerStart(StandardCon= text.java:3795) at org.apache.catalina.core.StandardContext.start(StandardContext.jav= a:4252) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerB= ase.java:760) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java= :740) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:5= 44) From: Benjamin, Roy [mailto:rbenjamin@ebay.com] Sent: Friday, August 06, 2010 2:32 PM To: Apache Directory Developers List Subject: Embedded sample question Hi, When I run ApacheDS embedded it has a root object: Root DSE(3) Is this object a 'dc' ? if so, when really is its name, dc=3DRoot or dc=3DRoot DSE, or dc=3DRoo= t DSE(3) Is it possible to change this and or create another dc using the API ? Thanks Roy --_000_D205F956606F5043900AEAB6863B480B011E37CE32RHVMEXMS002co_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

HI,

 

What I really need to do is to create a dc.

 

I have tried:

 

      =             File pd =3D new File("C:\\doit");

      =             pd.mkdir= s();

      =             JdbmPart= ition partition =3D null;

      =             <= b>try {<= span style=3D'font-size:10.0pt;font-family:"Courier New"'>

      =             &nb= sp;     JdbmPartitionFactory f =3D new JdbmPartitionFactory();

      =             &nb= sp;     partition =3D f.createPartition("sevenseas", "o=3Dsevenseas", 500, pd)= ;

      =             &nb= sp;     //partit= ion.initialize();

      =             &nb= sp;     director= yService.addPartit= ion(partition);

      =             } catch (Exceptio= n e) {

      =             &nb= sp;     e.printStackTrace();

      =             }=

 

      =             <= span style=3D'font-size:10.0pt;font-family:"Courier New";color:#0000C0'>director= yService.startup()= ;

      =             <= span style=3D'font-size:10.0pt;font-family:"Courier New";color:#0000C0'>ldapServ= er.start();<= /span>

 

      =             <= b>try {<= span style=3D'font-size:10.0pt;font-family:"Courier New"'>

      =             &nb= sp;     // creat= e the context entry

      =             &nb= sp;     Entry entry =3D new DefaultEntry(new DN("o=3Dsevenseas"));=

      =             &nb= sp;     entry.put("ob= jectClass", <= span style=3D'font-size:10.0pt;font-family:"Courier New";color:#2A00FF'>"to= p", <= span style=3D'font-size:10.0pt;font-family:"Courier New";color:#2A00FF'>"or= ganizationalUnit", <= span style=3D'font-size:10.0pt;font-family:"Courier New";color:#2A00FF'>"ex= tensibleObject");<= span style=3D'font-size:10.0pt;font-family:"Courier New"'>

      =             &nb= sp;     entry.put("o&= quot;, <= span style=3D'font-size:10.0pt;font-family:"Courier New";color:#2A00FF'>"se= venseas");<= span style=3D'font-size:10.0pt;font-family:"Courier New"'>

 

      =             &nb= sp;     // add t= he context entry

      =             &nb= sp;     AddOperationContext adOpContext =3D new AddOperationContext(directoryService.getAdminS= ession(), entry);

      =             &nb= sp;     director= yService.getOperat= ionManager().add(adOpContext);

      =              &n= bsp;    //direct= oryService.getPartitionNexus().addContextPartition(partition);

      =             } catch (Exceptio= n e) {

      =             &nb= sp;     e.printStackTrace();

          &n= bsp;       }

 

 

which gave me:

 

schema partition directory exists, skipping sche= ma extraction

[15:54:06] WARN [org.apache.directory.server.core.DefaultDirectoryService] - You didn't cha= nge the admin password of directory service instance 'null'.  Please updat= e the admin password as soon as possible to prevent a possible security breac= h.

[15:54:06] WARN [org.apache.directory.server.core.referral.ReferralInterceptor] - could not find objectClass attribute in entry: Entry

    dn[n]: o=3Dsevenseas

    objectClass: top

    objectClass: organizationalUn= it

    objectClass: extensibleObject=

    o: sevenseas

 

[15:54:06] ERROR [org.apache.directory.server.core.schema.SchemaInterceptor] - ERR_60 Entry o=3Dsevenseas does not contain a STRUCTURAL ObjectClass

org.apache.directory.shared.ldap.exception.LdapS= chemaViolationException: ERR_60 Entry o=3Dsevenseas does not contain a STRUCTURAL ObjectClass

      at org.apache.directory.server.core.schema.SchemaInterceptor.assertObjectClass= es(SchemaInterceptor.java:1688)

      at org.apache.directory.server.core.schema.SchemaInterceptor.check(SchemaInter= ceptor.java:1416)

      at org.apache.dir= ectory.server.core.schema.SchemaInterceptor.add(SchemaInterceptor.java:1507= )

      at org.apache.directory.server.core.interceptor.InterceptorChain$Element$1.add= (InterceptorChain.java:1020)

      at org.apache.directory.server.core.operational.OperationalAttributeIntercepto= r.add(OperationalAttributeInterceptor.java:236)

      at org.apache.directory.server.core.interceptor.InterceptorChain$Element$1.add= (InterceptorChain.java:1020)

      at org.apache.directory.server.core.changelog.ChangeLogInterceptor.add(ChangeL= ogInterceptor.java:105)

      at org.apache.directory.server.core.interceptor.InterceptorChain$Element$1.add= (InterceptorChain.java:1020)

      at org.apache.directory.server.core.exception.ExceptionInterceptor.add(Excepti= onInterceptor.java:157)

      at org.apache.directory.server.core.interceptor.InterceptorChain$Element$1.add= (InterceptorChain.java:1020)

      at org.apache.directory.server.core.admin.AdministrativePointInterceptor.add(A= dministrativePointInterceptor.java:339)

      at org.apache.directory.server.core.interceptor.InterceptorChain$Element$1.add= (InterceptorChain.java:1020)

      at org.apache.directory.server.core.interceptor.BaseInterceptor.add(BaseInterc= eptor.java:128)

      at org.apache.directory.server.core.interceptor.InterceptorChain$Element$1.add= (InterceptorChain.java:1020)

      at org.apache.dir= ectory.server.core.authz.AciAuthorizationInterceptor.add(AciAuthorizationIn= terceptor.java:420)

      at org.apache.directory.server.core.interceptor.InterceptorChain$Element$1.add= (InterceptorChain.java:1020)

      at org.apache.directory.server.core.referral.ReferralInterceptor.add(ReferralI= nterceptor.java:247)

      at org.apache.directory.server.core.interceptor.InterceptorChain$Element$1.add= (InterceptorChain.java:1020)

      at org.apache.directory.server.core.authn.AuthenticationInterceptor.add(Authen= ticationInterceptor.java:314)

      at org.apache.directory.server.core.interceptor.InterceptorChain$Element$1.add= (InterceptorChain.java:1020)

      at org.apache.directory.server.core.normalization.NormalizationInterceptor.add= (NormalizationInterceptor.java:118)

      at org.apache.dir= ectory.server.core.interceptor.InterceptorChain.add(InterceptorChain.java:6= 50)

      at org.apache.directory.server.core.DefaultOperationManager.add(DefaultOperati= onManager.java:265)

      at org.example.StartStopListener2.contextInitialized(StartStopListener2.java:1= 08)

      at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java= :3795)

      at org.apache.catalina.core.StandardContext.start(StandardContext.java:4252)

      at org.apache.cat= alina.core.ContainerBase.addChildInternal(ContainerBase.java:760)

      at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)

      at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)

 

From: Benjamin, Roy [mailto:rbenjamin@ebay.com]
Sent: Friday, August 06, 2010 2:32 PM
To: Apache Directory Developers List
Subject: Embedded sample question

 

Hi,

 

When I run ApacheDS embedded it has a root object:  Roo= t DSE(3)

 

Is this object a 'dc'  ?

 

if so, when really is its name,   dc=3DRoot  = or dc=3DRoot DSE,  or dc=3DRoot DSE(3)

 

 

Is it possible to change this and or create another dc using= the API ?

 

Thanks

 

Roy

--_000_D205F956606F5043900AEAB6863B480B011E37CE32RHVMEXMS002co_--