|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
From: Andrew Ho (andrewho
animezone.org)
Date: Mon Sep 10 2007 - 16:07:40 CDT
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
James wrote:
> Hey guys i'm having some problems doing some queries with postmap
>
> Here's the results of my command
> postmap -v -q "james
jwindow.com" /etc/postfix/ldap-users.cf
>
try this :
postmap -v -q "james
jwindow.com" ldap:/etc/postfix/ldap-users.cf
Andrew
> postmap: dict_ldap_lookup: /etc/postfix/ldap-users.cf: Searching with
> filter mail=james
jwindow.com
> postmap: dict_ldap_get_values[1]: Search found 1 match(es)
> postmap: dict_ldap_get_values[1]: Leaving dict_ldap_get_values
> postmap: dict_ldap_lookup: Search returned nothing
> postmap: dict_ldap_close: Closed connection handle for LDAP source
> /etc/postfix/ldap-users.cf
>
> Here's my ldap-users.cf:
>
> bind = no
> version = 3
> server_host = ldap://ldap.example.com:389
> scope = sub
> search_base = dc=example,dc=com
> query_filter = mail=%s
> result_attribute = memberaddr
>
>
> The entry has several mail attributes
> one is james
jwindow.com
>
>
> Any help is appreciated TIA.
>
>
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]