Slave in progress
This commit is contained in:
parent
7c2cc91098
commit
3d5709cd0a
@ -575,9 +575,10 @@ sub struct {
|
|||||||
|
|
||||||
# Slave
|
# Slave
|
||||||
slaveParams => {
|
slaveParams => {
|
||||||
_nodes => [qw(slaveAuthnLevel)],
|
_nodes => [qw(slaveAuthnLevel slaveUserAttr)],
|
||||||
_help => 'authSlave',
|
_help => 'authSlave',
|
||||||
slaveAuthnLevel => 'int:/slaveAuthnLevel',
|
slaveAuthnLevel => 'int:/slaveAuthnLevel',
|
||||||
|
slaveUserAttr => 'int:/slaveUserAttr',
|
||||||
},
|
},
|
||||||
|
|
||||||
# Choice
|
# Choice
|
||||||
@ -1655,6 +1656,10 @@ sub testStruct {
|
|||||||
|
|
||||||
# Slave
|
# Slave
|
||||||
slaveAuthnLevel => $integer,
|
slaveAuthnLevel => $integer,
|
||||||
|
slaveUserAttr => {
|
||||||
|
test => qr/^[_a-zA-Z]\w*$/,
|
||||||
|
msgFail => 'Bad attribute name',
|
||||||
|
},
|
||||||
|
|
||||||
# Choice
|
# Choice
|
||||||
authChoiceParams => $testNotDefined,
|
authChoiceParams => $testNotDefined,
|
||||||
|
@ -257,6 +257,8 @@ sub en {
|
|||||||
singleIP => 'One IP only by user',
|
singleIP => 'One IP only by user',
|
||||||
singleSession => 'One session only by user',
|
singleSession => 'One session only by user',
|
||||||
singleUserByIP => 'One user by IP address',
|
singleUserByIP => 'One user by IP address',
|
||||||
|
slaveAuthnLevel => 'Authentication level',
|
||||||
|
slaveParams => 'Slave parameters',
|
||||||
SMTPServer => 'SMTP server',
|
SMTPServer => 'SMTP server',
|
||||||
soap => 'SOAP',
|
soap => 'SOAP',
|
||||||
Soap => 'Activation',
|
Soap => 'Activation',
|
||||||
@ -641,6 +643,8 @@ sub fr {
|
|||||||
singleIP => 'Une seule IP par utilisateur',
|
singleIP => 'Une seule IP par utilisateur',
|
||||||
singleSession => 'Une seule session par utilisateur',
|
singleSession => 'Une seule session par utilisateur',
|
||||||
singleUserByIP => 'Une seule adresse IP par utilisateur',
|
singleUserByIP => 'Une seule adresse IP par utilisateur',
|
||||||
|
slaveAuthnLevel => 'Niveau d\'authentification',
|
||||||
|
slaveParams => 'Paramètres Slave',
|
||||||
SMTPServer => 'Serveur SMTP',
|
SMTPServer => 'Serveur SMTP',
|
||||||
soap => 'SOAP',
|
soap => 'SOAP',
|
||||||
Soap => 'Activation',
|
Soap => 'Activation',
|
||||||
|
@ -18,7 +18,6 @@ our @ISA = qw(Lemonldap::NG::Portal::AuthNull);
|
|||||||
sub setAuthSessionInfo {
|
sub setAuthSessionInfo {
|
||||||
my $self = shift;
|
my $self = shift;
|
||||||
|
|
||||||
$self->{sessionInfo}->{'_user'} = 'anonymous';
|
|
||||||
$self->{sessionInfo}->{authenticationLevel} = $self->{slaveAuthnLevel};
|
$self->{sessionInfo}->{authenticationLevel} = $self->{slaveAuthnLevel};
|
||||||
|
|
||||||
PE_OK;
|
PE_OK;
|
||||||
|
@ -23,6 +23,8 @@ sub setSessionInfo {
|
|||||||
$v =~ s/\-/_/g;
|
$v =~ s/\-/_/g;
|
||||||
$self->{sessionInfo}->{$k} = $ENV{$v} and $c++;
|
$self->{sessionInfo}->{$k} = $ENV{$v} and $c++;
|
||||||
}
|
}
|
||||||
|
$self->{sessionInfo}->{'_user'} ||=
|
||||||
|
$self->{sessionInfo}->{ $self->{slaveUserAttr} };
|
||||||
return ( $c ? PE_OK : PE_USERNOTFOUND );
|
return ( $c ? PE_OK : PE_USERNOTFOUND );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user