info > Authen::SASL

📖 NAME

🔐 Authen::SASL — SASL Authentication framework

🚀 Quick Reference

Use CaseCommandDescription
đŸ“Ļ Create SASL objectAuthen::SASL->new(mechanism => '...', callback => {...})🔧 Initialize SASL authentication with mechanisms and callbacks
🔌 Select Perl-only implementationuse Authen::SASL qw(Perl)đŸ› ī¸ Force use of Authen::SASL::Perl plugin
🤝 Client-side connection$sasl->client_new($service, $host, $security)🌐 Create a new client connection object
đŸ–Ĩī¸ Server-side connection$sasl->server_new($service, $host, $options)đŸ—ī¸ Create a new server connection object
đŸšĻ Client start$conn->client_start()â–ļī¸ Begin authentication from client side
📨 Client step$conn->client_step($challenge)🔄 Process server challenge and return response
đŸšĻ Server start$conn->server_start($challenge)â–ļī¸ Begin authentication from server side
📨 Server step$conn->server_step($challenge)🔄 Process client challenge and return response
✅ Check success$conn->is_success()âœ”ī¸ Returns true if authentication succeeded
🔍 Check need step$conn->need_step()âŗ Returns true if more steps are required
đŸ“ĸ Get error$sasl->error()❌ Get last error message

📝 SYNOPSIS

use Authen::SASL;

$sasl = Authen::SASL->new(
  mechanism => 'CRAM-MD5 PLAIN ANONYMOUS',
  callback => {
    pass => \&fetch_password,
    user => $user,
  }
);

📖 DESCRIPTION

🔐 SASL is a generic mechanism for authentication used by several network protocols. Authen::SASL provides an implementation framework that all protocols should be able to share.

đŸ—ī¸ The framework allows different implementations of the connection class to be plugged in. At the time of writing there were two such plugins.

📋 By default the order in which these plugins are selected is Authen::SASL::XS, Authen::SASL::Cyrus and then Authen::SASL::Perl.

đŸŽ¯ If you want to change it or want to specifically use one implementation only simply do:

use Authen::SASL qw(Perl);

or if you have another plugin module that supports the Authen::SASL API:

use Authen::SASL qw(My::SASL::Plugin);

đŸ—ī¸ Constructor

new ( OPTIONS )

🔧 The constructor may be called with or without arguments. Passing arguments is just a short cut to calling the mechanism and callback methods.

🐛 Debug output will be sent to STDERR. The bits of this value are:

📊 The default value is 0.

đŸ› ī¸ Methods

🔗 The Connection Class

📞 Callbacks

📋 There are three different ways in which a callback may be passed:

📚 SEE ALSO

Authen::SASL::Perl, Authen::SASL::XS, Authen::SASL::Cyrus

👤 AUTHOR

👨‍đŸ’ģ Graham Barr <gbarr@pobox.com>

đŸ“Ŧ Please report any bugs, or post any suggestions, to the perl-ldap mailing list <perl-ldap@perl.org>

ÂŠī¸ COPYRIGHT

📄 Copyright (c) 1998-2005 Graham Barr. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

Authen::SASL
📖 NAME 🚀 Quick Reference 📝 SYNOPSIS 📖 DESCRIPTION
đŸ—ī¸ Constructor đŸ› ī¸ Methods
🔗 The Connection Class
📞 Callbacks
📚 SEE ALSO 👤 AUTHOR ÂŠī¸ COPYRIGHT

Generated by phpman v4.9.26-5-g7740029 Author: Che Dong Under GNU General Public License
2026-08-16 10:15 @2600:1f28:365:80b0:7cb9:fb:26c1:e368
CrawledBy CCBot/2.0 (https://commoncrawl.org/faq/)
Valid XHTML 1.0 Transitional!Valid CSS!