Connexion ALFRESCO

cancel
Showing results for 
Search instead for 
Did you mean: 
bobby
Member II

Connexion ALFRESCO

Bonjour à tous,

Actuellement stagiaire en entreprise, mon projet est de mettre en place une GED, je me suis tourné vers ALFRESCO. Smiley Happy
Après un bon moment de "prise de tête" sur la synchronisation LDAP, j'ai enfin réussi pour que les users de mon OpenLDAP soit bien crées dans ALFRESCO.
Cependant, je n'arrive pas à me connecter avec mon user (du LDAP) et mon mot de passe pour accéder à mon espace.

De plus je ne peux modifier ce mot de passe avec l'Admin local d'ALFRESCO !

Y'a-t-il un problème avec le mot de passe ? Un problème de droit qui bloque l'authentification ?

D'avance merci et bonne journée !

Cordialement,
Bobby.
4 Replies
michaelh
Active Member

Re: Connexion ALFRESCO

Hum … j'ai lu et relu, mais je ne suis pas certain de bien suivre (ça arrive parfois, digestion, toussa :wink: )

Si je comprends bien :
- Les utilisateurs sont synchronisés
- Vous n'arrivez à vous connecter avec aucun des utilisateurs de l'annuaire
- Vous arrivez à vous connecter avec l'admin "local" (non synchronisé)
- Vous voudriez changer les mots de passe des utilisateurs synchronisés ?

C'est ça ?  :?
bobby
Member II

Re: Connexion ALFRESCO

Bonjour,

Merci de répondre tout d'abord ! ^^

- Donc oui c'est ça : tout mon annuaire est synchronisé, les users sont bien là quand je me connecte en " admin / password lors de l'install ".
- Je n'arrive pas à me connecter avec mon user provenant de l'annuaire (prenom.nom) et le mot de passe habituel.
- Oui je me connecte bien avec l'admin par défaut.
- Bah vu que je n'arrivais pas à me connecter avec mon user de l'annuaire j'ai tenté de modifier le mot de passe avec le compte admin de défaut mais je n'ai même pas pu.

D'avance merci Smiley Wink
Cordialement,
Bobby.
jeanjot
Active Member

Re: Connexion ALFRESCO

bonsoir

Peut-être pourriez-vous détailler l'installation de votre LDAP et que cela pourrait nous aider à comprendre …
bobby
Member II

Re: Connexion ALFRESCO

Bonjour,

Après avoir fait une installation en testant le workflow et le versionning, ma synchronisation ne marchant pas, j'ai refait une install clean de la 3.2r.

J'ai enfin compris la config' avec les subsystems.

J'ai donc :

C:\Alfresco\tomcat\shared\classes\alfresco\extension\subsystems\Authentication\ldap
=> Avec dedans le dossier ldap1 et le fichier common-ldap-context.xml (non modifié)

Voici le fichier de conf' :

# This flag enables use of this LDAP subsystem for authentication. It may be
# that this subsytem should only be used for synchronization, in which case
# this flag should be set to false.
ldap.authentication.active=true

#
# This properties file brings together the common options for LDAP authentication rather than editing the bean definitions
#
ldap.authentication.allowGuestLogin=false
# How to map the user id entered by the user to that passed through to LDAP
# - simple
#    - this must be a DN and would be something like
#      uid=%s,ou=People,dc=company,dc=com
# - digest
#    - usually pass through what is entered
#      %s
# If not set, an LDAP query involving ldap.synchronization.personQuery and ldap.synchronization.userIdAttributeName will
# be performed to resolve the DN dynamically. This allows directories to be structured and doesn't require the user ID to
# appear in the DN.
ldap.authentication.userNameFormat=uid= XXX


# The LDAP context factory to use
ldap.authentication.java.naming.factory.initial=com.sun.jndi.ldap.LdapCtxFactory

# The URL to connect to the LDAP server
ldap.authentication.java.naming.provider.url=ldap://ldap.XXX:389

# The authentication mechanism to use
ldap.authentication.java.naming.security.authentication=simple

# Escape commas entered by the user at bind time
# Useful when using simple authentication and the CN is part of the DN and contains commas
ldap.authentication.escapeCommasInBind=false

# Escape commas entered by the user when setting the authenticated user
# Useful when using simple authentication and the CN is part of the DN and contains commas, and the escaped \, is
# pulled in as part of an LDAP sync
# If this option is set to true it will break the default home folder provider as space names can not contain \
ldap.authentication.escapeCommasInUid=false

# Comma separated list of user names who should be considered administrators by default
ldap.authentication.defaultAdministratorUserNames=XXX

# This flag enables use of this LDAP subsystem for user and group
# synchronization. It may be that this subsytem should only be used for
# authentication, in which case this flag should be set to false.
ldap.synchronization.active=true

# The default principal to use (only used for LDAP sync)
ldap.synchronization.java.naming.security.principal=XXX

# The password for the default principal (only used for LDAP sync)
ldap.synchronization.java.naming.security.credentials=XXX

# If positive, this property indicates that RFC 2696 paged results should be
# used to split query results into batches of the specified size. This
# overcomes any size limits imposed by the LDAP server.
ldap.synchronization.queryBatchSize=1000

# The query to select all objects that represent the groups to import.
ldap.synchronization.groupQuery=(objectclass\=groupOfNames)

# The query to select objects that represent the groups to import that have changed since a certain time.
ldap.synchronization.groupDifferentialQuery=(&(objectclass\=groupOfNames)(!(modifyTimestamp<\={0})))

# The query to select all objects that represent the users to import.
ldap.synchronization.personQuery=(objectclass\=inetOrgPerson)

# The query to select objects that represent the users to import that have changed since a certain time.
ldap.synchronization.personDifferentialQuery=(&(objectclass\=inetOrgPerson)(!(modifyTimestamp<\={0})))

# The group search base restricts the LDAP group query to a sub section of tree on the LDAP server.
ldap.synchronization.groupSearchBase=XXX

# The user search base restricts the LDAP user query to a sub section of tree on the LDAP server.
ldap.synchronization.userSearchBase=XXX

# The name of the operational attribute recording the last update time for a group or user.
ldap.synchronization.modifyTimestampAttributeName=modifyTimestamp

# The timestamp format. Unfortunately, this varies between directory servers.
ldap.synchronization.timestampFormat=yyyyMMddHHmmss'Z'

# The attribute name on people objects found in LDAP to use as the uid in Alfresco
ldap.synchronization.userIdAttributeName=cn
#uid

# The attribute on person objects in LDAP to map to the first name property in Alfresco
ldap.synchronization.userFirstNameAttributeName=givenName

# The attribute on person objects in LDAP to map to the last name property in Alfresco
ldap.synchronization.userLastNameAttributeName=sn

# The attribute on person objects in LDAP to map to the email property in Alfresco
ldap.synchronization.userEmailAttributeName=mail

# The attribute on person objects in LDAP to map to the organizational id  property in Alfresco
ldap.synchronization.userOrganizationalIdAttributeName=o

# The default home folder provider to use for people created via LDAP import
ldap.synchronization.defaultHomeFolderProvider=userHomesHomeFolderProvider

# The attribute on LDAP group objects to map to the gid property in Alfrecso
ldap.synchronization.groupIdAttributeName=uid

# The group type in LDAP
ldap.synchronization.groupType=groupOfNames

# The person type in LDAP
ldap.synchronization.personType=inetOrgPerson

# The attribute in LDAP on group objects that defines the DN for its members
ldap.synchronization.groupMemberAttributeName=member

# If true progress estimation is enabled. When enabled, the user query has to be run twice in order to count entries.
ldap.synchronization.enableProgressEstimation=true


Voici mon alfresco-global.properties :


###############################
## Common Alfresco Properties #
###############################

#
# Sample custom content and index data location
#————-
dir.root=C:/Alfresco/alf_data

#
# Sample database connection properties
#————-
db.name=alfresco
db.username=alfresco
db.password=alfresco
db.host=localhost
db.port=3306

#
# External locations
#————-
ooo.exe=C:/Alfresco/OpenOffice.org/program/soffice
ooo.user=C:/Alfresco/alf_data/oouser
img.root=C:/Alfresco/ImageMagick
swf.exe=C:/Alfresco/bin/pdf2swf

#
# Initial admin password
#————-
alfresco_user_store.adminpassword=bfad8787f5dc64b730028c20a64eba94

#
# MySQL connection
#————-
db.driver=org.gjt.mm.mysql.Driver
db.url=jdbc:mysql://${db.host}:${db.port}/${db.name}
hibernate.dialect=org.hibernate.dialect.MySQLInnoDBDialect

#
# Index Recovery Mode
#————-
index.recovery.mode=FULL

#
# Outbound Email Configuration
#————-
#mail.host=
#mail.port=25
#mail.username=anonymous
#mail.password=
#mail.encoding=UTF-8
#mail.from.default=alfresco@alfresco.org
#mail.smtp.auth=false

#
# Alfresco Email Service and Email Server
#————-

# Enable/Disable the inbound email service.  The service could be used by processes other than
# the Email Server (e.g. direct RMI access) so this flag is independent of the Email Service.
#————-
#email.inbound.enabled=true

# Email Server properties
#————-
#email.server.enabled=true
#email.server.port=25
#email.server.domain=alfresco.com
#email.inbound.unknownUser=anonymous

# A comma separated list of email REGEX patterns of allowed senders.
# If there are any values in the list then all sender email addresses
# must match.  For example:
#   .*\@alfresco\.com, .*\@alfresco\.org
# Allow anyone:
#————-
#email.server.allowed.senders=.*

#
# The default authentication chain
# To configure external authentication subsystems see:
# http://wiki.alfresco.com/wiki/Alfresco_Authentication_Subsystems
#————-
authentication.chain=alfrescoNtlm1:alfrescoNtlm,ldap1:ldap
#



#
# IMAP
#————-
#imap.server.enabled=true
#imap.server.port=143
#imap.server.host=localhost

Et donc quand je lance Alfresco server, dans le TOMCAT j'ai bien vu la synchronisation avec l'import des users…

Dites moi si vous avez besoin du code d'autres fichiers.

Cordialement,
Bobby.