'type' => 'checkbox',
},
+ {
+ 'key' => 'authentication_module',
+ 'section' => 'UI',
+ 'description' => '"Internal" is the default , which authenticates against the internal database. "Legacy" is similar, but matches passwords against a legacy htpasswd file.',
+ 'type' => 'select',
+ 'select_enum' => [qw( Internal Legacy )],
+ },
+
{ key => "apacheroot", section => "deprecated", description => "<b>DEPRECATED</b>", type => "text" },
{ key => "apachemachine", section => "deprecated", description => "<b>DEPRECATED</b>", type => "text" },
{ key => "apachemachines", section => "deprecated", description => "<b>DEPRECATED</b>", type => "text" },
--- /dev/null
+package FS::access_user::internal;
+use base qw( FS::access_user );
+
+use strict;
+
+sub authenticate {
+ my( $username, $check_password ) = @_;
+
+
+}
+
+sub change_password {
+}
+
+1;
--- /dev/null
+package FS::access_user::legacy;
+use base qw( FS::access_user ); #::internal ?
+
+use strict;
+
+sub authenticate {
+ my( $username, $check_password ) = @_;
+
+
+}
+
+sub change_password {
+}
+
+1;
--- /dev/null
+package FS::access_user::external_auth;
+use base qw( FS::access_user );
+
+use strict;
+
+sub authenticate {
+ my( $username, $check_password ) = @_;
+
+ #magic happens here
+
+ if ( $auth_good ) { #verbose for clarity
+ return 1;
+ } else {
+ return 0;
+ }
+
+}
+
+#omitting these subroutines will eliminate
+
+#sub create_user {
+#
+
+#sub change_password {
+#}
+
+1;