[Exim] SQL-based SMTP AUTH.

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Eric Renfro
Date:  
À: exim-users
Sujet: [Exim] SQL-based SMTP AUTH.
I'm trying to switch from using LDAP-based user SMTP AUTH, to PgSQL-based
lookup AUTH.

My current authenticators are like:

plain:
  driver = plaintext
  public_name = PLAIN
  #server_condition = "${if pam{$2:$3}{1}{0}}"
  server_condition = ${if ldapauth \
        {user="uid=${quote_ldap:$2},ou=People,dc=myrddincd,dc=com" \
        pass="$3" \
        LDAP_SERVER}{yes}{no}}
  server_set_id = uid=$2,ou=People,dc=myrddincd,dc=com


login:
  driver = plaintext
  public_name = LOGIN
  server_prompts = "Username:: : Password::"
  #server_condition = "${if pam{$1:$2}{1}{0}}"
  server_condition = ${if ldapauth \
        {user="uid=${quote_ldap:$1},ou=People,dc=myrddincd,dc=com" \
        pass="$2" \
        LDAP_SERVER}{yes}{no}}
  server_set_id = uid=$1,ou=People,dc=myrddincd,dc=com


cram:
  driver = cram_md5
  public_name = CRAM-MD5
  server_secret = ${if eq{$1}{${lookup ldap \
    {AUTH_USER}{$value}fail}} \
    {${lookup ldap \
    {AUTH_PASSWD}{$value}fail}}fail}
  server_set_id = $1


Reason I'm switching to SQL-based AUTH, is because since dbmail already stores
user passwords for real and virtual users, it also stores passwords for them,
so I could authenticate against it more efficiently.

--
Eric Renfro
Myrddin Computers & Designs - CEO/President
Sales: sales@???
Fax: (775) 243-4535