VBScript LDAP: Is there a way to query for physicalDeliveryOfficeName using the email address in Act
Posted
by phill
on Stack Overflow
See other posts from Stack Overflow
or by phill
Published on 2008-11-12T00:34:03Z
Indexed on
2010/03/23
9:23 UTC
Read the original article
Hit count: 363
I'm attempting to utilize VBScript to connect pull the physicalDeliveryOfficeName
attribute in Active Directory by providing the email address.
I know how to do it with a common name like the following:
Set MyUser = GetObject ("LDAP://cn=" & uname & ",ou=" & strname & ",DC=bobdom,DC=net")
However only the email address is available. How to do this? I've even tried
Set MyUser = GetObject ("LDAP://mail=" & uname & ",ou=" & strname & ",DC=bobdom,DC=net")
and that doesn't work.
© Stack Overflow or respective owner