Cambiar los nombres de rol por defecto
Por defecto, la aplicación incluye dos roles de conexión llamados “ROLE_USER” y “ROLE_ADMIN”. Cualquier usuario de OpenKM debe tener asignado uno de estos roles para iniciar sesión.
Cambiar los roles por defecto
Sección titulada «Cambiar los roles por defecto»Editar el fichero openkm.properties
Sección titulada «Editar el fichero openkm.properties»default.user.role=NEW_ROLE_USER_NAMEdefault.admin.role=NEW_ROLE_ADMIN_NAMEActualizar los roles por defecto a los nuevos nombres en la base de datos
Sección titulada «Actualizar los roles por defecto a los nuevos nombres en la base de datos»- Vaya a Administration > Tools > Database query
-- Update security tableUPDATE OKM_NODE_ROLE_PERMISSION SET NRP_ROLE='NEW_ROLE_USER_NAME' WHERE NRP_ROLE='ROLE_USER';UPDATE OKM_NODE_ROLE_PERMISSION SET NRP_ROLE='NEW_ROLE_ADMIN_NAME' WHERE NRP_ROLE='ROLE_ADMIN';
-- Insert new rolesINSERT INTO OKM_ROLE (ROL_ID, ROL_ACTIVE) VALUES ('NEW_ROLE_USER_NAME', 'T');INSERT INTO OKM_ROLE (ROL_ID, ROL_ACTIVE) VALUES ('NEW_ROLE_ADMIN_NAME', 'T');
-- Update user rolesUPDATE OKM_USER_ROLE SET UR_ROLE='NEW_ROLE_USER_NAME' WHERE UR_ROLE='ROLE_USER';UPDATE OKM_USER_ROLE SET UR_ROLE='NEW_ROLE_ADMIN_NAME' WHERE UR_ROLE='ROLE_ADMIN';
-- Remove older rolesDELETE FROM OKM_ROLE WHERE ROL_ID IN ('ROLE_USER', 'ROLE_ADMIN');- Reinicie el servicio de OpenKM
- Vaya a Administration > Tools > Lucene indexes > Rebuild indexes