luckydog xf <luckydo...@gmail.com> 11:15 AM (4 minutes ago) to postfix-users Hello, list.
# Here is my ldap query bind = no version = 3 server_host = ldap://172.16.232.201:389 start_tls = no search_base = cn=users,cn=accounts,dc=ipa,dc=pthl,dc=hk scope = sub query_filter = (|(displayName=%s)(initials=%s)) result_attribute = displayName, initials result_format = %s # my ldap, actually it's FreeIPA. # just a sample, please ignore the key name. displayName: u...@abc.com initials: u...@xyz.com displayName and initials are two different email addresses. One is u...@abc.com, while the other is u...@xyz.com. I use postmap -q 'u...@abc.com', it returns two addresses. If I set one result_attribute , I can only get one email address. How to return the only one based on query input ? E.g when the user's input is u...@abc.com, it returns u...@abc.com, vice versa. Thanks.