bellportal Posted October 30, 2003 Posted October 30, 2003 I am writing a programme with two different modules for my school: One is the teacher's/staff section and one is the student's. 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 Quote
Mohsen Posted October 31, 2003 Posted October 31, 2003 Honestly what you're doing is unclear. Aren't 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 Quote
bellportal Posted October 31, 2003 Author Posted October 31, 2003 Sorry, the users are logging on to our domain 'DOMAIN'. I want to be able to find out their logon group... Mike Quote
m7j4p7 Posted December 26, 2003 Posted December 26, 2003 Does anyone have any ideas... please? Quote :) Mike :) He who has a secret, must keep it secret he has a secret to keep......
AlexCode Posted December 26, 2003 Posted December 26, 2003 Ok... I'm going to suppose the school DC (Domain controler) it's at least a Windows 2000 Server. If this is it, it works with the AD (Active Directory) witch, basiclly, it's 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: System.DirectoryServices.Dll Alex :D Quote Software bugs are impossible to detect by anybody except the end user.
m7j4p7 Posted December 29, 2003 Posted December 29, 2003 Thanks, but what is the code I have to use. I have no VB knowledge when working with the AD. Quote :) Mike :) He who has a secret, must keep it secret he has a secret to keep......
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.