views:

526

answers:

4

I'm building an internal website in Perl and I would like to get it to use Windows credentials for authentication. My research so far has turned up a lot of keywords: Kerberos, LDAP, NTLM, etc, but no solid information. Anyone got pointers or good tutorials?

Thanks.

+3  A: 

Are your servers part of a Microsoft Active Directory?

  • Active Directory is LDAP-compliant. Therefore, you can setup LDAP to authenticate your users

  • Are you using Apache? If so, there is a module that allows you to authenticate to an Active Directory directory: mod_ auth_sspi

  • Finally, Microsoft has created Active Directory Service Interfaces (ASDI) to solve these types of problems. There is a lot of information at MSDN. For example, this is how the open-source Hudson CI server authenticates to Active Directory.

I hope one of these suggestions help you.

William Leara
I think we are using AD. Thanks very much for your pointers. I'm sure one of these ideas will be what I need.
aidan
+3  A: 

We've been using Mod NTML for Apache. It fetches the windows credentials of the user logged in. But you're probably not interested in the SSO?

http://modntlm.sourceforge.net/

Tommy
aidan
+3  A: 

I've been looking into this topic myself. I'm still not sure what the right answer is because the topic is out of my domain of knowledge & experience. But here are some possibilities that I've come up with by searching the Internet:

An Apache LDAP module: http://httpd.apache.org/docs/2.0/mod/mod_auth_ldap.html

A Perl Module for Apache LDAP authentication: http://search.cpan.org/~speeves/Apache2-AuthNetLDAP-0.01/AuthNetLDAP.pm

NT authentication using an Apache Perl Module: http://search.cpan.org/~speeves/Apache2-AuthenSmb-0.01/AuthenSmb.pm

Using NIS for Apache user authentication: http://www.yolinux.com/TUTORIALS/LinuxTutorialApacheAddingLoginSiteProtection.html#NIS

An article describing ActiveDirectory authentication using Apache: http://www.le.ac.uk/cc/sh23/adldap.html

An open source ActiveDirectory solution from a business: http://www.likewise.com/

Kurt W. Leucht
+1  A: 

For Tomcat on Windows you can use Waffle, both SSO and form-based/basic/digest auth.

dblock