Alon Bar-Lev has uploaded a new change for review.

Change subject: aaa: handle credentials incorrect
......................................................................

aaa: handle credentials incorrect

CREDENTIALS_INVALID - user does not exist
CREDENTIALS_INCORRECT - password incorrect

engine does not have these two, so map them into the same.

Topic: AAA
Change-Id: I1e9c4edf6547f0483fd2484e575eeb762720eee2
Signed-off-by: Alon Bar-Lev <alo...@redhat.com>
---
M 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/LoginBaseCommand.java
1 file changed, 3 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/47/27947/1

diff --git 
a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/LoginBaseCommand.java
 
b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/LoginBaseCommand.java
index 9ff5c63..9531879 100644
--- 
a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/LoginBaseCommand.java
+++ 
b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/LoginBaseCommand.java
@@ -49,6 +49,7 @@
         auditLogMap.put(Authn.AuthResult.CREDENTIALS_EXPIRED, 
AuditLogType.USER_ACCOUNT_PASSWORD_EXPIRED);
         auditLogMap.put(Authn.AuthResult.GENERAL_ERROR, 
AuditLogType.USER_VDC_LOGIN_FAILED);
         auditLogMap.put(Authn.AuthResult.CREDENTIALS_INVALID, 
AuditLogType.AUTH_FAILED_INVALID_CREDENTIALS);
+        auditLogMap.put(Authn.AuthResult.CREDENTIALS_INCORRECT, 
AuditLogType.AUTH_FAILED_INVALID_CREDENTIALS);
         auditLogMap.put(Authn.AuthResult.ACCOUNT_LOCKED, 
AuditLogType.USER_ACCOUNT_DISABLED_OR_LOCKED);
         auditLogMap.put(Authn.AuthResult.ACCOUNT_DISABLED, 
AuditLogType.USER_ACCOUNT_DISABLED_OR_LOCKED);
         auditLogMap.put(Authn.AuthResult.TIMED_OUT, 
AuditLogType.USER_ACCOUNT_DISABLED_OR_LOCKED);
@@ -56,6 +57,8 @@
         vdcBllMessagesMap.put(Authn.AuthResult.GENERAL_ERROR, 
VdcBllMessages.USER_FAILED_TO_AUTHENTICATE);
         vdcBllMessagesMap.put(Authn.AuthResult.CREDENTIALS_INVALID,
                 
VdcBllMessages.USER_FAILED_TO_AUTHENTICATE_WRONG_USERNAME_OR_PASSWORD);
+        vdcBllMessagesMap.put(Authn.AuthResult.CREDENTIALS_INCORRECT,
+                
VdcBllMessages.USER_FAILED_TO_AUTHENTICATE_WRONG_USERNAME_OR_PASSWORD);
         vdcBllMessagesMap.put(Authn.AuthResult.ACCOUNT_LOCKED, 
VdcBllMessages.USER_ACCOUNT_DISABLED);
         vdcBllMessagesMap.put(Authn.AuthResult.ACCOUNT_DISABLED, 
VdcBllMessages.USER_ACCOUNT_DISABLED);
         vdcBllMessagesMap.put(Authn.AuthResult.TIMED_OUT, 
VdcBllMessages.USER_FAILED_TO_AUTHENTICATE_TIMED_OUT);


-- 
To view, visit http://gerrit.ovirt.org/27947
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I1e9c4edf6547f0483fd2484e575eeb762720eee2
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Alon Bar-Lev <alo...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to