[Exim] RE: SMTP Auth retry limit...

Top Page
Delete this message
Reply to this message
Author: Thai Q. Tran
Date:  
To: exim-users
Subject: [Exim] RE: SMTP Auth retry limit...
Hello everyone,
    I finally got the SMTP auth to work with LDAP the way that I
wanted.  I wanted users to log in with username and domain (i.e.
user@???).  In my previous posting maybe no one seemed to
understand what I was trying to do or maybe just not sure how to do it.
The domain portion of the login would represent an object in my tree and
the user a leaf.  The authentication works fine now but I can't seem to
find any information on limiting login attempts.  Preferably limiting
the users to three attempts, because of what I saw during debugging.
When I was debugging and attempting to login with Netscape using an
incorrect username or password, Netscape keeps attempting to retry many
times.  This issue here seems to me as though it can be very resource
intensive or possibly leading to someone or many users attempting to
login crashing the server.  Hopefully someone has an idea or answer that
will lead me in the right direction.


Here is my config for smtp auth:
login:
   driver = plaintext
   public_name = LOGIN
   server_prompts = "Username:: : Password::"
   server_condition = ${if ldapauth \
     {user="cn=${extract{1}{@}{$1}},dc=${extract{2}{@}{$1}},o=mye-znet"
\
     pass="$2" ldap:///} {yes} {no} }
   server_set_id = $1


ptext:
   driver = plaintext
   public_name = PLAIN
   server_condition = ${if ldapauth \
     {user="cn=${extract{1}{@}{$2}},dc=${extract{2}{@}{$2}},o=mye-znet"
\
     pass="$3" ldap:///} {yes} {no} }
   server_set_id = $2




Thank you,
Thai