I am running OAv2 in a Windows AD environment. (AD 2008, Forest functional level 2003)
I installed the XAMPP beta3 and applied beta 4 & 5 successfully.
Got the latest audit_windows.vbs script (revision 26) from:
http://bazaar.launchpad.net/~mark-unwin ... indows.vbs When auditing systems I get the error:
C:\xampplite\OAv2\other\audit_windows.vbs(693, 3) Active Directory: An invalid dn syntax has been specified.
Line 693:
[code] set objrecordset = objcommand.execute[/code]
I added some 'wscript.echo' to the block before and found that removing the code part (line 660 - 666) solves my issue:
[code]
stemp = split(strUserDN, ",")
stemp(0) = ""
ttemp = join(stemp, ",")
ttemp = mid(ttemp, 2)
strUserDN = ttemp
wscript.echo "After split and join: " & strUserDN
erase stemp
ttemp = NULL
[/code]
What this block of code seems to do is remove the part of the string before the first comma.
The problem in my case is that the strUserDN in my environment is like:
"CN=lastname\, firstname,OU=Office,OU=Users,OU=Western,OU=Europe,DC=domain,DC=com"
after the block of code this is:
" firstname,OU=Office,OU=Users,OU=Western,OU=Europe,DC=domain,DC=com"
When this is used in the LDAP query this now looks like:
[code]select name, physicalDeliveryOfficeName from 'GC:// firstname,OU=Office,OU=Users,OU=Western,OU=Europe,DC=domain,DC=com' where objectCategory = 'person' and sAMAccountName = 'useralias'[/code]
Note the space after GC://
I assume that there is a valid reason for this code block and want to be sure that I don't break anything by excluding this code piece.
Anyone else seen this? Or is this specific to my environment?