Application with other user name and password login -How-?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • MrWoff
    New Member
    • Jun 2011
    • 2

    Application with other user name and password login -How-?

    i can create a user with

    Code:
                    DirectoryEntry AD = new DirectoryEntry("WinNT://" + Environment.MachineName + ",computer");
                    AD.AuthenticationType = AuthenticationTypes.Anonymous;
                    DirectoryEntry ATatorithät = AD.Children.Add("ATUserP3", "user");
                    ATatorithät.Invoke("SetPassword", new object[] { "ATuser" });
                    ATatorithät.Invoke("Put", new object[] { "Description", "User from safe.exe" });
                    ATatorithät.CommitChanges();
    how can my application login with this user?
Working...