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. [EMAIL PROTECTED])

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 [EMAIL PROTECTED]", if the attribute is present, the result will be the fixed value "[EMAIL PROTECTED]".

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
--

Reply via email to