Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Implementing security against AD, user level, group level and roles?

Implementing security against AD, user level, group level and roles?

Scheduled Pinned Locked Moved C#
winformssysadminsecuritytutorialquestion
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Mats Euren
    wrote on last edited by
    #1

    Hi. I'm developing a small Windows forms application on which I must apply logon security. I need to verify that the user exist in the AD, is part of a certain group and has the proper role. I also need to take care of the fact that the computer might not be connected to the network hence no contact with the domain controller. Does anyone have an idea on how to implement this in a simple way?

    A A 2 Replies Last reply
    0
    • M Mats Euren

      Hi. I'm developing a small Windows forms application on which I must apply logon security. I need to verify that the user exist in the AD, is part of a certain group and has the proper role. I also need to take care of the fact that the computer might not be connected to the network hence no contact with the domain controller. Does anyone have an idea on how to implement this in a simple way?

      A Offline
      A Offline
      Abhishek Sur
      wrote on last edited by
      #2

      Well, use base credentials. Once the computer is connected to the network cache the credential to the client, and use it until the next login to server. Get Roles, groups etc data of that particular user which is connected through login to the local cache (might be in database) and use it until it gets online to network again. :rose:

      Abhishek Sur


      My Latest Articles **Create CLR objects in SQL Server 2005 C# Uncommon Keywords Read/Write Excel using OleDB

      **Don't forget to click "Good Answer" if you like to.

      M 1 Reply Last reply
      0
      • A Abhishek Sur

        Well, use base credentials. Once the computer is connected to the network cache the credential to the client, and use it until the next login to server. Get Roles, groups etc data of that particular user which is connected through login to the local cache (might be in database) and use it until it gets online to network again. :rose:

        Abhishek Sur


        My Latest Articles **Create CLR objects in SQL Server 2005 C# Uncommon Keywords Read/Write Excel using OleDB

        **Don't forget to click "Good Answer" if you like to.

        M Offline
        M Offline
        Mats Euren
        wrote on last edited by
        #3

        Allright, but how do I do this (I'm fairly new to C#). Is there some examples out there which I can take a peek at?

        1 Reply Last reply
        0
        • M Mats Euren

          Hi. I'm developing a small Windows forms application on which I must apply logon security. I need to verify that the user exist in the AD, is part of a certain group and has the proper role. I also need to take care of the fact that the computer might not be connected to the network hence no contact with the domain controller. Does anyone have an idea on how to implement this in a simple way?

          A Offline
          A Offline
          April Fans
          wrote on last edited by
          #4

          Hi. I'm developing a small Windows forms application on which I must apply logon security. I need to verify that the user exist in the AD, is part of a certain group and has the proper role. I also need to take care of the fact that the computer might not be connected to the network hence no contact with the domain controller. Does anyone have an idea on how to implement this in a simple way? Reply: if you use 'socket' or other 'object'...,i think they always have a function like 'connect'; try like this way: try { sokcet.connect(); } catch { // not success. // deal it. }

          April Comm100 - Leading Live Chat Software Provider

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups