Return-Path: X-Original-To: apmail-directory-users-archive@www.apache.org Delivered-To: apmail-directory-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7400516B0 for ; Tue, 19 Apr 2011 16:05:38 +0000 (UTC) Received: (qmail 67906 invoked by uid 500); 19 Apr 2011 16:05:38 -0000 Delivered-To: apmail-directory-users-archive@directory.apache.org Received: (qmail 67883 invoked by uid 500); 19 Apr 2011 16:05:38 -0000 Mailing-List: contact users-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@directory.apache.org Delivered-To: mailing list users@directory.apache.org Received: (qmail 67875 invoked by uid 99); 19 Apr 2011 16:05:38 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Apr 2011 16:05:38 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [198.140.49.38] (HELO CHMAILGW02.tradearca.com) (198.140.49.38) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Apr 2011 16:05:31 +0000 X-IronPort-AV: E=Sophos;i="4.64,240,1301893200"; d="scan'208";a="56295702" Received: from unknown (HELO NJEXHUBP01.ad.NYX.com) ([10.208.64.29]) by CHMAILGW02-int.tradearca.com with ESMTP; 19 Apr 2011 11:05:09 -0500 From: Oleg Konovalov To: "users@directory.apache.org" Date: Tue, 19 Apr 2011 12:05:07 -0400 Subject: RE: Can't create partition Thread-Topic: Can't create partition Thread-Index: Acv+qANun+rOAKQHTWq/kp2Wqn5Q7gAAi8qA Message-ID: References: <1303220119.5886.6.camel@debian-squeeze.nbg.mgm-tp.com> <1303227190.5886.18.camel@debian-squeeze.nbg.mgm-tp.com> <34142EBB-0DCE-41C0-A91F-B0E4E10D9021@marcelot.net> In-Reply-To: <34142EBB-0DCE-41C0-A91F-B0E4E10D9021@marcelot.net> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Wow, I did not realize that there is built-in ApacheDS server in Studio, though I am now connecting to my standalone one (on localhost). It is confusing, they should have marked it as built-in. I can not find its server.xml. Is it running on Tomcat inside Studio's Ecl= ipse ? I assume that when I go to Windows Services and start ApacheDS from there, It is external one on localhost, correct ? It is there I was able to create a new partition. =20 Yes, created new Connection to it. So you are saying that since embedded one doesn't have server.xml, I can't = possibly create partition there ? OK, now need to connect CAS to it to create my single sign-on layer. Thanks a lot for your help, guys ! Oleg. -----Original Message----- From: Pierre-Arnaud Marcelot [mailto:pajbam@gmail.com] On Behalf Of Pierre-= Arnaud Marcelot Sent: Tuesday, April 19, 2011 11:39 AM To: users@directory.apache.org Subject: Re: Can't create partition Hi Oliver, On 19 avr. 2011, at 17:33, Oliver Schmidt wrote: > Did you create a new server under Directory Studio? If so, you now have > two servers: First, the one you installed. Second, the one you created > in Directory Studio (an ApacheDS server gets always delivered with > Directory Studio). Indeed.=20 That's what I think happened for Oleg and the configuration which has been = edited was the configuration of the "standalone" ApacheDS installation and = not the one which was started in Studio. We'll see in the following mails... Thanks, Pierre-Arnaud > Instead of creating a server you can try to create a new _connection_ to > your existing server (the one you installed first). Use basic > authentication and the admin DN uid=3Dadmin,ou=3Dsystem. The password is > "secret". >=20 > Did this help you? >=20 > Am Dienstag, den 19.04.2011, 10:39 -0400 schrieb Oleg Konovalov: >> OK, I uninstalled ApacheDS from WinXP, >> Wiped out its directories, >> Installed it clean, >> Added the following entries to partitions sections of server.xml : >>=20 >> >>=20 >> >>=20 >> Started Apache Directories Studio, >> Started Apache DS from there. >>=20 >> It did NOT create new NamingContexts entries for these 2 items. >>=20 >> Checked logs - only in wrapper.log : >>=20 >> ERROR | wrapper | 2011/04/19 10:17:11 | CreateService failed - The spe= cified service already exists. (0x431) >>=20 >> Yes, there is Apache Directory Service - default in Windows service.=20 >> Startup type - Automatic, but Status - blank (not started). I guess, Stu= dio is a place to start it. >>=20 >>=20 >> What should I do to create a new partition (namingContexts) ? >> What would you recommend ? >>=20 >>=20 >> TIA, >> Oleg. >>=20 >>=20 >> -----Original Message----- >> From: Oleg Konovalov=20 >> Sent: Tuesday, April 19, 2011 9:46 AM >> To: users@directory.apache.org >> Subject: RE: Can't create partition >>=20 >> Oliver, >>=20 >> I use Apache Studio 1.5.3 to access ApacheDS. >>=20 >> Using Windows XP. >> Which log file ? I see 3. >>=20 >> Just reinstalled ApacheDS (on top of the old one). >> In apacheds-rolling log got: >> [09:11:54] ERROR [org.apache.directory.shared.ldap.schema.loader.ldif.Ld= ifSchemaLoader] - ERR_10004 Expecting to find a schema.ldif file in provide= d baseDirectory path 'C:\Program Files\Apache Directory Server\instances\de= fault\partitions\schema\ou=3Dschema.ldif' but no such file found. >> [09:11:54] ERROR [org.apache.directory.daemon.Bootstrapper] - Failed on = null.init(InstallationLayout, String[]) >> java.io.FileNotFoundException: ERR_10004 Expecting to find a schema.ldif= file in provided baseDirectory path 'C:\Program Files\Apache Directory Ser= ver\instances\default\partitions\schema\ou=3Dschema.ldif' but no such file = found. >> at org.apache.directory.shared.ldap.schema.loader.ldif.LdifSchemaLoader= .(LdifSchemaLoader.java:113) >> at org.apache.directory.server.configuration.ApacheDS.initSchema(Apache= DS.java:488) >> at org.apache.directory.server.configuration.ApacheDS.startup(ApacheDS.= java:124) >> at org.apache.directory.server.Service.initLdap(Service.java:136) >> at org.apache.directory.server.Service.init(Service.java:77) >> at org.apache.directory.daemon.Bootstrapper.callInit(Bootstrapper.java:= 154) >>=20 >> in wrapper.log: >>=20 >> INFO | jvm 1 | 2011/04/19 09:11:54 | [09:11:54] ERROR [org.apache.d= irectory.shared.ldap.schema.loader.ldif.LdifSchemaLoader] - ERR_10004 Expec= ting to find a schema.ldif file in provided baseDirectory path 'C:\Program = Files\Apache Directory Server\instances\default\partitions\schema\ou=3Dsche= ma.ldif' but no such file found. >> INFO | jvm 1 | 2011/04/19 09:11:54 | [09:11:54] ERROR [org.apache.d= irectory.daemon.Bootstrapper] - Failed on null.init(InstallationLayout, Str= ing[]) >> INFO | jvm 1 | 2011/04/19 09:11:54 | java.io.FileNotFoundException:= ERR_10004 Expecting to find a schema.ldif file in provided baseDirectory p= ath 'C:\Program Files\Apache Directory Server\instances\default\partitions\= schema\ou=3Dschema.ldif' but no such file found. >> INFO | jvm 1 | 2011/04/19 09:11:54 | at org.apache.directory.share= d.ldap.schema.loader.ldif.LdifSchemaLoader.(LdifSchemaLoader.java:113) >> INFO | jvm 1 | 2011/04/19 09:11:54 | at org.apache.directory.serve= r.configuration.ApacheDS.initSchema(ApacheDS.java:488) >> INFO | jvm 1 | 2011/04/19 09:11:54 | at org.apache.directory.serve= r.configuration.ApacheDS.startup(ApacheDS.java:124) >> INFO | jvm 1 | 2011/04/19 09:11:54 | at org.apache.directory.serve= r.Service.initLdap(Service.java:136) >> INFO | jvm 1 | 2011/04/19 09:11:54 | at org.apache.directory.serve= r.Service.init(Service.java:77) >> INFO | jvm 1 | 2011/04/19 09:11:54 | at org.apache.directory.daemo= n.Bootstrapper.callInit(Bootstrapper.java:154) >> INFO | jvm 1 | 2011/04/19 09:11:54 | at org.apache.directory.daemo= n.TanukiBootstrapper.start(TanukiBootstrapper.java:54) >> INFO | jvm 1 | 2011/04/19 09:11:54 | at org.tanukisoftware.wrapper= .WrapperManager$12.run(WrapperManager.java:2788) >> STATUS | wrapper | 2011/04/19 09:11:56 | <-- Wrapper Stopped >> ERROR | wrapper | 2011/04/19 09:11:57 | The Apache Directory Server - = default service was launched, but failed to start. >>=20 >> No, I haven't touched or removed any ldif files. >>=20 >> I guess, need to wipe out old one and install it for fresh. >>=20 >> What do you think ? >>=20 >> TIA, >> Oleg. >>=20 >>=20 >>=20 >>=20 >> -----Original Message----- >> From: Oliver Schmidt [mailto:oliver.schmidt.wue@arcor.de]=20 >> Sent: Tuesday, April 19, 2011 9:35 AM >> To: users@directory.apache.org >> Subject: Re: Can't create partition >>=20 >> Hi Oleg, >> which tool do you use to access your ApacheDS?=20 >>=20 >> What does the log file say? On Linux, there are two log files. The more >> detailed one should be where the binaries are (C:\Program Files\ >> maybe...). >>=20 >> Oliver >>=20 >> Am Montag, den 18.04.2011, 15:01 -0400 schrieb Oleg Konovalov: >>> Hi, >>>=20 >>>=20 >>>=20 >>> I am completely new to LDAP and ApacheDS, >>>=20 >>> so if I am asking something silly, please bare with me. >>>=20 >>>=20 >>>=20 >>> I am trying to create Single Sign-on layer for few web apps using >>> Spring Security3, CAS, ApacheDS=20 >>>=20 >>> as per "Spring Security 3" book, ch.10. >>>=20 >>> (had many problems, latest - with CAS, but that is besides the scope >>> here). >>>=20 >>>=20 >>>=20 >>> I changed configuration to use external ApacheDS on localhost, >>>=20 >>> Installed ApacheDS 1.5.7 & Studio 1.5.3 >>>=20 >>> Tried to import sample LDIF file and on first node got an exception: >>>=20 >>>=20 >>>=20 >>> Error while importing LDIF >>>=20 >>> - [LDAP: error code 32 - NO_SUCH_OBJECT: failed for Add Request >>>=20 >>> javax.naming.NameNotFoundException: [LDAP: error code 32 - >>>=20 >>> NO_SUCH_OBJECT: failed for >>>=20 >>> Add Request : ClientEntry >>>=20 >>> dn: dc=3Djbcppets,dc=3Dcom >>>=20 >>> objectClass: extensibleObject >>>=20 >>> objectClass: domain >>>=20 >>> objectClass: top >>>=20 >>> dc: jbcppets >>>=20 >>> : ERR_268 Cannot find a partition for dc=3Djbcppets,dc=3Dcom];=20 >>>=20 >>> remaining name 'dc=3Djbcppets,dc=3Dcom' >>>=20 >>> at com.sun.jndi.ldap.LdapCtx.mapErrorCode(Unknown Source) >>>=20 >>> at com.sun.jndi.ldap.LdapCtx.processReturnCode(Unknown >>> Source) >>>=20 >>> at com.sun.jndi.ldap.LdapCtx.processReturnCode(Unknown >>> Source) >>>=20 >>> at com.sun.jndi.ldap.LdapCtx.c_createSubcontext(Unknown >>> Source) >>>=20 >>>=20 >>>=20 >>> Googled up a few interesting replies to that problem, most said that >>> need to create Partition first with 'dc=3Djbcppets,dc=3Dcom' >>>=20 >>>=20 >>>=20 >>> So I tried many times to add segments like that to server.xml >>> partitions section,=20 >>>=20 >>> Following: >>> http://directory.apache.org/apacheds/1.5/143-adding-your-own-partition-= resp-suffix.html >>>=20 >>> Restart server, but still do NOT get new namingContexts in Root DSE. >>>=20 >>>=20 >>>=20 >>> =20 >>>=20 >>>=20 >>>=20 >>> >> suffix=3D"dc=3Djbcppets,dc=3Dcom" optimizerEnabled=3D"true" >>>=20 >>> syncOnWrite=3D"true"> >>>=20 >>> =20 >>>=20 >>> >>>=20 >>> >> cacheSize=3D"100"/> >>>=20 >>> >> attributeId=3D"krb5PrincipalName" cacheSize=3D"100"/> >>>=20 >>> >> cacheSize=3D"100"/> >>>=20 >>> >>>=20 >>> >>>=20 >>> >>>=20 >>>=20 >>>=20 >>> >> suffix=3D"dc=3Djbcppets,dc=3Dcom" optimizerEnabled=3D"true" >>> syncOnWrite=3D"true"/> >>>=20 >>>=20 >>>=20 >>>=20 >>>=20 >>> Interestingly, although originally for dc=3Dexample,dc=3Dcom there wa= s a >>> namingContexts in right panel,=20 >>>=20 >>> there was no entry in RootDSE (as per picture in documentation above), >>>=20 >>> well I added NewContextEntry, so now looks like in the doc. >>>=20 >>>=20 >>>=20 >>> Also tried to rename existing dc=3Dexample,dc=3Dcom into example2: >>> dc=3Dexample2,dc=3Dcom there, restarted server, >>>=20 >>> but it still shows dc=3Dexample,dc=3Dcom , not example2. >>>=20 >>> Is it cached ? >>>=20 >>>=20 >>>=20 >>> Cleared IE cache. Using Win XP. No difference, still same problem. >>>=20 >>>=20 >>>=20 >>> Am I doing something wrong ? >>>=20 >>>=20 >>>=20 >>>=20 >>>=20 >>> Please help ! >>>=20 >>>=20 >>>=20 >>> (I am attaching my full server.xml.) >>>=20 >>> TIA, >>>=20 >>> Oleg. >>>=20 >>>=20 >>>=20 >>>=20 >>>=20 >>>=20 >>>=20 >>> ______________________________________________________________________ >>>=20 >>> Please consider the environment before printing this email. >>>=20 >>> Visit our website at http://www.nyse.com=20 >>> ***********************************************************************= ******=20 >>> Note: The information contained in this message and any attachment to >>> it is privileged, confidential and protected from disclosure. If the >>> reader of this message is not the intended recipient, or an employee >>> or agent responsible for delivering this message to the intended >>> recipient, you are hereby notified that any dissemination, >>> distribution or copying of this communication is strictly prohibited. >>> If you have received this communication in error, please notify the >>> sender immediately by replying to the message, and please delete it >>> from your system. Thank you. NYSE Euronext. >>>=20 >>=20 >>=20 >> Please consider the environment before printing this email. >>=20 >> Visit our website at http://www.nyse.com >>=20 >> **************************************************** >>=20 >> Note: The information contained in this message and any attachment to i= t is privileged, confidential and protected from disclosure. If the reader= of this message is not the intended recipient, or an employee or agent res= ponsible for delivering this message to the intended recipient, you are her= eby notified that any dissemination, distribution or copying of this commun= ication is strictly prohibited. If you have received this communication in= error, please notify the sender immediately by replying to the message, an= d please delete it from your system. Thank you. NYSE Euronext. >=20 >=20 Please consider the environment before printing this email. Visit our website at http://www.nyse.com **************************************************** Note: The information contained in this message and any attachment to it i= s privileged, confidential and protected from disclosure. If the reader of= this message is not the intended recipient, or an employee or agent respon= sible for delivering this message to the intended recipient, you are hereby= notified that any dissemination, distribution or copying of this communica= tion is strictly prohibited. If you have received this communication in er= ror, please notify the sender immediately by replying to the message, and p= lease delete it from your system. Thank you. NYSE Euronext.