OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Re: [SOLVED] ldap result with hardcoded string

From: C. (list-userbackenhoernchen.de)
Date: Wed Apr 09 2008 - 08:42:21 CDT


I can answer myself:

result_format = smtp:newhome.de:25

does the trick.

Thanks anyway.

C. schrieb:
> Hi,
>
> i know that it is nocht the best way, but i want an successful ldap
> search to return an hardcoded string.
> How is this possible?
>
> My query looks like:
>
> server_host = ldap://domain.my:389
> server_port = 389
> search_base =
> query_filter = (&(DeliveryAddress=%s)(MailStatus=enabled))
> result_attribute = DeliveryAddress
> version = 3
> bind = yes
> bind_dn = uid=postfix,cn=appaccts,cn=hallo
> bind_pw = secret
> timeout = 30
>
> Right now the result is read from the ldap directory (result_attribute).
> I want to use thes query to be something like "smtp:newhome.de:25"
> (hardcoded). I can't extend the ldap schema bacause i have no rith to do
> that.
>
> Thanks for help.
>
> Corren