OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Re: LDAP criteria in Postfix

From: Jason Voorhees (jvoorhees1gmail.com)
Date: Fri Aug 08 2008 - 16:32:02 CDT


Thanks, you're the best. I used it and works perfectly!

Actually, I was reading ldap_table but I didn't understand result_format
(previously called as result_filter) correctly.
You explained it better than the man page for me.

Thanks again, bytes!

Graham Leggett escribió:
> Jason Voorhees wrote:
>
>> My problem begins here: I don't want to use the value returned by
>> result_attribute, instead I want to use a custom value to return (i.e.
>> adminredtube.com)
>
> You are looking for the result_filter option, which allows you to filter
> the attribute returned, or even replacing the attribute entirely (which
> is what it looks like you need to do).
>
> If you specify "result_filter adminredtube.com", if the attribute is
> present, the result will be the fixed value "adminredtube.com".
>
> You can embed the attribute into the filter string by using the "%s"
> string, or you can leave the %s out entirely, and set a constant value.
>
> Regards,
> Graham
> --