Verify User Credentials

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Martin Hazell

    #1

    Verify User Credentials

    I am writing an app that requires somebody to be a domain
    user on our internal network.

    As our users have a habit of leaving their desktops
    logged in, I would like them to retype their domain
    password to verify it is them.

    How do I verify that a given username and password are
    correct?

    Cheers

    Martin
  • Rob Teixeira [MVP]

    #2
    Re: Verify User Credentials

    P/Invoke.
    Call the LogonUser or LogonUserEx API function

    -Rob Teixeira [MVP]

    "Martin Hazell" <martin.hazell@ toomuchspam.iom creameres.com> wrote in
    message news:019e01c3c4 c6$a2b167d0$a30 1280a@phx.gbl.. .[color=blue]
    > I am writing an app that requires somebody to be a domain
    > user on our internal network.
    >
    > As our users have a habit of leaving their desktops
    > logged in, I would like them to retype their domain
    > password to verify it is them.
    >
    > How do I verify that a given username and password are
    > correct?
    >
    > Cheers
    >
    > Martin[/color]


    Comment

    • Vijaye Raji

      #3
      Re: Verify User Credentials

      LogonUser API?

      -vJ

      "Martin Hazell" <martin.hazell@ toomuchspam.iom creameres.com> wrote in
      message news:019e01c3c4 c6$a2b167d0$a30 1280a@phx.gbl.. .[color=blue]
      > I am writing an app that requires somebody to be a domain
      > user on our internal network.
      >
      > As our users have a habit of leaving their desktops
      > logged in, I would like them to retype their domain
      > password to verify it is them.
      >
      > How do I verify that a given username and password are
      > correct?
      >
      > Cheers
      >
      > Martin[/color]


      Comment

      • Martin Hazell

        #4
        Re: Verify User Credentials

        Thanks - was wondering if there was a way of doing it
        within the framework, but never mind.

        Thanks

        Martin

        [color=blue]
        >-----Original Message-----
        >P/Invoke.
        >Call the LogonUser or LogonUserEx API function
        >
        >-Rob Teixeira [MVP]
        >
        >"Martin Hazell"[/color]
        <martin.hazell@ toomuchspam.iom creameres.com> wrote in[color=blue]
        >message news:019e01c3c4 c6$a2b167d0$a30 1280a@phx.gbl.. .[color=green]
        >> I am writing an app that requires somebody to be a[/color][/color]
        domain[color=blue][color=green]
        >> user on our internal network.
        >>
        >> As our users have a habit of leaving their desktops
        >> logged in, I would like them to retype their domain
        >> password to verify it is them.
        >>
        >> How do I verify that a given username and password are
        >> correct?
        >>
        >> Cheers
        >>
        >> Martin[/color]
        >
        >
        >.
        >[/color]

        Comment

        Working...