Page 1 of 1 1
Topic Options
#138203 - 2005-04-19 06:25 PM New AD Challenge
oobnuker Offline
Getting the hang of it

Registered: 2003-12-09
Posts: 87
Loc: Oxford, CT
Now that I have begun moving forward with a global login script - many thanks to everyone who helped me get started - I now have a new problem. A colleague of mine had created a .php web page that parsed a text dump of our AD users created with a utility called "DumpSec". In order to break down the users by location, he used their login script as an indication of their physical location since we all have (soon to be had) individual scripts for each location...Well, once my script goes live, 5,000 users will have one script...

"DumpSec" does not report the OU or container that a user resides in, so my question is, is there a way with .KIX to report this information from AD? I know that I can query AD using Translate Name and InContainer to see where the currently logged in user is, but is there a way to spit out a report of all the users? What about other information in AD? If anyone out there is familiar with DumpSec, I would like to replicate the report that is created with the addition of the user's OU membership.

If anyone has any ideas, or knows of another tool that I should be looking at, I would greatly appreciate it.
_________________________
-- oobnuker - .KIX hack - no really.

Top
#138204 - 2005-04-19 07:10 PM Re: New AD Challenge
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
A quick search will reveal that "ADODB.Connection" is your friend.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#138205 - 2005-04-19 07:13 PM Re: New AD Challenge
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11634
Loc: Space
All of the functionality can be done via ADSI and / or WMI and COM calls. However the main thing that DUMPSEC is for is for creating a readable report of ACL permissions which would be quite difficult to duplicate in as nice a format as DUMPSEC already has.

There are many ways to accomplish what you're looking to do but you need to first analyze what data you want and why you want it. You may find that you really don't need some data that you thought you needed.

You can query the heck out of the AD and get back just about anything.

First layout what you want and then start working on the pieces to put it all together.

There are IP UDFS, @SITE macro, InContainer, etc... but without knowing specifically what you want and why you want it makes it difficult to suggest the best method.

Top
#138206 - 2005-04-19 10:15 PM Re: New AD Challenge
oobnuker Offline
Getting the hang of it

Registered: 2003-12-09
Posts: 87
Loc: Oxford, CT
Thanks for the replies. All I really want is:
Username, Full Name, Last Logon, Disabled, and OU
_________________________
-- oobnuker - .KIX hack - no really.

Top
#138207 - 2005-04-19 11:11 PM Re: New AD Challenge
ChristopheM Offline
Hey THIS is FUN
*****

Registered: 2002-05-13
Posts: 311
Loc: STRASBOURG, France
I have done kix scripts that export users, groups, public folders (if exchange), printers, computers with all properties.

I am not at my office today but i can send you these scripts tomorrow (they are too long to be posted here)

these exports are done every night with a scheduled task and usually, i keep data files a month. it has been userful several times to restore email when owner deleted mail enabled public folders.

Question to the moderators :
is there a place where files like .zip could be posted to be available for everyone ?
something like an open source library dedicated to KiXtart !!!
_________________________
Christophe

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 1636 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.03 seconds in which 0.014 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org