hi everyone,

I have a Perl web script running on Apache in Windows, and I'd like to get the Windows usernames of the users who access this script. Everyone who accesses this script will be on intranet and running Windows.

I think I found this exact question at:

http://stackoverflow.com/questions/8751690/using-integrated-windows-authentication-in-a-perl-dancer-app

http://www.perlmonks.org/?node_id=821419

However, the solution presented there was to use Apache2::AuthenNTLM. For my Perl I'm using ActiveState Perl on Windows, and this module does not show up in Perl Package manager. I tried getting it and compiling it, but it does not compile properly under windows. I looked around for other packages to get this information, but most of the other NTLM packages seem to be around the script authenticating itself with NTLM, rather than the script being able to read username using that information.

Does anyone know how I could get AuthenNTLM running under ActiveState Perl, or have ideas for other packages or techniques I could use to solve this problem?

thanks!


In reply to Obtaining Windows username from an intranet ActiveState Perl script by saa

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.