Return-Path: Delivered-To: apmail-directory-users-archive@www.apache.org Received: (qmail 18393 invoked from network); 1 Sep 2009 15:38:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 1 Sep 2009 15:38:25 -0000 Received: (qmail 52229 invoked by uid 500); 1 Sep 2009 15:38:25 -0000 Delivered-To: apmail-directory-users-archive@directory.apache.org Received: (qmail 52200 invoked by uid 500); 1 Sep 2009 15:38:25 -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 52190 invoked by uid 99); 1 Sep 2009 15:38:25 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Sep 2009 15:38:25 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [212.27.42.91] (HELO wmproxy1-g27.free.fr) (212.27.42.91) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Sep 2009 15:38:15 +0000 Received: from wmproxy1-g27.free.fr (localhost [127.0.0.1]) by wmproxy1-g27.free.fr (Postfix) with ESMTP id 8942C34F9 for ; Tue, 1 Sep 2009 17:37:53 +0200 (CEST) Received: from zimbra3-e1.priv.proxad.net (zimbra3-e1.priv.proxad.net [172.20.243.153]) by wmproxy1-g27.free.fr (Postfix) with ESMTP id 519BB3849 for ; Tue, 1 Sep 2009 17:37:53 +0200 (CEST) Date: Tue, 1 Sep 2009 17:37:53 +0200 (CEST) From: jfmelian@free.fr To: users@directory.apache.org Message-ID: <1407835267.5410171251819473594.JavaMail.root@zimbra3-e1.priv.proxad.net> In-Reply-To: <4A9BEFFF.8080308@nextury.com> Subject: Re: [ANNOUNCE] Apache Directory Server 1.5.5 released MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Originating-IP: [198.8.67.3] X-Mailer: Zimbra 5.0 (ZimbraWebClient - FF3.0 (Win)/5.0.15_GA_2815.UBUNTU8_64) X-Authenticated-User: jfmelian@free.fr X-Virus-Scanned: ClamAV using ClamSMTP X-Virus-Checked: Checked by ClamAV on apache.org thanks=20 ----- "Emmanuel Lecharny" a =C3=A9crit : | jfmelian@free.fr wrote: | > Emmanuel Lecharny wrote: | > > Apache Directory Server 1.5.5 released ! | > > ---------------------------------------- | > >=20 | > > The Apache Directory team is proud to announce that the long | > expected=20 | > > 1.5.5 version has been released yesterday. | > >=20 | > > Downloads are available at=20 | > > http://directory.apache.org/apacheds/1.5/downloads.html | > =20 | > | > Migration from rev 772090 (snapshot 1.5.5) to 1.5.5 | > | > We have embedded the server: | > | > - LdapService has been renamed to LdapServer : setTcpTransport and | setEnableLdaps have been removed | > how to start ldap server now ? | > below the code with LdapService | > | > ldapService.setDirectoryService(service); | > ldapService.setTcpTransport(new TcpTransport(iPort)); | > ldapService.setAllowAnonymousAccess(allowAnonymousAccess); | > ldapService.setEnableLdaps(useSSL); | > | > if (useSSL) | > { | > // to specify a certificate | > // If not then auto generated certificate | > if ((keyStorePath !=3D null) && (keyStorePath.length() > 0)) | > { | > ldapService.setKeystoreFile(keyStorePath); | > if ((certificatePassword !=3D null) | > && (certificatePassword.length() > 0)) | > =20 | ldapService.setCertificatePassword(certificatePassword); | > } | > } | > | > service.setDenormalizeOpAttrsEnabled(true); | > | > // And start the service | > service.startup(); | > ldapService.start(); | > =20 |=20 | here is the way we start the server : |=20 | // Start the directory service if not started yet | directoryService.startup(); |=20 | // Start the LDAP server | ldapServer.start(); |=20 | You have to feed the Transports before, as they are launched in the=20 | ldapServer.start() method : |=20 | public void start() throws Exception | { | for ( Transport transport:transports ) | { | if ( !(transport instanceof TcpTransport ) ) | { | LOG.warn( "Cannot listen on an UDP transport : {}",=20 | transport ); | continue; | } | =20 | IoFilterChainBuilder chain; | =20 | if ( transport.isSSLEnabled() ) | { | loadKeyStore(); | chain =3D LdapsInitializer.init( keyStore,=20 | certificatePassword ); | } | else | { | chain =3D new DefaultIoFilterChainBuilder(); | } | =20 | ((DefaultIoFilterChainBuilder)chain).addLast( "codec", | new ProtocolCodecFilter(=20 | this.getProtocolCodecFactory() ) ); | =20 | ((DefaultIoFilterChainBuilder)chain).addLast( "executor", | new ExecutorFilter( | new UnorderedThreadPoolExecutor(=20 | transport.getNbThreads() ), | IoEventType.MESSAGE_RECEIVED ) ); |=20 | /* | * The server is now initialized, we can | * install the default requests handlers, which need | * access to the DirectoryServer instance. | */ | installDefaultHandlers(); =20 |=20 | startNetwork( transport, chain ); | } | =20 | started =3D true; | } |=20 | (this is done automatically, you don't have to do anything but=20 | instanciating the transports) |=20 | > | > - is Jetty mandatory ? | > if not, jetty-6.1.14.jar, jetty-util-6.1.14.jar and | apacheds-http-integration-1.5.5.jar can be removed ?*** | > =20 | Kiran ? |=20 | > - where I can found apacheds-core-cursor-1.5.5.jar ?=20 | > =20 | It has been moved to shared-cursor-0.9.15 |=20 |=20 | --=20 | -- | cordialement, regards, | Emmanuel L=C3=A9charny | www.iktek.com | directory.apache.org