1Authen::Passphrase::AccUespetrAlClo(n3t)ributed Perl DocAuumtehnetna:t:iPoanssphrase::AcceptAll(3)
2
3
4
6 Authen::Passphrase::AcceptAll - accept any passphrase
7
9 use Authen::Passphrase::AcceptAll;
10
11 $ppr = Authen::Passphrase::AcceptAll->new;
12
13 $ppr = Authen::Passphrase::AcceptAll
14 ->from_crypt("");
15
16 $ppr = Authen::Passphrase::AcceptAll
17 ->from_rfc2307("{CRYPT}");
18
19 if($ppr->match($passphrase)) { ...
20
21 $passphrase = $ppr->passphrase;
22
23 $passwd = $ppr->as_crypt;
24 $userPassword = $ppr->as_rfc2307;
25
27 An object of this class is a passphrase recogniser that accepts any
28 passphrase whatsoever. This is a subclass of Authen::Passphrase, and
29 this document assumes that the reader is familiar with the
30 documentation for that class.
31
32 This type of passphrase recogniser is obviously of no use at all in
33 controlling access to any resource. Its use is to permit a resource to
34 be public in a system that expects some type of passphrase access
35 control.
36
38 Authen::Passphrase::AcceptAll->new
39 Returns an accept-all passphrase recogniser object. The same
40 object is returned from each call.
41
42 Authen::Passphrase::AcceptAll->from_crypt("")
43 Returns an accept-all passphrase recogniser object. The same
44 object is returned from each call. The argument must be the empty
45 string.
46
47 Authen::Passphrase::AcceptAll->from_rfc2307(USERPASSWORD)
48 Generates a new accept-all passphrase recogniser object from an RFC
49 2307 string. The string must consist of "{CRYPT}" (case
50 insensitive) followed by an acceptable crypt string.
51
53 $ppr->match(PASSPHRASE)
54 $ppr->passphrase
55 $ppr->as_crypt
56 $ppr->as_rfc2307
57 These methods are part of the standard Authen::Passphrase
58 interface. The "match" method always returns true, and the
59 "passphrase" method returns the empty string (the shortest of the
60 infinite number of correct passphrases).
61
63 Authen::Passphrase
64
66 Andrew Main (Zefram) <zefram@fysh.org>
67
69 Copyright (C) 2006, 2007, 2009, 2010, 2012 Andrew Main (Zefram)
70 <zefram@fysh.org>
71
73 This module is free software; you can redistribute it and/or modify it
74 under the same terms as Perl itself.
75
76
77
78perl v5.34.0 2021-07-22 Authen::Passphrase::AcceptAll(3)