indiguy
indiguy

Reputation: 504

Using Integrated Windows Authentication in a Perl Dancer App

I am currently building a web app with Perl Dancer. This app requires users to authenticate using my company's Active Directory. To avoid prompting users for their usernames and passwords, I would like to use Integrated Windows Authentication. However, I am having a hard time locating any documentation that explains how to use this type of authentication with Perl--let alone with the Dancer framework. At this point, I am not sure if I'll be deploying this app on Apache or IIS, so something that can work with both would be preferable. Does anyone have any suggestions to help me get started?

Upvotes: 4

Views: 2168

Answers (1)

Woody2143
Woody2143

Reputation: 443

Checked around and found someone else had had this very question on PerlMonks and it appears to have worked for them. I'm in the process of testing it out right now.

Question on PerlMonks: http://www.perlmonks.org/?node_id=821419

The original poster stated that they used the following guide: http://sivel.net/2007/05/sso-apache-ad-1

All reference using perl module: https://metacpan.org/module/Apache2::AuthenNTLM

Edit: It works!

  1. Make sure your apache config loads the ntlm.conf file

  2. Do not use the entire fqdn for your PDC; just the hostname.

  3. 'PerlSetVar ntlmdebug 1' is helpful. Just remember to turn it off afterwards.

Upvotes: 3

Related Questions