Windows Authentication Headers without .NET. Possible?

前端 未结 4 1813
感情败类
感情败类 2021-02-01 11:21

I was wondering if anyone knew of a way to use Windows Authentication without hosting on an ASP site. It\'s an intranet w/ access to LDAP, so I\'m wondering if there\'s a way to

4条回答
  •  鱼传尺愫
    2021-02-01 11:42

    Try Apache mod_ntlm or mod_auth_ntlm_winbind.

    In Ubuntu:

    root@eruditorum.org:~# apt-cache search ntlm apache
    libapache2-authenntlm-perl - Perform Microsoft NTLM and Basic User Authentication
    
    root@eruditorum.org:~# apt-cache show libapache2-authenntlm-perl
    Package: libapache2-authenntlm-perl
    Priority: optional
    Section: universe/perl
    Installed-Size: 192
    Maintainer: Ubuntu MOTU Developers 
    Original-Maintainer: Debian Perl Group 
    Architecture: amd64
    Version: 0.02-5
    Depends: libapache2-mod-perl2, libc6 (>= 2.4), perl (>= 5.10.0-9), perlapi-5.10.0
    Conflicts: libauthen-smb-perl (<= 0.96)
    Filename: pool/universe/liba/libapache2-authenntlm-perl/libapache2-authenntlm-perl_0.02-5_amd64.deb
    Size: 51418
    MD5sum: 46f74ac156f7006d8d71ddbf00097e46
    SHA1: 133aebf896156929d364950c2772c3e1344b9c9b
    SHA256: 0688b38ab145f888a4d111aad12cb7f201dcd6e12ed969af697d3fec4a55c428
    Description: Perform Microsoft NTLM and Basic User Authentication
     The purpose of this module is to perform a user authentication via Microsoft's
     NTLM protocol. This protocol is supported by all versions of the Internet
     Explorer and is mainly useful for intranets. Depending on your preferences
     setting IE will supply your windows logon credentials to the web server
     when the server asks for NTLM authentication. This saves the user to type in
     his/her password again.
     .
     The NTLM protocol performs a challenge/response to exchange a random number
     (nonce) and get back a md4 hash, which is built from the user's password
     and the nonce. This makes sure that no password goes over the wire in plain
     text.
     .
     The main advantage of the Perl implementation is, that it can be easily
     extended to verify the user/password against other sources than a windows
     domain controller.
     .
     The default implementation is to go to the domain controller for the given
     domain and verify the user. If you want to verify the user against another
     source, you can inherit from Apache2::AuthenNTLM and override it's methods.
    Homepage: http://search.cpan.org/dist/Apache2-AuthenNTLM
    Bugs: https://bugs.launchpad.net/ubuntu/+filebug
    Origin: Ubuntu
    

提交回复
热议问题