MetalWerk has asked for the wisdom of the Perl Monks concerning the following question:

Easy question. I need a pm available in ppm that allows my web activeperl script to verify a users login/password against a windows2000 server. I've spent a good part of today looking with no luck. I did a search on ppm for 'authen' but none of returns seem to fit the bill. NTLM just seems too complicated for such a simple task. I just don't want to distribute new passwords to my local users when they're already logged into windows. I don't care if they have to reenter their windows login password at the opening web screen. Thank you
  • Comment on ActivePerl Windows Login and Password question.

Replies are listed 'Best First'.
Re: ActivePerl Windows Login and Password question.
by gellyfish (Monsignor) on Apr 08, 2005 at 15:56 UTC

    Surely it would be simpler (assuming all the clients are using IE of course) to just turn on the "Integrated windows authentication" in IIS (and of course turning off anonymous access) then as long as they already have authenticated to the domain (and have access to the server in question) they should be authenticated seamlessly without having to enter the credentials again.

    /J\

      You can enable Windows Integrated Authentication in Firefox so your clients would not all have to be IE.
      http://www.mozilla.org/projects/netlib/integrated-auth.html
      Basicly there are 3 keys that need the FQDN or partial Domain name of the web server added to them.
      It's let me ditch IE almost completely at the office.
Re: ActivePerl Windows Login and Password question.
by jfroebe (Parson) on Apr 08, 2005 at 19:21 UTC

    Please keep in mind windows 2003 server when you are designing your authentication script else you will have to revisit later on (which isn't so bad unless you move on to another job in the meantime and the next guy/girl ends up stuck with it ;). The authentication for win2k3 is a bit more strict by default (you can enable backwards compatible ntlm authentication) just an fyi/reminder

    Jason L. Froebe

    Team Sybase member

    No one has seen what you have seen, and until that happens, we're all going to think that you're nuts. - Jack O'Neil, Stargate SG-1

      I want to use Win32::AuthenticateUser which seems to fit the bill perfectly. Unfortunately, I don't see it in CPAN and ppm doesn't have it, and it's not with the base load of activeperl on windows2000 server. But this is the functionality I need: use Win32::AuthenticateUser; AuthenticateUser("domain", "user", "passwd"); But it returns: Can't locate Win32/AuthenticateUser.pm in @INC (@INC contains: I:/Perl/lib I:/Perl/site/lib .)
Re: ActivePerl Windows Login and Password question.
by NateTut (Deacon) on Apr 08, 2005 at 16:03 UTC
    See if one of these can help: SSL
      ppm> search ssl
      Searching in Active Repositories
      1. CGI-NeedSSL 0.08 module to check SSL status of a CGI call.
      2. CGI-NeedSSL 0.06 module to check SSL status of a CGI call.
      3. CGI-NeedSSL 0.08 module to check SSL status of a CGI call.
      4. Class-Classless 1.35 framework for classless OOP
      5. Class-Classless 1.34 framework for classless OOP
      6. Class-Classless 1.35 framework for classless OOP
      7. Convert-AcrossLite 0.06 Convert binary AcrossLite puzzle files to te~
      8. Convert-AcrossLite 0.06 Convert binary AcrossLite puzzle files to te~
      9. Crypt-MatrixSSL 0.05 Perl extension for SSL and TLS using MatrixS~
      10. Crypt-MatrixSSL 0.04 Perl extension for SSL and TLS using MatrixS~
      11. Crypt-MatrixSSL 0.05 Perl extension for SSL and TLS using MatrixS~
      12. Lemonldap-Portal-Ss~ 0.03 Perl extension for the Lemonldap SSO system
      13. Lemonldap-Portal-Ss~ 0.01 Perl extension for the Lemonldap SSO system
      14. Lemonldap-Portal-Ss~ 0.02 Perl extension for the Lemonldap SSO system
      15. Lemonldap-Portal-Ss~ 0.03 Perl extension for the Lemonldap SSO system
      16. Parse-AccessLogEntry 0.05
      17. Parse-AccessLogEntry 0.05 (none)
      18. XML-RSSLite 0.11 lightweight, "relaxed" RSS (and XML-ish) par~
      19. XML-RSSLite 0.11 (none)
      ppm>

      This is what ppm is returning on ssl. Not a great selection.