Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are the different properties available in System.DirectoryServices.DirectorySearcher.PropertiesToLoad

Everything I've googled just says you can add them as a string array, but doesn't say what the available options are.

What are all the different properties that are available from Directory Services?

like image 462
ganders Avatar asked Apr 05 '12 20:04

ganders


1 Answers

You can put any of the valid LDAP attributes into PropertiesToLoad - see a list of all Active Directory attributes here - what you need is the Ldap-Display-Name for each attribute you're interested in.

Also: Richard Mueller has a site with lots of good info on AD and LDAP - including Excel spreadsheets of the AD attributes (and also a mapping from the Active Directory User & Computer tool to the actual AD attributes being set on those various dialog screens.

like image 178
marc_s Avatar answered Nov 15 '22 13:11

marc_s