NAME

Oak::AAS::Service::DBI_N_PAM - Class that defines the logic of how to use the DBI_N_PAM service.

HIERARCHY

Oak::Object

Oak::AAS::Service

Oak::AAS::Service

DESCRIPTION

This is the base class for all the AAS services. This class describes the functionality of any service.

METHODS

constructor($params)

Must create the object and store the params it needs to work. Must throw an error if something goes wrong. The params must be a single string.

start_session(user,password)

Must start the session and return a unique id or false.

validate_session(user,sessionid)

Check if this is a valid session, return a boolean value (1=>success).

end_session(user,sessionid)

End this session

is_allowed(user,uri)

Return a true value if this user have access to this uri false if not.

is_allowed_group(group,uri)

Return a true value if this group have access to this uri false if not.

grant(user,uri)

Grant user the access to uri.

grant_group(group,uri)

Grant group the access to uri.

deny(user,uri)

Make the uri denied to the user

deny_group(group,uri)

Make the uri denied to the group

list_uri

return an array with the available uri

COPYRIGHT

Copyright (c) 2003 Oktiva <http://www.oktiva.com.br> All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

CREATE TABLE aas_session ( id varchar(255) NOT NULL DEFAULT "" PRIMARY KEY, login varchar(127) NOT NULL DEFAULT "" UNIQUE, last_access int UNSIGNED NOT NULL DEFAULT 0, ip varchar(255) NOT NULL DEFAULT "" );

CREATE TABLE aas_user_perms ( login varchar(127) NOT NULL DEFAULT "", uri varchar(255) NOT NULL DEFAULT "", PRIMARY KEY (login), UNIQUE KEY login_uri (login,uri) );

CREATE TABLE aas_group_perms ( login varchar(127) NOT NULL DEFAULT "", uri varchar(255) NOT NULL DEFAULT "", PRIMARY KEY (login), UNIQUE KEY login_uri (login,uri) );