3 sub mod_unixpw_directives
6 [ 'AuthUserFile', 0, 6, 'virtual global', 1.11 ],
7 [ 'AuthGroupFile', 0, 6, 'virtual global', 1.11 ],
8 [ 'AuthPAMAuthoritative', 0, 6, 'virtual global', 1.20 ],
9 [ 'PersistentPasswd', 0, 6, 'root', 1.15 ]
11 return &make_directives($rv, $_[0], "mod_unixpw");
16 return (2, $text{'mod_unixpw_ufile'},
17 &opt_input($_[0]->{'value'}, "AuthUserFile", $text{'mod_unixpw_none'},
18 50, &file_chooser_button("AuthUserFile")));
22 $in{'AuthUserFile_def'} || -r $in{'AuthUserFile'} ||
23 &error($text{'mod_unixpw_eufile'});
24 return &parse_opt("AuthUserFile");
27 sub edit_AuthGroupFile
29 return (2, $text{'mod_unixpw_gfile'},
30 &opt_input($_[0]->{'value'}, "AuthGroupFile", $text{'mod_unixpw_none'},
31 50, &file_chooser_button("AuthGroupFile")));
33 sub save_AuthGroupFile
35 $in{'AuthGroupFile_def'} || -r $in{'AuthGroupFile'} ||
36 &error($text{'mod_unixpw_egfile'});
37 return &parse_opt("AuthGroupFile");
40 sub edit_AuthPAMAuthoritative
42 return (1, $text{'mod_unixpw_pam'},
43 &choice_input($_[0]->{'value'}, "AuthPAMAuthoritative", "",
44 "$text{'yes'},on", "$text{'no'},off",
45 "$text{'default'},"));
47 sub save_AuthPAMAuthoritative
49 return &parse_choice("AuthPAMAuthoritative", "");
52 sub edit_PersistentPasswd
54 return (1, $text{'mod_unixpw_persist'},
55 &choice_input($_[0]->{'value'}, "PersistentPasswd", "",
56 "$text{'yes'},on", "$text{'no'},off",
57 "$text{'default'},"));
59 sub save_PersistentPasswd
61 return &parse_choice("PersistentPasswd", "");