• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

how to extract user DN from AD?


OSNN Senior Addict
hi guys/gals,

does anyone know of any addins/tools/methods to extract or view the entire DN for a user in active directory?

i'm trying to get a linux box to authenticate via ldap, but i'm afraid i've made a boo-boo when i wrote out the DN manually.



█▄█ ▀█▄ █
Political User
Cool - let me know how it works out. I have only used this tool lightly and haven't attempted that function :)


Woah.. I'm still here?
Staff member
Political User
lots of ways..

You can use vbscript which is very handy.. but you would have to write your own script..

You can use csvde to export every object in Active directory (you can, of course, add filters to export only the objects you are interested in..). CSVDE will show you the full DN..

there are other ways too, but, at the moment, I'm rebuilding my laptop.. if you need more ways, or more info on csvde or vbscript examples (hint: google is your friend) then let me know and I can provide more info tomorrow once my laptop is rebuilt.


OSNN Senior Addict
So i went with CSVDE and it worked great for me. I looked at ADModify but decided not to install since I can't run it over the network. Thanks for your help guys!

Electronic Punk

Staff member
Political User
Yeah I can vouch for CVSDE

Here is the command I use:

csvde -f regions.csv -r objectCategory=person -l "givenName,sN,displayName,department,telephoneNumber,textEncodedORAddress" -d "OU=Regions,DC=landmarc,DC=local"

That exports to a csv caled regionals, best to extract all columns so you can get the data you want and then lastly you select the OU you want to export.

Members online

No members online now.

Latest posts

Latest profile posts

Hello, is there anybody in there? Just nod if you can hear me ...
What a long strange trip it's been. =)

Forum statistics

Latest member