[Castore-commits] LdapAuthentification.java 1.8 1.9
mathieu grimault
grimault-m at adullact1.hosting.cri74.org
Mar 23 Mai 15:51:21 CEST 2006
Update of /cvsroot/castore/castore-core/src/java/fr/emn/castor/users/authentification
In directory adullact1:/tmp/cvs-serv13404/src/java/fr/emn/castor/users/authentification
Modified Files:
LdapAuthentification.java
Log Message:
Ajout de l'identification des administrateurs via des attributs LDAP.
Modification de LoginAction, qui ajout le premier utilisateur comme administrateur QUE SI on n'est pas en mode d'authentification LDAP.
Index: LdapAuthentification.java
===================================================================
RCS file: /cvsroot/castore/castore-core/src/java/fr/emn/castor/users/authentification/LdapAuthentification.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** LdapAuthentification.java 15 May 2006 14:36:39 -0000 1.8
--- LdapAuthentification.java 23 May 2006 13:51:19 -0000 1.9
***************
*** 279,283 ****
// correspond
// si l'utilisateur correspond a plusieurs types, il prends le
! // dernier de la liste (user, superviseur, documentaliste)
if (isUserType(PropertiesHelper
.getProperty("castortype.user.key"), PropertiesHelper
--- 279,284 ----
// correspond
// si l'utilisateur correspond a plusieurs types, il prends le
! // dernier de la liste :
! // -> user, superviseur, documentaliste, administrateur
if (isUserType(PropertiesHelper
.getProperty("castortype.user.key"), PropertiesHelper
***************
*** 300,303 ****
--- 301,312 ----
castorType = UsersConstants.USERTYPE_DOCUMENTALIST;
}
+ if (isUserType(
+ PropertiesHelper
+ .getProperty("castortype.administrator.key"),
+ PropertiesHelper
+ .getProperty("castortype.administrator.value"),
+ attrs)) {
+ castorType = UsersConstants.USERTYPE_ADMINISTRATOR;
+ }
if (castorType.length() != 0) {
// on a trouve le type d'utilisateur
Plus d'informations sur la liste de diffusion Castore-commits