LDAP Authentication

453 views
Skip to first unread message

Xavier

unread,
Jul 23, 2012, 5:35:17 PM7/23/12
to dropwiz...@googlegroups.com
Hello,
LDAP authentication is mentioned as thing in the dropwizard-auth manual, but I can't find an implementation of it. Has anyone done this before? I am going to build it if not.

Cheers,
Xavier

Xavier

unread,
Jul 23, 2012, 11:29:44 PM7/23/12
to dropwiz...@googlegroups.com
On Monday, July 23, 2012 2:35:17 PM UTC-7, Xavier wrote:
Hello,
LDAP authentication is mentioned as thing in the dropwizard-auth manual, but I can't find an implementation of it. Has anyone done this before? I am going to build it if not.

I had to jump through a few hoops to get it working with our LDAP layout, but this should be useful to people. Includes an example of fetching roles for a user.


(fair credit: I stole all the interesting bits from some other code I found lying around the office)
 

Cheers,
Xavier

Coda Hale

unread,
Jul 23, 2012, 11:53:33 PM7/23/12
to dropwiz...@googlegroups.com
Excellent stuff!

We've got something very similar internally, but I figured most LDAP layouts are fairly company-specific, hence the lack of a default implementation.
-- 
Coda Hale
http://codahale.com

Xavier Shay

unread,
Jul 23, 2012, 11:55:41 PM7/23/12
to dropwiz...@googlegroups.com
On Mon, Jul 23, 2012 at 8:53 PM, Coda Hale <coda...@gmail.com> wrote:
> Excellent stuff!
>
> We've got something very similar internally, but I figured most LDAP layouts
> are fairly company-specific, hence the lack of a default implementation.
Agreed, I think it makes sense not to provide a default. Hopefully
this thread will be indexed by google though :)

Xav

Mark Wolfe

unread,
Jul 24, 2012, 9:56:24 PM7/24/12
to dropwiz...@googlegroups.com

Gday Xavier

I have been meaning to pull together a module for LDAP Authentication for a while, your example has given me the kick i needed.

My implementation is very loosely based on your code as your example certainly matches my requirements (mostly) but I need a bit more configurability.

Once it is complete I would love it if you could have a look over it once I push it up onto github.

Thanks for sharing btw.

Regards,

Mark Wolfe

Website: http://www.wolfe.id.au
Reply all
Reply to author
Forward
0 new messages