[Exim] SMTP Authentication w/LDAP - always passes, need help

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Jonathan Vanasco
Ημερομηνία:  
Προς: exim-users
Αντικείμενο: [Exim] SMTP Authentication w/LDAP - always passes, need help
I'm trying to authenticate a user for SMTP services by comparing the
supplied password against the password for that user returned by an
ldap lookup (all users are vitual, and i'm using pagan/pagans a global
id/group)

I was able to get it to finally authenticate by continually tweaking
and looking at the logs (which would errod something like if
eq{testpass}{testpass} {yes}{no})

unfortunately, once I got the following working, i can't get it to
not-work. it authenticates to correct or incorrect passwords.

can someone offer some advice?

   driver = plaintext
   public_name = PLAIN
   server_debug_print = yes
   server_condition        =    ${\
                                   if eq \
                                   {$3}\
                                   {\
                                       ${lookup ldap \
                                               { \
                                                user="cn=Manager,dc=redivi,dc=com" pass=secret \
                                                   ldap:///\
                                                   ou=Email,o=mobwire,dc=redivi,dc=com\
                                                   ?mobPass\
                                                   ?sub\
                                                   ?(mail=${quote_ldap:$2})\
                                            } \
                                            {$value} \
                                            fail \
                                    }\
                                }\
                                {yes} fail \
                            }
   server_set_id = pagan