OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: %d in search_base in main.cf

From: Victor Duchovni (Victor.DuchovniMorganStanley.com)
Date: Wed Jul 14 2004 - 09:07:56 CDT


On Wed, Jul 14, 2004 at 09:57:10PM +0800, Wang Penghui wrote:

> ===================================
> mailboxes_server_host = 127.0.0.1
> mailboxes_search_base = ou=%d, dc=example, dc=com
> mailboxes_query_filter =
> (&(|(mail=%s)(mailalternateaddress=%s))(objectclass=posixaccount)(accountstatus=active))
> mailboxes_bind_dn = cn=postfixadmin,dc=example, dc=com
> mailboxes_bind_pw = xxxxxxxxx
> mailboxes_result_attribute = uid, mailforwardingaddress
> mailboxes_version = 3
> ===================================
>
> Could the %d in the line "mailboxes_search_base = ou=%d, dc=example,
> dc=com" work correctly?

The documentation does not specify any substitutions in the search
base parameter. This means that the search base is a literal.

The substitution you are looking for may be available with Postfix 2.2,
in which case the ldap_table(5) manpage will document the supported
substitutions.

--
        Viktor.

Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the "Reply-To" header.

To unsubscribe from the postfix-users list, visit
http://www.postfix.org/lists.html or click the link below:
<mailto:majordomopostfix.org?body=unsubscribe%20postfix-users>