I trying to use the "ldap_serach_s" function and my filter works great if put NULL in for the "attrs" parameter.  Here is example filter 

To limit the information coming back from the server I only want the values of the "sAMAccountName" attribute.  Every time I try populating the "attrs" parameter I get an error.   I was wondering if I could be pointed to an example or 2 that uses the parameter.