Lanman does not seem to have a password key or value. Run this code:
use Win32::LanMan qw(NetUserGetInfo); Win32::Lanman::NetUserGetInfo("","Administrator",\%info); foreach $key (keys %info) { print $key . " = " . $info{$key} . "\n"; }
And you see that the output is:
flags = 66049 logon_server = \\* last_logoff = 0 workstations = usr_comment = name = Administrator parms = auth_flags = 0 logon_hours =                       full_name = priv = 2 profile = password_age = 15750588 user_id = 500 units_per_week = 168 max_storage = -1 script_path = home_dir_drive = home_dir = country_code = 0 num_logons = 5 acct_expires = -1 primary_group_id = 513 last_logon = 984601420 password_expired = 0 code_page = 0 comment = Built-in account for administering the computer/domain bad_pw_count = 0
There is no password field. So, you cannot compare them. I would use the AdminMisc module. It will probably work out better for you.

Jeremy

In reply to Re: Re: Re: Using Win32::NetAdmin for passwords by enoch
in thread Using Win32::NetAdmin for passwords by kbradford

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.