use Module::Build;
my $build = Module::Build->new(
- module_name => 'Lemonldap::NG::Portal::Auth::My::Kerberos',
+ module_name => 'Lemonldap::NG::Portal::Auth::My::KerberosAuth',
license => 'perl',
);
$build->create_build_script;
-liblemonldap-ng-portal-auth-my-kerberos-perl (1.0~test.0) unstable; urgency=medium
+liblemonldap-ng-portal-auth-my-kerberosauth-perl (1.0~test.1) unstable; urgency=medium
* Initial Release.
+ * Rename because there are collisions with the Kerberos name, so use
+ KerberosAuth instead
-- Michael Howe <michael@michaelhowe.org> Tue, 19 May 2020 16:13:11 +0100
-Source: liblemonldap-ng-portal-auth-my-kerberos-perl
+Source: liblemonldap-ng-portal-auth-my-kerberosauth-perl
Section: perl
Priority: optional
Maintainer: Michael Howe <michael@michaelhowe.org>
#Vcs-Browser: https://salsa.debian.org/debian/liblemonldap-ng-portal-auth-my-kerberos-perl
#Vcs-Git: https://salsa.debian.org/debian/liblemonldap-ng-portal-auth-my-kerberos-perl.git
-Package: liblemonldap-ng-portal-auth-my-kerberos-perl
+Package: liblemonldap-ng-portal-auth-my-kerberosauth-perl
Architecture: all
Depends: ${misc:Depends}, ${perl:Depends}, liblemonldap-ng-portal-perl, libauthen-krb5-simple-perl
+Replaces: liblemonldap-ng-portal-auth-my-kerberos-perl
Description: Custom Kerberos class for lemonldap-ng
This package provides a custom Kerberos class for liblemonldap-ng.
.
+++ /dev/null
-package Lemonldap::NG::Portal::Auth::My::Kerberos;
-
-use strict;
-use Mouse;
-use Authen::Krb5::Simple;
-#use Data::Dumper;
-use Lemonldap::NG::Portal::Main::Constants qw(
- PE_BADCREDENTIALS
- PE_ERROR
- PE_OK
-);
-
-#extends qw(Lemonldap::NG::Portal::Main::Auth);
-extends qw(Lemonldap::NG::Portal::Auth::_WebForm);
-
-our $VERSION = '1.0.0';
-
-# INITIALIZATION
-
-# RUNNING METHODS
-
-sub init {
- my $self = shift;
- return $self->Lemonldap::NG::Portal::Auth::_WebForm::init();
-}
-#sub extractFormInfo {
-# return PE_OK;
-#}
-
-sub authenticate {
- my ( $self, $req ) = @_;
-
-# $self->userLogger->error( Dumper( $req ) );
- my $krb5 = Authen::Krb5::Simple->new();
- my $authen = $krb5->authenticate( $req->{user}, $req->data->{password} );
-
- if( $authen ){
-# $req->user( $req->{user} );
- $self->userLogger->notice("Good Kerberos authentication for $req->{user}");
- return PE_OK;
- } else {
- $self->userLogger->error("Kerberos authentication for $req->{user} failed: " . $krb5->errstr());
- return PE_BADCREDENTIALS;
- }
-}
-
-sub setAuthSessionInfo {
- my ( $self, $req ) = @_;
- $req->sessionInfo->{authenticationLevel} = 2;
- PE_OK;
-}
-
-sub authLogout {
- PE_OK;
-}
-
-#sub getDisplayType {
-# return 1;
-#}
-1;
-
--- /dev/null
+package Lemonldap::NG::Portal::Auth::My::KerberosAuth;
+
+use strict;
+use Mouse;
+use Authen::Krb5::Simple;
+#use Data::Dumper;
+use Lemonldap::NG::Portal::Main::Constants qw(
+ PE_BADCREDENTIALS
+ PE_ERROR
+ PE_OK
+);
+
+#extends qw(Lemonldap::NG::Portal::Main::Auth);
+extends qw(Lemonldap::NG::Portal::Auth::_WebForm);
+
+our $VERSION = '1.0.0';
+
+# INITIALIZATION
+
+# RUNNING METHODS
+
+sub init {
+ my $self = shift;
+ return $self->Lemonldap::NG::Portal::Auth::_WebForm::init();
+}
+#sub extractFormInfo {
+# return PE_OK;
+#}
+
+sub authenticate {
+ my ( $self, $req ) = @_;
+
+# $self->userLogger->error( Dumper( $req ) );
+ my $krb5 = Authen::Krb5::Simple->new();
+ my $authen = $krb5->authenticate( $req->{user}, $req->data->{password} );
+
+ if( $authen ){
+# $req->user( $req->{user} );
+ $self->userLogger->notice("Good Kerberos authentication for $req->{user}");
+ return PE_OK;
+ } else {
+ $self->userLogger->error("Kerberos authentication for $req->{user} failed: " . $krb5->errstr());
+ return PE_BADCREDENTIALS;
+ }
+}
+
+sub setAuthSessionInfo {
+ my ( $self, $req ) = @_;
+ $req->sessionInfo->{authenticationLevel} = 2;
+ PE_OK;
+}
+
+sub authLogout {
+ PE_OK;
+}
+
+#sub getDisplayType {
+# return 1;
+#}
+1;
+