Authen::SASL::Perl::DIGEST_MD5 - Digest MD5 Authentication class
| Use Case | Command | Description |
|---|---|---|
| 🌐 Create a DIGEST-MD5 SASL client object | use Authen::SASL qw(Perl); |
Instantiate a SASL client for DIGEST-MD5 authentication with required callbacks |
| 🔑 Set client callbacks | $sasl->callback(user => $user, pass => $pass, realm => $realm); |
Assign or override authentication credentials and realm |
| 🛡️ Configure security properties | $sasl->property(minssf => 128, maxbuf => 65536); |
Set minimum SSF, buffer size, etc. for the SASL security layer |
| 🔐 Server-side password lookup | getsecret($username, $realm, $authzid) |
Callback that returns the password for a given username and realm |
use Authen::SASL qw(Perl);
$sasl = Authen::SASL->new(
mechanism => 'DIGEST-MD5',
callback => {
user => $user,
pass => $pass,
serv => $serv
},
);
This method implements the client and server parts of the DIGEST-MD5 SASL algorithm, as described in RFC 2831.
The callbacks used are:
authname — The authorization id to use after successful authenticationuser — The username to be used in the responsepass — The password to be used to compute the responseserv — The service name when authenticating to a replicated servicerealm — The authentication realm when overriding the server-provided default. If not given the server-provided value is used. The callback will be passed the list of realms that the server provided in the initial response.realm — The default realm to provide to the clientgetsecret(username, realm, authzid) — Returns the password associated with username and realmThe properties used are:
maxbuf — The maximum buffer size for receiving cipher textminssf — The minimum SSF value that should be provided by the SASL security layer. The default is 0maxssf — The maximum SSF value that should be provided by the SASL security layer. The default is 2**31externalssf — The SSF value provided by an underlying external security layer. The default is 0ssf — The actual SSF value provided by the SASL security layer after the SASL authentication phase has been completed. This value is read-only and set by the implementation after the SASL authentication phase has been completed.maxout — The maximum plaintext buffer size for sending data to the peer. This value is set by the implementation after the SASL authentication phase has been completed and a SASL security layer is in effect.Authen::SASL, Authen::SASL::Perl
Graham Barr, Djamel Boudjerda (NEXOR), Paul Connolly, Julian Onions (NEXOR), Yann Kerherve.
Please report any bugs, or post any suggestions, to the perl-ldap mailing list <perl-ldap AT perl.org>
Copyright (c) 2003-2009 Graham Barr, Djamel Boudjerda, Paul Connolly, Julian Onions, Nexor, Peter Marschall and Yann Kerherve. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.32.0 2020-12-1Authen::SASL::Perl::DIGEST_MD5(3pm)
Generated by phpman v4.9.26-5-g7740029 Author: Che Dong Under GNU General Public License
2026-08-16 10:00 @2600:1f28:365:80b0:7cb9:fb:26c1:e368
CrawledBy CCBot/2.0 (https://commoncrawl.org/faq/)