Change in ovirt-engine[master]: 13. core: Add authentication module
yzaslavs at redhat.com
yzaslavs at redhat.com
Wed Jan 15 21:23:22 UTC 2014
Yair Zaslavsky has submitted this change and it was merged.
Change subject: 13. core: Add authentication module
......................................................................
13. core: Add authentication module
This patch adds a new "authentication" backend module intended to
contain the builtin authentication and directory implementations.
In this initial version it only contains very simple NOP authenticator
and an equally simple NOP directory. The NOP authenticator just accepts
any user name and any password, without validation. The NOP directory
doesn't have any backend, it just creates users as requested. Obviously
these aren't very useful outside of testing, althought the NOP directory
can be useful when authentication is relevant but user details (mail,
name, etc) and groups aren't relevant
In order to use these authenticator and directory a new authentication
profile has to be configured creating a nop.conf file inside
/etc/ovirt-engine/auth.conf.d. The content of that file should be
something like this:
#
# The name of the authentication profile (this is what will be
# displayed to the user in the login dialog):
#
name=nop
#
# The name of the JBoss module that contains the implementation of the
# authenticator and the directory:
#
module=org.ovirt.engine.core.authentication
#
# The type is used to select the implementation of the authenticator
# and the directory. The NOP authenticator and directory register
# themselves with "nop" as the type:
#
type=nop
Change-Id: I79ff506bfca42d90a1fbaa7d9bfa8b0c4c140dff
Signed-off-by: Juan Hernandez <juan.hernandez at redhat.com>
---
A backend/manager/modules/authentication/exclude-filters.xml
A backend/manager/modules/authentication/pom.xml
A backend/manager/modules/authentication/src/main/java/org/ovirt/engine/core/authentication/nop/NopAuthenticationResult.java
A backend/manager/modules/authentication/src/main/java/org/ovirt/engine/core/authentication/nop/NopAuthenticator.java
A backend/manager/modules/authentication/src/main/java/org/ovirt/engine/core/authentication/nop/NopAuthenticatorFactory.java
A backend/manager/modules/authentication/src/main/java/org/ovirt/engine/core/authentication/nop/NopDirectory.java
A backend/manager/modules/authentication/src/main/java/org/ovirt/engine/core/authentication/nop/NopDirectoryFactory.java
A backend/manager/modules/authentication/src/main/modules/org/ovirt/engine/core/authentication/main/module.xml
A backend/manager/modules/authentication/src/main/resources/META-INF/services/org.ovirt.engine.core.authentication.AuthenticatorFactory
A backend/manager/modules/authentication/src/main/resources/META-INF/services/org.ovirt.engine.core.authentication.DirectoryFactory
M backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/InitBackendServicesOnStartupBean.java
M backend/manager/modules/pom.xml
M backend/manager/modules/utils/src/main/java/org/ovirt/engine/core/utils/EngineLocalConfig.java
M ovirt-engine.spec.in
14 files changed, 351 insertions(+), 0 deletions(-)
Approvals:
Yair Zaslavsky: Verified; Looks good to me, approved
--
To view, visit http://gerrit.ovirt.org/21027
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I79ff506bfca42d90a1fbaa7d9bfa8b0c4c140dff
Gerrit-PatchSet: 32
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Juan Hernandez <juan.hernandez at redhat.com>
Gerrit-Reviewer: Alon Bar-Lev <alonbl at redhat.com>
Gerrit-Reviewer: Juan Hernandez <juan.hernandez at redhat.com>
Gerrit-Reviewer: Liran Zelkha <lzelkha at redhat.com>
Gerrit-Reviewer: Martin Peřina <mperina at redhat.com>
Gerrit-Reviewer: Ravi Nori <rnori at redhat.com>
Gerrit-Reviewer: Yair Zaslavsky <yzaslavs at redhat.com>
Gerrit-Reviewer: mooli tayer <mtayer at redhat.com>
Gerrit-Reviewer: oVirt Jenkins CI Server
More information about the Engine-commits
mailing list