Gary Perkins <[email protected]> (Fr 01 Jul 2016 11:37:49 CEST):
> Hi,
> 
> I'm wondering if anyone has had this happen before?
> 
> I'm setting up a mail server and I'd like an exim router to run lookups to an 
> ldap server, where we have user credentials and mail aliases/groups stored. I 
> already have dovecot authenticating against the ldap server and I can also 
> successfully run 'ldapsearch' queries. So the LDAP server is working from the 
> mail server. It works using either ldap:// or ldaps://.
> 
> This is what I'm trying to test an exim LDAP lookup:
> 
> exim -d-all+lookup -be <<'EOF'
> ${lookup ldap 
> {user='uid=ldapauth,cn=users,cn=accounts,dc=company,dc=co,dc=uk' 
> pass='somepassword' 
> ldap:///cn=groups,cn=accounts,dc=company,dc=co,dc=uk?member?sub?(cn=everyone)}}

Try using user="…" (double quotes, instead of single quotes)

If this doesn't help…

try

    ldapwhoami -x \
        -D uid=ldapauth,cn=users,cn=accounts,dc=company,dc=co,dc=uk \
        -w somepassword \
        -b cn=groups,cn=accounts,dc=company,dc=co,dc=uk \
        -H ldap://ipa0.company.co.uk

and
    ldapsearch -x \
        -D uid=ldapauth,cn=users,cn=accounts,dc=company,dc=co,dc=uk \
        -w somepassword \
        -H ldap://ipa0.company.co.uk \
        -b cn=groups,cn=accounts,dc=company,dc=co,dc=uk \
        cn=everyone member

    Best regards from Dresden/Germany
    Viele Grüße aus Dresden
    Heiko Schlittermann
-- 
 SCHLITTERMANN.de ---------------------------- internet & unix support -
 Heiko Schlittermann, Dipl.-Ing. (TU) - {fon,fax}: +49.351.802998{1,3} -
 gnupg encrypted messages are welcome --------------- key ID: F69376CE -
 ! key id 7CBF764A and 972EAC9F are revoked since 2015-01 ------------ -

Attachment: signature.asc
Description: Digital signature

-- 
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

Reply via email to