ph_ldapquery PowerHome formula function
Description
Allows a limited query against LDAP for a persons name and a specific attribute 
Syntax
ph_ldapquery ( as_name, as_attribute )
Argument Description
as_name String. The persons name in LDAP
as_attribute String. The attribute you'd like to retrieve from LDAP
Return value
String. Returns the LDAP result for the requested person/attribute 
Usage
Use this function to quickly query LDAP for attributes for a person. NOTE: this function does not work in a typical home environment and will usually ONLY work in a corporate environment where Active Directory is in use 

This function performs limited LDAP queries in the format of: "(&(objectcategory=person)(objectclass=user)(name= " + as_name + "));" + as_attribute +";subtree"

Examples
The following examples demonstrate typical syntax/usage for this function.
• ph_ldapquery("dwh","mail") - Returns the email address for user AD user DWH