Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

Posted

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

  • 1 month later...
Posted

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

Software bugs are impossible to detect by anybody except the end user.
Posted
Thanks, but what is the code I have to use. I have no VB knowledge when working with the AD.

:) Mike :)

 

He who has a secret, must keep it secret he has a secret to keep......

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...