0

Hi, i'm tryin to use windows authentication to log into an application i have made. I have already worked out how to get the username but i can't figure out how to get the password too.

Is this possible ? if so can anyone suggest any ways to do this or any tutorials please ?

Any suggestions would be great.

Thanks

Chris

2
Contributors
3
Replies
4
Views
6 Years
Discussion Span
Last Post by ChrisHunter
0

Can you get the username as well as the password of the user currently logged in by using WMI or DirectorySetvices ?

My app is just a windows form app and not ASP or a web app is that would make any difference to you suggestion ?

Edited by ChrisHunter: n/a

0

This is what i used to get the Windows identity of the user currently logged in.

System.Security.Principal;

    public partial class CLogin : Form
    {
        public void getName()
        {
            string name = WindowsIdentity.GetCurrent().Name.ToString();
            textBox1.Text = name;
        }
}
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.