Registrations to Open-AudIT forums are now closed. To ask any new questions please visit Opmantek Community Questions.

Open-AudIT

What's on your network?
It is currently Fri Apr 19, 2024 9:27 am

All times are UTC + 10 hours




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
PostPosted: Tue Sep 30, 2008 4:41 am 
Offline
Contributor

Joined: Fri Jul 28, 2006 6:30 am
Posts: 157
Location: London
I've had this issue since the mapped drives code was added to audit.vbs. The cause is the "Select Name, Domain from Win32_UserAccount where SID ..." WMI query on line 1946. I suspect that this only evident where you have a large number of domain trusts like I have.

Anyway the fix is to replace lines 1946-152:
[code]
Set colItems = objWMIService.ExecQuery("Select Name, Domain from Win32_UserAccount where SID = '" & subkey & "'",,48)
If colItems <> "" Then
' Found local user
For Each objItem in colItems
MapUserName = objItem.Domain & "\" & objItem.Name
Next
End If
[/code]

With:
[code]Set objItem = objWMIService.Get("Win32_SID.SID='" & subkey & "'")
MapUserName = objItem.ReferencedDomainName & "\" & objItem.AccountName
[/code]

Cheers, Nick.

_________________
Cheers, Nick.

[size=85]OA Server: Windows Server 2003 / Apache 2
Auditing: 1600 Workstations, 200 Servers
OS's: Windows XP / Windows 2000 / Windows 2003 Server / Windows Vista
LDAP: Active Directory[/size]


Top
 Profile  
Reply with quote  
PostPosted: Thu Oct 23, 2008 7:39 pm 
Offline
Open-AudIT Fellow

Joined: Thu May 17, 2007 5:47 pm
Posts: 568
Location: Italy
Fixed in SVN rev. 1078. Thanks

_________________
Edoardo


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC + 10 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group