Reply
Old April 11th, 2006 Top | #1
 
fimchick's Avatar
OSNN Senior Addict
Joined: March 2004
Location: Somewhere
Posts: 276
Reputation: 220
Power: 104

Default how to extract user DN from AD?

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!!!

The problem with doing nothing all day, is that you never really know when you're done.

Athlon 64 3200+
Asus A8V Deluxe
2gb Corsair ValueSelect Dual Channel DDR 3200
Ati x800XL 256mb
Hdd #1 (SATA 100gb)
Hdd #2 (ATA 80gb)

Check out http://www.resistometer.com
fimchick is offline   Reply With Quote
Old April 12th, 2006 Top | #2

OSNN Folding Team  
kcnychief's Avatar
█▄█ ▀█▄ █
Joined: April 2005
Location: Massachusetts
Posts: 16,949
Reputation: 4941
Power: 305

Default Re: how to extract user DN from AD?

Might be able to do it with ADModify - http://www.gotdotnet.com/workspaces/...8-3e44523f32e2

I know you can use that to make bulk changes, just not sure if you can export with it.

XBOX Live Gamertag: kcnychief
kcnychief is offline   Reply With Quote
Old April 12th, 2006 Top | #3
 
fimchick's Avatar
OSNN Senior Addict
Joined: March 2004
Location: Somewhere
Posts: 276
Reputation: 220
Power: 104

Default Re: how to extract user DN from AD?

Thanks, I will give it a try!

The problem with doing nothing all day, is that you never really know when you're done.

Athlon 64 3200+
Asus A8V Deluxe
2gb Corsair ValueSelect Dual Channel DDR 3200
Ati x800XL 256mb
Hdd #1 (SATA 100gb)
Hdd #2 (ATA 80gb)

Check out http://www.resistometer.com
fimchick is offline   Reply With Quote
Old April 12th, 2006 Top | #4

OSNN Folding Team  
kcnychief's Avatar
█▄█ ▀█▄ █
Joined: April 2005
Location: Massachusetts
Posts: 16,949
Reputation: 4941
Power: 305

Default Re: how to extract user DN from AD?

Cool - let me know how it works out. I have only used this tool lightly and haven't attempted that function

XBOX Live Gamertag: kcnychief
kcnychief is offline   Reply With Quote
Old April 12th, 2006 Top | #5

OSNN Folding Team  
fitz's Avatar
XPista7eopard*ix
Joined: April 2004
Location: Chicagoland
Posts: 4,028
Reputation: 2947
Power: 168

Default Re: how to extract user DN from AD?

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.
fitz is offline   Reply With Quote
Old April 12th, 2006 Top | #6
 
fimchick's Avatar
OSNN Senior Addict
Joined: March 2004
Location: Somewhere
Posts: 276
Reputation: 220
Power: 104

Default Re: how to extract user DN from AD?

Thanks fitz! That's a great one too!!

The problem with doing nothing all day, is that you never really know when you're done.

Athlon 64 3200+
Asus A8V Deluxe
2gb Corsair ValueSelect Dual Channel DDR 3200
Ati x800XL 256mb
Hdd #1 (SATA 100gb)
Hdd #2 (ATA 80gb)

Check out http://www.resistometer.com
fimchick is offline   Reply With Quote
Old April 12th, 2006 Top | #7
 
fimchick's Avatar
OSNN Senior Addict
Joined: March 2004
Location: Somewhere
Posts: 276
Reputation: 220
Power: 104

Default Re: how to extract user DN from AD?

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!

The problem with doing nothing all day, is that you never really know when you're done.

Athlon 64 3200+
Asus A8V Deluxe
2gb Corsair ValueSelect Dual Channel DDR 3200
Ati x800XL 256mb
Hdd #1 (SATA 100gb)
Hdd #2 (ATA 80gb)

Check out http://www.resistometer.com
fimchick is offline   Reply With Quote
Old April 12th, 2006 Top | #8

OSNN Folding Team  
fitz's Avatar
XPista7eopard*ix
Joined: April 2004
Location: Chicagoland
Posts: 4,028
Reputation: 2947
Power: 168

Default Re: how to extract user DN from AD?

glad to help
fitz is offline   Reply With Quote
Old April 13th, 2006 Top | #9

OSNN Folding Team  
Electronic Punk's Avatar
The Last High
Joined: December 2001
Location: London
Posts: 18,510
Blog Entries: 51
Reputation: 3652
Power: 349

Default Re: how to extract user DN from AD?

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.

Electronic Punk is offline   Reply With Quote

Reply

Bookmarks

Thread Tools

Posting Rules

Similar Threads
Thread Thread Starter Forum Replies Last Post
Extract .iso with UltraISO Cosmin Windows Desktop Systems 6 April 7th, 2007 12:16am
got screensaver and want to extract images from it the_music_man Windows Desktop Systems 11 May 31st, 2004 2:50pm
Extract files from Zip Extracting .exe apu95 Windows Desktop Systems 2 March 8th, 2003 1:48am
Windows Extract Wizard Bman Windows Desktop Systems 8 January 12th, 2003 9:15pm
Need to extract from BKF file manually! ECO Windows Desktop Systems 5 May 6th, 2002 5:19am