Friday, January 28, 2011

What are the fieldnames in AD for a user?

Im trying to make a c# app that extracts users from AD. And with the AD im working on there are a lot if wierd names for the fields in a user object.

name = fullname
mail = email
telephoneNumber = phone number 

(yeah, not much wierdness yet... but:)

sn = surename
co = country
l = city
st = state

So my question is there a list of the fieldnames that i can extract for a user or are they setup by the administrator (ifso i have to ask him for his crazy keywords)?

  • AD is basically a customized-for-windows LDAP server. Is this and this the kind of information you're looking for?

    There are extensions and alterations that can be made to it, such as for integrating Exchange or other services with AD, so you can't necessarily count on every AD environment being exactly the same. But the basic authentication fields shouldn't change.

    You can google for information on importing/exporting bulk information in AD for information about fields and attributes. There are plenty of tools for moving data to and from text files and AD out there.

    Jason94 : Ah, just what I wanted :-)
    Robert Munteanu : @Jason94: Then you should upvote and accept this answer.
    Jason94 : I have acceptet but i have too little street creed around here to up it, sry.
  • I needed similar information not long ago and found this resource quite usefull : link text

    From Kip
  • I personally use ADExplorer (from SysInternals, now owned by Microsoft) and occasionally ADSIEdit for all of my AD property needs. Really helpful when writing code...

    From gWaldo
  • Yes, use an ldap browser is the easiest way. Or lookup the active directory ldap schema

    From Matthew

0 comments:

Post a Comment