2017-03-07 18:28:09 +01:00
|
|
|
package Lemonldap::NG::Portal::UserDB::Custom;
|
|
|
|
|
|
|
|
use strict;
|
|
|
|
|
|
|
|
sub new {
|
|
|
|
my ( $class, $self ) = @_;
|
|
|
|
unless ( $self->{conf}->{customUserDB} ) {
|
2018-08-29 18:52:22 +02:00
|
|
|
die 'Custom User DB module not defined';
|
2017-03-07 18:28:09 +01:00
|
|
|
}
|
2018-08-29 18:52:22 +02:00
|
|
|
|
|
|
|
eval $self->{p}->loadModule( $self->{conf}->{customUserDB} );
|
|
|
|
($@)
|
|
|
|
? return $self->{p}->loadModule( $self->{conf}->{customUserDB} )
|
|
|
|
: die 'Unable to load UserDB module ' . $self->{conf}->{customUserDB};
|
2017-03-07 18:28:09 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
1;
|