Hi Everybody
I need a small sujestion or any help regarding changing my windows password through vb.net code and one more thing is my system is in domain. so that i can even integrate these userid password with my applications also so that if they change there password at any time the it will effect the same chages even on my aplications
i got one solution that is by calling the perticular api of windows but iam not able to find that api so
Some one please help me
Regadrs
Seshu
I'm not sure about an API that you can call...but to help you get going in the right direction I would suggest looking into Principals and Identity objects.
Principal and Identity objects are used to authenticate and authorize the end user.
Basically every Windows user is logged into their computer. When they log in a Principal object is created with an Identity object that represent the user and their security rights. Since the Principal/Identity object contains security context of the logged-in user, these objects can be used in your code in order to determine what application features should be made available to the user.
You can get the Windows Identity of the logged in user:
-
Imports System.Security.Principal
-
Module SecurityModule
-
Sub Main()
-
Dim winIdent As WindowsIdentity = WindowsIdentity.GetCurrent()
-
Console.WriteLine(winIdent.Name())
-
End Sub
-
End Module
But I'm not sure if your application will be able to change the security levels of the user....or change the user's password.
I'm not sure if I've been any help to you (I've mostly done ASP.NET security and haven't done any Desktop application security yet) but I hope I got you pointed in the right direction.
-Frinny