Bug 127121

Summary: Postfix LDAP query_filter broken
Product: Red Hat Enterprise Linux 3 Reporter: Jon Benson <jon>
Component: postfixAssignee: Thomas Woerner <twoerner>
Status: CLOSED NEXTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 3.0Keywords: FutureFeature
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-08-15 23:07:21 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jon Benson 2004-07-02 08:09:17 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; 
MyIE2; .NET CLR 1.0.3705; .NET CLR 1.1.4322)

Description of problem:
When attempting to use LDAP table lookups with Postfix it does not 
recognise the query_filter option and hence only uses the default 
query.


Version-Release number of selected component (if applicable):
postfix-2.0.16-13.RHEL3

How reproducible:
Always

Steps to Reproduce:
1. Setup an LDAP lookup with a custom query filter
2. Use postmap to test the filter

    

Actual Results:  postmap: dict_ldap_lookup: Searching with filter 
(mailacceptinggeneralid=user)
postmap: warning: dict_ldap_lookup: Search error 32: No such object

Expected Results:  It should be using the custom query filter.

Additional info:

Sample LDAP config:
server_host = 127.0.0.1
#server_port = 389
search_base = ou=mailUsers,dc=ozhosting,dc=com
timeout = 5
query_filter = (uid=%s)
result_filter = %s any_value
result_attribute = uid
bind_dn = cn=Manager,dc=ozhosting,dc=com
bind_pw = password
expansion_limit = 1

Sample test:
postmap -v -q user ldap:/etc/postfix/ldap-recipients.cf

Comment 1 Jon Benson 2004-07-05 00:43:35 UTC
My apologies.  I was trying to use a feature of postfix 2.1 and did 
not realise that it was not present in 2.0

May I suggest you consider updating postfix to 2.1 in the next update 
of RHEL3, if not sooner.


Comment 2 Suzanne Hillman 2004-08-09 15:54:32 UTC
Internal RFE bug #129478 entered; will be considered for future releases.

Comment 3 dff 2004-08-15 23:07:21 UTC
RHEL 4 will include postfix 2.1+.