Announcement

Collapse
No announcement yet.

Get user's OU and set it as a system variable

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Get user's OU and set it as a system variable

    We are using an Access Database application (don't ask why) that requires us to diffrentiate between users' locations. For example, there is an OU called "NYE". When a user in the NYE OU launches the Access application, access needs to know the users location in order to present the subset of all the data that pertains to the user's location only.
    Thanks,

    Ari

  • #2
    Re: Get user's OU and set it as a system variable

    can you tell us more details from what you want to do???
    I really don't understand what you're objectives are.
    Marcel
    Technical Consultant
    Netherlands
    http://www.phetios.com
    http://blog.nessus.nl

    MCITP(EA, SA), MCSA/E 2003:Security, CCNA, SNAF, DCUCI, CCSA/E/E+ (R60), VCP4/5, NCDA, NCIE - SAN, NCIE - BR, EMCPE
    "No matter how secure, there is always the human factor."

    "Enjoy life today, tomorrow may never come."
    "If you're going through hell, keep going. ~Winston Churchill"

    Comment


    • #3
      Re: Get user's OU and set it as a system variable

      A user could be inside and OU, that is inside an OU, that is inside an OU!

      You need to get the full distinguishedName of the user which will look like:

      dc=local,dc=mydomain,ou=myfirstou,cn=Username or something along those lines, then you need to split that up into an array and use the last ou=.

      Hopefully that will get you on your way
      Server 2000 MCP
      Development: ASP, ASP.Net, PHP, VB, VB.Net, MySQL, MSSQL - Check out my blog http://tonyyeb.blogspot.com

      ** Remember to give credit where credit is due and leave reputation points sigpic where appropriate **

      Comment

      Working...
      X