Esup-News Portlet - Installation Guide

Autors : Julien Gribonvald

Important note

This application is working with these requirements :

To work in uPortal V4 you need to make these modifications (after activating compatibility 3.2):

Installation

Installing the portlet

Configuration

file build.properties

Description of properties

file properties/news.properties

#ldap properties
ldap.url=ldap://ldap.univ.fr:389
ldap.base=ou=people,dc=univ,dc=fr
ldap.username=cn=admin,ou=administrateurs,dc=univ,dc=fr
ldap.password=*****
ldap.anonymousReadOnly=false

Define your LDAP configuration with these properties.
These properties are used in the Spring bean named "contextSource" and defined in web-root/WEB-INF/context/dataAccessContext.xml and in web-root/AppCtxN.xml (used in cron job for mailing admins of admin task)

# LDAP attribute used for user search (cn ou sn)
ldap.userSearchAttr=cn
# LDAP attribute name list of user's attributes to show in users details
ldap.searchDisplayedAttr=displayName, mail, uid, escouai
# Id/uid attribute used to identify the user in LDAP
ldap.userId=uid
# LDAP attribute name to display the name of the user
ldap.userDisplayName=displayName
# LDAP attribute name for the user mail
ldap.userEmail=mail

# List of autorized LDAP attributes used to make filter search.
ldap.filterSearchUserAttr=escouai, ENTEleveClasses, ENTEleveGroupes, ENTAuxEnsClasses, ENTAuxEnsGroupes


For each attribute defined in these properties must be set a display I18N value, this should be done in src/messages.properties
For example for the attribute uid you should set properties :
news.label.uid = Identifier in messages_en.properties
news.label.uid = Identifiant in messages_fr.properties

To set the attribute display name the pattern is
news.label.<AttributeName> = <AttributeDisplayName>


other properties define the number of items to show in different paginated pages

Connecting with Esup-Lecture