You will need to use a script lookup to do that.
Have it run before your LDAP lookup..
You will need to have that script take the username you get.. WinNT://<AD-domain>/<userID>
You will need to then take that and parse out the Winnt://domain
Use the attached script.
You will need to change the following line, depending on how many characters the domain is. Change the '9' depending on the length of the domain.
strSlashPos = Instr(9,attributeValues(0), "/")
You will then need to update the LDAP lookup to also look for the new variable "HTTPUserName". Do this for each line you need.
attr.First\ Name =:(|(mail=$sender-email$)(sAMAccountName=$file-owner$)(sAMAccountName=$endpoint-user-name$)(sAMAccountName=$HTTPUserName$)):givenName
Here are the copmmands for the scri[pt lookup.
c:/windows/system32/cscript.exe
/nologo,D:/Vontu/protect/plugins/Webprevent_script.vbs
Please marked solved!