how to extract user DN from AD?

fimchick

OSNN Senior Addict
Joined
14 Mar 2004
Messages
276
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.

Thanks!!!
 
Cool - let me know how it works out. I have only used this tool lightly and haven't attempted that function :)
 
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.
 
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!
 
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 profile posts

Also Hi EP and people. I found this place again while looking through a oooollllllldddd backup. I have filled over 10TB and was looking at my collection of antiques. Any bids on the 500Mhz Win 95 fix?
Any of the SP crew still out there?
Xie wrote on Electronic Punk's profile.
Impressed you have kept this alive this long EP! So many sites have come and gone. :(

Just did some crude math and I apparently joined almost 18yrs ago, how is that possible???
hello peeps... is been some time since i last came here.
Electronic Punk wrote on Sazar's profile.
Rest in peace my friend, been trying to find you and finally did in the worst way imaginable.

Forum statistics

Threads
62,015
Messages
673,494
Members
5,621
Latest member
naeemsafi
Back