Get group...

bellportal

Member
Joined
Oct 30, 2003
Messages
5
I am writing a programme with two different modules for my school:

One is the teachers/staff section and one is the students. All our users are split into windows groups either DOMAIN\Staff or DOMAIN\Pupils. How can I use VB.NET to determine which of these groups the currently logged-on user belongs to?

Mike
 
Honestly what youre doing is unclear. Arent u saving users in a database? If not just save them in a local table. In that table you save the the username, password, ID, and group ID. From the group ID you specify to which group the user belongs to.
Cheers,
Mohsen
 
Ok...

Im going to suppose the school DC (Domain controler) its at least a Windows 2000 Server.
If this is it, it works with the AD (Active Directory) witch, basiclly, its a database that stores all network configurations.

To work with the AD, the Framework give us a propper namespace. Add this reference to your project and try it:

Code:
System.DirectoryServices.Dll
Alex :D
 
Thanks, but what is the code I have to use. I have no VB knowledge when working with the AD.
 
Back
Top