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


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

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.
Must start the session and return a unique id or false.
Check if this is a valid session, return a boolean value (1=>success).
End this session
Return a true value if this user have access to this uri false if not.
Return a true value if this group have access to this uri false if not.
Grant user the access to uri.
Grant group the access to uri.
Make the uri denied to the user
Make the uri denied to the group
return an array with the available uri

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) );