directory-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jitendra Pandey <jiten...@hortonworks.com>
Subject Re: Kerberos server
Date Tue, 08 Nov 2011 18:26:24 GMT
Hey Kiran,
  The attachment didn't come through.

Thanks a lot for your help.

On Tue, Nov 8, 2011 at 9:37 AM, Kiran Ayyagari <kayyagari@apache.org> wrote:

> Jitendra,
>
>  here is a program that works completely with in-memory partitions
> (the schema gets loaded but schema partition won't work for any sort
> of
>  lookup/modification, this can be fixed with another wrapper, but I
> just didn't work on it, this should serve your needs for just working
> with KDC)
>
>  P.S:- let me know if the attachment gets stripped
>
> On Mon, Nov 7, 2011 at 1:19 PM, Jitendra Pandey
> <jitendra@hortonworks.com> wrote:
> > I am using 1.5.7.
> >
> > On Sun, Nov 6, 2011 at 1:09 PM, Kiran Ayyagari <kayyagari@apache.org>
> wrote:
> >
> >> which version you are using?
> >>
> >> On Fri, Nov 4, 2011 at 4:39 PM, Jitendra Pandey
> >> <jitendra@hortonworks.com> wrote:
> >> > Hey Kiran,
> >> >  Thanks for prompt replies.
> >> >  By 'tweak the schema partition', do you mean that we need to change
> the
> >> > SchemaPartition code?  I would prefer to use released versions of the
> >> code.
> >> >
> >> > Can I just use schema partition obtained below. ?
> >> >
> >> > SchemaPartition schemaPartition =
> >> > service.getSchemaService().getSchemaPartition();
> >> >
> >> > And don't create an ldifPartition and don't call following to wrap?
> >> > schemaPartition.setWrappedPartition( ldifPartition );
> >> >
> >> > Another problem is
> >> >
> >> > SchemaLoader loader = new LdifSchemaLoader( schemaRepository );
> >> > SchemaManager schemaManager = new DefaultSchemaManager( loader );
> >> >
> >> > schemaRepository also expects a file underneath.
> >> >
> >> > Do you have a unit test or something that creates a KDC server with
> all
> >> > in-memory directory-service or just the directory service?
> >> >
> >> >
> >> > On Fri, Nov 4, 2011 at 6:19 AM, Kiran Ayyagari <kayyagari@apache.org>
> >> wrote:
> >> >
> >> >> On Fri, Nov 4, 2011 at 5:12 AM, Jitendra Pandey
> >> >> <jitendra@hortonworks.com> wrote:
> >> >> > I was looking at the Embedded ldap server example at
> >> >> >
> >> >> >
> >> >>
> >>
> http://svn.apache.org/repos/asf/directory/documentation/samples/trunk/embedded-sample/src/main/java/org/apache/directory/seserver/EmbeddedADSVer157.java
> >> >> >
> >> >> >  The method initSchemaPartition uses ldifPartition and
> >> ldifSchemaLoader
> >> >> > and use a working directory.
> >> >> >
> >> >> >  Is there a way I can avoid specifying ldif files and schema
> >> directories?
> >> >> > I don't want to use any files on disk and want to just keep
> >> everything in
> >> >> > memory with capability to add and delete. Is that possible at
all?
> >> >> >
> >> >> it is possible, but you need to tweak the schema partition a bit
> (note
> >> >> that it internally uses AvlPartition anyway but we wrap it in another
> >> >> partition to write the changes back to disk)
> >> >> > On Thu, Nov 3, 2011 at 4:51 PM, Kiran Ayyagari <
> kayyagari@apache.org>
> >> >> wrote:
> >> >> >
> >> >> >> you need to start the DirectoryService anyway like the way
you do
> >> >> >> before starting up the LdapServer
> >> >> >>
> >> >> >> If you can show me your code that will make it easier to find
the
> >> >> >> issue and will hopefully help in sending a quick patch
> >> >> >>
> >> >> >> P.S:- just handling too many things right now so can't whip
a
> >> complete
> >> >> >> sample
> >> >> >>
> >> >> >> On Thu, Nov 3, 2011 at 6:44 PM, Jitendra Pandey
> >> >> >> <jitendra@hortonworks.com> wrote:
> >> >> >> > Hi,
> >> >> >> >   I want to embed  kerberos servers (kdc and authentication
> >> servers)
> >> >> in
> >> >> >> my
> >> >> >> > application.  On the website I found code for embedding
ldap
> server
> >> >> but
> >> >> >> not
> >> >> >> > kerberos. I saw the code for starting kdc in some unit
tests,
> but
> >> I am
> >> >> >> > unable to add principals and passwords in the kdc via
API.
> >> >> >> >  Could you please point me to an example code? Any pointers
to
> >> code or
> >> >> >> > documentation or hints will be greatly helpful.
> >> >> >> >  I intend to use a very simple setup, preferably storing
all
> >> >> principals
> >> >> >> > and passwords etc in memory. I thought I could use AvlPartition
> for
> >> >> that
> >> >> >> > without any persisted files.  If possible I want to avoid
ldif
> >> files
> >> >> and
> >> >> >> > prefer to add and remove principals and passwords via
API. But
> I am
> >> >> >> unable
> >> >> >> > to add principals via the API.
> >> >> >> >
> >> >> >> > regards
> >> >> >> > jitendra
> >> >> >> >
> >> >> >>
> >> >> >>
> >> >> >>
> >> >> >> --
> >> >> >> Kiran Ayyagari
> >> >> >>
> >> >> >
> >> >>
> >> >>
> >> >>
> >> >> --
> >> >> Kiran Ayyagari
> >> >>
> >> >
> >>
> >>
> >>
> >> --
> >> Kiran Ayyagari
> >>
> >
>
>
>
> --
> Kiran Ayyagari
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message