Return-Path: X-Original-To: apmail-directory-dev-archive@www.apache.org Delivered-To: apmail-directory-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D625E17678 for ; Thu, 5 Mar 2015 01:21:31 +0000 (UTC) Received: (qmail 1138 invoked by uid 500); 5 Mar 2015 01:21:31 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 1084 invoked by uid 500); 5 Mar 2015 01:21:31 -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 1073 invoked by uid 99); 5 Mar 2015 01:21:31 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Mar 2015 01:21:31 +0000 Received: from mail-ie0-f181.google.com (mail-ie0-f181.google.com [209.85.223.181]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id 741B31A0292 for ; Thu, 5 Mar 2015 01:21:31 +0000 (UTC) Received: by iecrd18 with SMTP id rd18so72408346iec.5 for ; Wed, 04 Mar 2015 17:21:30 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.107.157.195 with SMTP id g186mr17056217ioe.72.1425518490417; Wed, 04 Mar 2015 17:21:30 -0800 (PST) Received: by 10.36.22.20 with HTTP; Wed, 4 Mar 2015 17:21:30 -0800 (PST) In-Reply-To: References: Date: Thu, 5 Mar 2015 09:21:30 +0800 Message-ID: Subject: Re: Running Apache-DS 2 in Embedded Mode From: Kiran Ayyagari To: Apache Directory Developers List Content-Type: multipart/alternative; boundary=001a11409acc3e003105108063ac --001a11409acc3e003105108063ac Content-Type: text/plain; charset=UTF-8 On Thu, Mar 5, 2015 at 6:05 AM, pranjay singh wrote: > Hi, > > > I was trying to configure apache DS in embedded mode but have hard luck to > do it properly.Able to create the new custom partition for my project, > > The problem i am facing is to enforce the password policies .The problem i > can see is the "ou-config" is not getting created from embedded mode.Tried > doing it from apache ds 2 studio it is working fine. > ou=config is not available in embedded mode You can configure password policy before initializing the DirectoryService by doing: 1. create a PasswordPolicyConfiguration 2. add that to an instance of PpolicyConfigContainer 3. get the AuthenticationInterceptor from DirectoryService instance you have and set the container created in step 2 as interceptor.setPwdPolicies( ppolicyContainer ) 4. initialize the DirectoryService > > Please help me out. > > > Thanks & Regards > Pranjay Singh > > -- Kiran Ayyagari http://keydap.com --001a11409acc3e003105108063ac Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


On Thu, Mar 5, 2015 at 6:05 AM, pranjay singh <pranjayvirgo@gmail= .com> wrote:
Hi,


I was trying to= configure apache DS in embedded mode but have hard luck to do it properly.= Able to create the new custom partition for my project,

The problem i am facing is to enforce the password policies .The prob= lem i can see is the "ou-config" is not getting created from embe= dded mode.Tried doing it from apache ds 2 studio it is working fine.
<= /div>
ou=3Dconfig is not available in embedded mode
You can configure password policy before initializing the Direc= toryService by doing:

1. create a PasswordPolicyConfigura= tion

2. add that to an instance of PpolicyConfigContainer
<= div>
3. get the AuthenticationInterceptor from DirectoryService instance= you have
=C2=A0=C2=A0=C2=A0 and set the container created in= step 2 as
=C2=A0=C2=A0=C2=A0 interceptor.setPwdPolicies( ppo= licyContainer )

=C2=A04. initialize the DirectoryService<= /div>

Please help me out.


Thanks & Regards
Pranja= y Singh




--
Kiran Ayyagari
= http://keydap.com
--001a11409acc3e003105108063ac--