Hi. According to my boss, I need to become an openLDAP guru in about two hours. So I might be asking a lot of LDAP questions.
First question: When using ldapsearch, what is the syntax if you want more than one filter applied? For example, if
Code:
ldapsearch -h ldap.example.com -b dc=example,dc=com "(sn=Harold)"
give me one set of results and
Code:
ldapsearch -h ldap.example.com -b dc=example,dc=com "(givenName=Frank)"
gives me another set, how do I combine the two to get only the results that match both? I tried just putting both filters on the command-line one-after-the-other, but that doesn't produce the results I expect.