Projets
Pages enfant
  • Installation guide - esup-news

Comparaison des versions

Légende

  • Ces lignes ont été ajoutées. Ce mot a été ajouté.
  • Ces lignes ont été supprimées. Ce mot a été supprimé.
  • La mise en forme a été modifiée.

...

Bloc de code
#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=*****
{code>

Define

...

your

...

LDAP

...

configuration

...

with

...

these

...

properties.

...


These

...

properties

...

are

...

used

...

in

...

the

...

Spring

...

bean

...

contextSource

...

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)

Bloc de code
# 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
Bloc de code
Remarque

For each attribute defined in these properties must be set a display I18N value, this should be done in src/messages.properties
For exemple 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> = <DisplayValue>

...