|
Authen::SASL::Authd - Client authentication via Cyrus saslauthd or Dovecot authentication daemon. |
Authen::SASL::Authd - Client authentication via Cyrus saslauthd or Dovecot authentication daemon.
use Authen::SASL::Authd qw(auth_cyrus auth_dovecot);
# authenticate user against Cyrus saslauthd
auth_cyrus('login', 'passwd') or die "saslauthd: FAIL";
# authenticate user against Dovecot authentication daemon
auth_dovecot('login', 'passwd') or die "dovecot-auth: FAIL";
# check user existence
my %user_attr = user_dovecot('login', timeout => 3) or die "dovecot-auth: NO SUCH USER";
print "user home: $user_attr{home}\n";
The Authen::SASL::Authd package implements LOGIN authentication protocol used by Cyrus saslauthd and
PLAIN authentication protocol supported by Dovecot authentication daemon.
It can be used to process authentication requests against configured SASL mechanism
implemented by Cyrus or Dovecot SASL libraries. It can also be used to check if a particular user exists
according to the Dovecot authentication daemon.
Alex Protasenko http://www.bkmks.com/
Copyright 2007 by Alex Protasenko.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
|
Authen::SASL::Authd - Client authentication via Cyrus saslauthd or Dovecot authentication daemon. |