8.1.4.1.2. cobbler.modules.authorization package¶
8.1.4.1.2.1. Submodules¶
8.1.4.1.2.2. cobbler.modules.authorization.allowall module¶
Authorization module that allows everything, which is the default for new Cobbler installs.
Copyright 2007-2009, Red Hat, Inc and Others Michael DeHaan <michael.dehaan AT gmail>
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Validate a user against a resource. NOTE: acls are not enforced as there is no group support in this module
Parameters: - api_handle – This parameter is not used currently.
- user – This parameter is not used currently.
- resource – This parameter is not used currently.
- arg1 – This parameter is not used currently.
- arg2 – This parameter is not used currently.
Returns: Always True
Return type:
The mandatory Cobbler module registration hook.
Returns: Always “authz” Return type: str
8.1.4.1.2.3. cobbler.modules.authorization.configfile module¶
Authorization module that allow users listed in /etc/cobbler/users.conf to be permitted to access resources. For instance, when using authz_ldap, you want to use authn_configfile, not authz_allowall, which will most likely NOT do what you want.
This software may be freely redistributed under the terms of the GNU general public license.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
Validate a user against a resource. All users in the file are permitted by this module.
Parameters: - api_handle – This parameter is not used currently.
- user – The user to authorize.
- resource – This parameter is not used currently.
- arg1 – This parameter is not used currently.
- arg2 – This parameter is not used currently.
Returns: “0” if no authorized, “1” if authorized.
The mandatory Cobbler module registration hook.
Returns: Always “authz”.
8.1.4.1.2.4. cobbler.modules.authorization.ownership module¶
Authorization module that allow users listed in /etc/cobbler/users.conf to be permitted to access resources, with the further restriction that Cobbler objects can be edited to only allow certain users/groups to access those specific objects.
Copyright 2008-2009, Red Hat, Inc and Others Michael DeHaan <michael.dehaan AT gmail>
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Validate a user against a resource. All users in the file are permitted by this module.
Parameters: - api_handle – The api to resolve required information.
- user – The user to authorize to the resource.
- resource – The resource the user is asking for access. This is something abstract like a remove operation.
- arg1 – This is normally the name of the specific object in question.
- arg2 – This parameter is pointless currently. Reserved for future code.
Returns: True
or1
if okay, otherwiseFalse
.
The mandatory Cobbler module registration hook.
Returns: Always “authz”