File: UserDBRemote.pm

package info (click to toggle)
lemonldap-ng 1.3.3-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 13,084 kB
  • ctags: 2,440
  • sloc: perl: 25,708; makefile: 622; sh: 176; php: 6; sql: 5
file content (42 lines) | stat: -rw-r--r-- 956 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
## @file
# Remote userDB mechanism

## @class
# Remote userDB mechanism class
package Lemonldap::NG::Portal::UserDBRemote;

use strict;
use Lemonldap::NG::Portal::_Remote;
use Lemonldap::NG::Portal::Simple;
use base qw(Lemonldap::NG::Portal::_Remote);

our $VERSION = '1.0.0';

## @apmethod int userDBInit()
# Call Lemonldap::NG::Portal::_Remote::init();
# @return Lemonldap::NG::Portal constant
*userDBInit = *Lemonldap::NG::Portal::_Remote::init;

## @apmethod int getUser()
# Call checkRemoteId();
# @return Lemonldap::NG::Portal constant
*getUser = *Lemonldap::NG::Portal::_Remote::checkRemoteId;

## @apmethod int setSessionInfos
# @return Lemonldap::NG::Portal constant
sub setSessionInfo {
    my $self = shift;
    delete $self->{rSessionInfo}->{_session_id};
    $self->{sessionInfo} = $self->{rSessionInfo};
    PE_OK;
}

## @apmethod int setGroups
# @return Lemonldap::NG::Portal constant
sub setGroups {
    my $self = shift;
    PE_OK;
}

1;