Re: [Exim] LDAP query

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Dave Lewney
Dátum:  
Címzett: Torsten Curdt
CC: Exim-Users
Tárgy: Re: [Exim] LDAP query
Torsten Curdt wrote:
>
> Sorry if this might be slightly OT
> but I didn't get it from the manual.
>
> How is correct syntax of this query
> in url form?
>
> ldapsearch -b 'dc=dff,dc=local' 'gecos=Torsten.Curdt' uid -h kurn
>
> I tried
>
> ldap_default_servers = kurn::389
> query = "ldap:///gecos=$local_part,dc=dff,dc=local?uid?"
>
> But this doesn't produce the same query
> as the above as I can see in the ldap
> log file.
> --
> Torsten
>
> --
> ## List details at http://www.exim.org/mailman/listinfo/exim-users Exim details at http://www.exim.org/ ##


I think it should be

ldap:///dc=dff,dc=local?uid?sub?(gecos=$local_part)"

-- 
Dave
----
Dave Lewney              Email:  D.M.Lewney@???
Unix System Manager         phone:  01273 642669             
University of Brighton, UK      fax:    01273 642666