[exim] Using saslauthd with exim.

Inizio della pagina
Delete this message
Reply to this message
Autore: Alexander Kitaev
Data:  
To: exim-users
Oggetto: [exim] Using saslauthd with exim.
Hello,

There are the following defaults in the Exim configuration:

plain_saslauthd_server:
driver = plaintext
public_name = PLAIN
server_condition = ${if saslauthd{{$auth2}{$auth3}}{0}{1}}
server_set_id = $auth2
server_prompts = :
.ifndef AUTH_SERVER_ALLOW_NOTLS_PASSWORDS
server_advertise_condition = ${if eq{$tls_cipher}{}{}{*}}
.endif


In particulary, there is a line:

server_condition = ${if saslauthd{{$auth2}{$auth3}}{0}{1}}

As I can see from the auth.log, saslauthd is called with the following
parameters:

[user=name@???] [service=] [realm=] [mech=sasldb] ...

However, I'd like saslauthd to be called as:

[user=name] [service=exim] [realm=domain.com] [mech=sasldb]...

In other words, I'd like exim to parse auth2 and split it into the
name and realm parts and also would like exim to use service name
"exim", so that corresponding record in the sasldb could be located.

How could I do that? I tried, for instance, replacing {0} with {exim}
and {1} with {domain.com}, but it broke authentication.

--
Alexander Kitaev,
TMate Software,
http://svnkit.com/ - Java [Sub]Versioning Library!
http://sqljet.com/ - Java SQLite Library!