|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
From: Jason Voorhees (jvoorhees1
gmail.com)
Date: Fri Aug 08 2008 - 16:32:02 CDT
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
>> admin
redtube.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 admin
redtube.com", if the attribute is
> present, the result will be the fixed value "admin
redtube.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
> --
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]