简体   繁体   English

在 Perl Dancer 应用程序中使用集成的 Windows 身份验证

[英]Using Integrated Windows Authentication in a Perl Dancer App

I am currently building a web app with Perl Dancer.我目前正在使用 Perl Dancer 构建一个网络应用程序。 This app requires users to authenticate using my company's Active Directory.此应用程序要求用户使用我公司的 Active Directory 进行身份验证。 To avoid prompting users for their usernames and passwords, I would like to use Integrated Windows Authentication.为了避免提示用户输入用户名和密码,我想使用集成 Windows 身份验证。 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.但是,我很难找到解释如何在 Perl 中使用此类身份验证的任何文档——更不用说与 Dancer 框架一起使用了。 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.在这一点上,我不确定我是否会在 Apache 或 IIS 上部署这个应用程序,因此可以同时使用两者的东西会更可取。 Does anyone have any suggestions to help me get started?有没有人有任何建议可以帮助我入门?

Checked around and found someone else had had this very question on PerlMonks and it appears to have worked for them.检查周围,发现其他人在 PerlMonks 上有这个问题,它似乎对他们有用。 I'm in the process of testing it out right now.我现在正在测试它。

Question on PerlMonks: http://www.perlmonks.org/?node_id=821419关于 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原始海报说他们使用了以下指南: http : //sivel.net/2007/05/sso-apache-ad-1

All reference using perl module: https://metacpan.org/module/Apache2::AuthenNTLM使用 perl 模块的所有参考: https ://metacpan.org/module/Apache2:: AuthenNTLM

Edit: It works!编辑:它有效!

  1. Make sure your apache config loads the ntlm.conf file确保您的 apache 配置加载了 ntlm.conf 文件

  2. Do not use the entire fqdn for your PDC;不要将整个 fqdn 用于您的 PDC; just the hostname.只是主机名。

  3. 'PerlSetVar ntlmdebug 1' is helpful. 'PerlSetVar ntlmdebug 1' 很有帮助。 Just remember to turn it off afterwards.之后记得关掉它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM