Re: Error connecting Postfix to LDAP

From: Lou Picciano (no email)
Date: Wed Mar 12 2008 - 17:55:03 EDT

  • Next message: Victor Duchovni: "Re: Error connecting Postfix to LDAP"

    Altino,

    We were struggling with exactly this problem recently - and never did get it to work when the LDAP sources were in external files... (Our layout is like yours; simple, with all files in /etc/postfix)

    However, Victor put me on to the other way of doing it: Simply putting all the LDAP source definitions directly into main.cf; this works great.

    Will probably go back, at some point, to try to understand the separate files approach better, but this would be only an academic exercise at this point.

     -------------- Original message ----------------------
    From: Altino Sampaio <>
    > Viktor,
    >
    > I tried ldap:./accounts.cf, but now, I donĀ“t receive any message from command
    > "postmap -q - ldap:./accounts.cf < teste".
    > Actually, it does not even contact LDAP service with command above :(
    >
    > I do not know what to do :(
    >
    > Best regards
    >
    >
    >
    >
    > On Wed, 12 Mar 2008 12:40:28 -0400, Victor Duchovni
    > <> wrote:
    > > On Wed, Mar 12, 2008 at 01:40:42PM +0000, Altino Sampaio wrote:
    > >
    > >> Hello to all,
    > >>
    > >> I need help, please!
    > >>
    > >> I have instaled these packages on Ubuntu Server 6.06 (2.6.15-51-server),
    > > using command "apt-get":
    > >> - Postfix 2.4.5
    > >> - postfix-ldap 2.4.5
    > >> - slapd 2.2.26
    > >> - libldap-2.2-7 2.2.26
    > >>
    > >> I built a file named accounts.cf, whith the contents:
    > >>
    > >> bind_dn = cn=postfix,ou=servicos,ou=geral,dc=example,dc=com
    > >> bind_pw = secret
    > >> search_base = ou=email,dc=example,dc=com
    > >> domain = dc=example,dc=com
    > >> server_host = 127.0.0.1
    > >> server_port = 389
    > >> bind = yes
    > >> timeout = 20
    > >> version = 3
    > >> #query_filter = (|(mail=%s))
    > >> query_filter = (&(objectClass=CourierMailAccount)(mail=%s))
    > >> result_attribute = mail
    > >> scope= sub
    > >>
    > >> I have LDAP service working because I can use it with other network
    > > services (for authentication)!
    > >> I also have a file "teste", with "" text inside.
    > >>
    > >> However, when I execute the command "postmap -q - ldap:accounts.cf <
    > > teste" (placed in directory /etc/postfix) I received this response:
    > >> "postmap: warning: dict_ldap_lookup: accounts.cf: Search base '' not
    > > found: 32: No such object"
    > >>
    > >
    > > Try: ldap:./accounts.cf
    > >
    > > --
    > > Viktor.
    > >
    > > Disclaimer: off-list followups get on-list replies or get ignored.
    > > Please do not ignore the "Reply-To" header.
    > >
    > > To unsubscribe from the postfix-users list, visit
    > > http://www.postfix.org/lists.html or click the link below:
    > > <mailto:?body=unsubscribe%20postfix-users>
    > >
    > > If my response solves your problem, the best way to thank me is to not
    > > send an "it worked, thanks" follow-up. If you must respond, please put
    > > "It worked, thanks" in the "Subject" so I can delete these quickly.
    >


  • Next message: Victor Duchovni: "Re: Error connecting Postfix to LDAP"





    Hosted Email Solutions

    Invaluement Anti-Spam DNSBLs



    Powered By FreeBSD   Powered By FreeBSD