You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by Eirik Bjørsnøs <ei...@gmail.com> on 2009/06/07 13:49:27 UTC
State of Kerberos in 1.5.4
Hi guys,
I'm currently looking into creating a JUnit integration test of some
Kerberos/SPNego code in SVNSearch[1].
I had great success in the past using ApacheDS for the same purpose
when testing LDAP integration. The Kerberos support is giving me some
trouble though. The documentation[2] seems to be somewhat lacking and
out of sync with 1.5.4.
Anyway, what I've done so far is:
o Created a unit test that starts ApacheDS with a KdcServer and a
KeyDerivationInterceptor, pretty much copying SaslGssapiBindITest.java
in 1.5.4
o Added kdcConfig.setIpPort(8888); kdcConfig.start(); (Seems like I
need this to make the KDC server start)
o Configured my Mac to use localhost:8888 as the KDC for EXAMPLE.COM
o Run kinit hnelson@EXAMPLE.COM form the Terminal
o Got the error message: "Kerberos Login Failed: Client not found in
Kerberos database"
o Enabling debug logging in the Kerberos code I noticed that "Client
not found in Kerberos database" was actually caused by a
NotImplementedException thrown at
DirectoryPrincipalStore.getPrincipal(DirectoryPrincipalStore.java:95)
Is the Kerberos server actually not implemented in 1.5.4? Or is there
something wrong in the SaslGssapiBindITest setup code?
What are my alternatives? Use an earlier version of ApacheDS or wait
for the next release?
Thanks,
Eirik.
[1] http://svnsearch.org
[2] http://directory.apache.org/apacheds/1.5/54-kerberos-protocol-provider.html
Re: State of Kerberos in 1.5.4
Posted by Eirik Bjørsnøs <ei...@gmail.com>.
On Mon, Jun 8, 2009 at 10:58 AM, Emmanuel Lecharny<el...@apache.org> wrote:
> This is a moving target :)
>
> We voted for a release one month ago, but since, many critical bugs
> appeared, so we postponed the release.
>
> Most of those bugs are now fixed, so we may release soon.
Thanks Emmanuel,
I'm happy to announce that thanks to Apache Directory Server my
Kerberos authentication library[1] now has 100% unit test line
coverage.
Mocking can take you a long way, but being able to write full cycle
integration tests with actual kerberos tickets was great!
Very much looking forward to 1.5.5 as that's currently blocking the
release of my library. After blogging about it last August [2], I'm
still getting email from people begging me to release it :-)
Thanks,
Eirik.
[1] http://simplericity.org/svn/simplericity/trunk/serberuhs/
[2] http://simplericity.com/2008/07/24/1216920300000.html
Re: State of Kerberos in 1.5.4
Posted by Emmanuel Lecharny <el...@apache.org>.
This is a moving target :)
We voted for a release one month ago, but since, many critical bugs
appeared, so we postponed the release.
Most of those bugs are now fixed, so we may release soon.
2009/6/8 Eirik Bjørsnøs <ei...@gmail.com>:
>> The bad news: the current Kerberos implementation is in a bad shape.
>>
>> The good news: Christine fixed some unit tests in the current trunk. So
>> I would suggest to checkout the trunk from [1].
>
> Thanks for the good news Stefan!
>
> My initial testing with trunk looks very promising. hnelson can log in
> successfully. I'll keep you posted once I see how the "real" testing
> goes.
>
> Any idea when 1.5.5 will be released? 1.5.4 has been out for a while now, right?
>
> Thanks,
> Eirik.
>
--
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com
Re: State of Kerberos in 1.5.4
Posted by Eirik Bjørsnøs <ei...@gmail.com>.
> The bad news: the current Kerberos implementation is in a bad shape.
>
> The good news: Christine fixed some unit tests in the current trunk. So
> I would suggest to checkout the trunk from [1].
Thanks for the good news Stefan!
My initial testing with trunk looks very promising. hnelson can log in
successfully. I'll keep you posted once I see how the "real" testing
goes.
Any idea when 1.5.5 will be released? 1.5.4 has been out for a while now, right?
Thanks,
Eirik.
Re: State of Kerberos in 1.5.4
Posted by Stefan Seelmann <se...@apache.org>.
Hi Eirik,
Eirik Bjørsnøs wrote:
> Hi guys,
>
> I'm currently looking into creating a JUnit integration test of some
> Kerberos/SPNego code in SVNSearch[1].
>
> I had great success in the past using ApacheDS for the same purpose
> when testing LDAP integration. The Kerberos support is giving me some
> trouble though. The documentation[2] seems to be somewhat lacking and
> out of sync with 1.5.4.
>
> Anyway, what I've done so far is:
>
> o Created a unit test that starts ApacheDS with a KdcServer and a
> KeyDerivationInterceptor, pretty much copying SaslGssapiBindITest.java
> in 1.5.4
> o Added kdcConfig.setIpPort(8888); kdcConfig.start(); (Seems like I
> need this to make the KDC server start)
> o Configured my Mac to use localhost:8888 as the KDC for EXAMPLE.COM
> o Run kinit hnelson@EXAMPLE.COM form the Terminal
> o Got the error message: "Kerberos Login Failed: Client not found in
> Kerberos database"
> o Enabling debug logging in the Kerberos code I noticed that "Client
> not found in Kerberos database" was actually caused by a
> NotImplementedException thrown at
> DirectoryPrincipalStore.getPrincipal(DirectoryPrincipalStore.java:95)
>
> Is the Kerberos server actually not implemented in 1.5.4? Or is there
> something wrong in the SaslGssapiBindITest setup code?
>
> What are my alternatives? Use an earlier version of ApacheDS or wait
> for the next release?
The bad news: the current Kerberos implementation is in a bad shape.
The good news: Christine fixed some unit tests in the current trunk. So
I would suggest to checkout the trunk from [1].
Kind Regards,
Stefan
[1]
https://svn.apache.org/repos/asf/directory/apacheds/trunk-with-dependencies/