network management functions are very useful function to integrate your software with the network services such directory services (LDAP) etc.
In my case i used the LogonUser API to check a valid user/password of a user against the AD, and than i used NetUserGetLocalGroups api to check a valid group to the specific user.
of course you can do it as well with the ADSI api , but i found this easier to use.
note:
your running process should have permission to get the user groups.
Yaniv T
No comments:
Post a Comment