Active directory + Alfresco 3.2

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

Re: Active directory + Alfresco 3.2

CA MARCHE !!! …..de mon coté j'ai tout résolu - Authentication LDAP + Synchronization (recupération nom, prenom, email)….non sans mal…..en substance :
    bug sur lectures des répertoires subsystem (le fix existe)
    bug sur contrainte ACE_* lors du lancement de la synchro car une instruction DELETE viole cette contrainte (le fix existe)
    bug lucene apres application Fixes (resolu par index.recovery.mode)
    bug LDAP 11 lors du lancement de la synchro en masse ou a la volée (resolu par ldap.synchronization.java.naming.queryBatchsize)
..je prepare un complément au premier doc que j'ai mis en ligne sur la partie synchronization (seule l'authentication y était traitée)
eweller
Member II

Re: Active directory + Alfresco 3.2

Bonjour,

J'arrives enfin a paramétrer sans erreur, mais ma synchronisation ne se fait pas, je n'ai pas de messages d'erreur (rien ds le log) , même pas le message qui essayes de dire qu'il lance la synchro.

Ca pourrait venir d'où?

Merci

Ya forcément une debut de commencement de trace dans la log….ou alors t'as pas le bon niveau de log. Poste la trace de démarrage de ton serveur pour voir
ima_alfresco
Member II

Re: Active directory + Alfresco 3.2

Eric merci de ta réponse, j'attends ta doc

Mon niveau de log est en error mais j'ai aucune trace voici ce que j'ai fais en détails,donc je n'ai plus d'erreur mais cela ne se synchronise pas :

Fichier alfresco-global.properties

authentication.chain=alfrescoNtlm1:alfrescoNtlm,ldap1:ldap-ad

Répertoire \tomcat\shared\classes\alfresco\extension\subsystems\Authentication

SS répertoire \Authentication\alfrescoNtlm\[managed, alfrescoNtlm1]

Fichier my-authentication.properties

   
alfresco.authentication.authenticateCIFS=true
   
alfresco.authentication.allowGuestLogin=true

my-ntlm-filter.properties

ntlm.authentication.sso.enabled=true
ntlm.authentication.mapUnknownUserToGuest=false

SS répertoire\Authentication\ldap-ad\[managed, ldap1]

my-ldap-ad-authentication.properties

# 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=false

#
# This properties file brings together the common options for LDAP authentication rather than editing the bean definitions
#
ldap.authentication.allowGuestLogin=true
# How to map the user id entered by the user to taht 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    
ldap.authentication.userNameFormat=%s

# 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://monldap: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=Administrator

# 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=CN=alfresco,OU=Administrateurs,DC=im,DC=intra

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

# 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\=groupe)

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

# The query to select all objects that represent the users to import.
ldap.synchronization.personQuery=(|(memberOf=CN=G_CC,OU=Groupes,DC=im,DC=intra))

# 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=ou\=Groups,dc\=company,dc\=com

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

# 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'.0Z'

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

# 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=cn

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

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

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


Répertoire \tomcat\shared\classes\alfresco\extension\subsystems\Synchronization

\Synchronization\default\[default]

my-synchronization.properties


#
# This properties file is used to configure user registry syncronisation (e.g. LDAP)
#

# Should the scheduled sync job only query users and groups changed since the
# last sync? Note that when true, the sync job will not be able to detect which
# users or groups have been removed from the directory (but obviously group
# membership changes would still be reflected). When false, a more regular
# differential sync on login can still be enabled.
synchronization.synchronizeChangesOnly=false

# The cron expression defining when imports should take place
synchronization.import.cron=0 15 0 * * ?

# Should we trigger a differential sync when missing people log in?
synchronization.syncWhenMissingPeopleLogIn=false

# Should we auto create a missing person on log in?
synchronization.autoCreatePeopleOnLogin=false
eweller
Member II

Re: Active directory + Alfresco 3.2

je suppose que ta log de démarrage signale claire la prise en compte du subsystem : ldap-ad

Si oui alors :  change ldap.synchronization.queryBatchSize=1000   pour   ldap.synchronization.queryBatchSize=0
et indique si cela a fait un écart.
Tu dois voir au lancement du serveur Aldfresco la liste des compte users issus de ton OU défiler pour synchronisation.
ima_alfresco
Member II

Re: Active directory + Alfresco 3.2

Tjs la même chose après changement du paramètre, voici mon log :

13:58:07,589 INFO  [org.alfresco.config.JndiPropertiesFactoryBean] Loading properties file from class path resource [alfresco/repository.properties]
13:58:07,589 INFO  [org.alfresco.config.JndiPropertiesFactoryBean] Loading properties file from class path resource [alfresco/domain/transaction.properties]
13:58:07,589 INFO  [org.alfresco.config.JndiPropertiesFactoryBean] Loading properties file from URL [file:/D:/serveur/tomcat/shared/classes/alfresco-global.properties]
13:58:07,698 INFO  [org.alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
13:58:24,777 INFO  [org.alfresco.config.JndiPropertiesFactoryBean] Loading properties file from file [D:\serveur\tomcat\shared\classes\alfresco\extension\subsystems\Authentication\alfrescoNtlm\[managed, alfrescoNtlm1]\my-authentication.properties]
13:58:24,777 INFO  [org.alfresco.config.JndiPropertiesFactoryBean] Loading properties file from file [D:\serveur\tomcat\shared\classes\alfresco\extension\subsystems\Authentication\alfrescoNtlm\[managed, alfrescoNtlm1]\my-ntlm-filter.properties]
13:58:24,777 INFO  [org.alfresco.config.JndiPropertiesFactoryBean] Loading properties file from file [D:\serveur\tomcat\shared\classes\alfresco\extension\subsystems\Authentication\ldap-ad\[managed, ldap1]\my-ldap-ad-authentication.properties]
13:58:28,918 INFO  [org.alfresco.config.JndiPropertiesFactoryBean] Loading properties file from file [D:\serveur\tomcat\shared\classes\alfresco\extension\subsystems\Synchronization\default\[default]\my-synchronization.properties]
13:58:49,059 INFO  [org.alfresco.repo.domain.schema.SchemaBootstrap] Schema managed by database dialect org.alfresco.repo.domain.hibernate.dialect.AlfrescoSQLServerDialect.
13:58:56,606 INFO  [org.alfresco.repo.domain.schema.SchemaBootstrap] No changes were made to the schema.
13:59:02,278 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'thirdparty' subsystem, ID: [default]
13:59:02,309 INFO  [org.alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
13:59:02,919 ERROR [org.alfresco.util.exec.RuntimeExecBootstrapBean] Bootstrap command failed:
Execution result:
   os:         Windows 2003
   command:    [soffice, -accept=socket,host=localhost,port=8100;urp;StarOffice.ServiceManager, -env:UserInstallation=file:///D:/serveur/alf_data/oouser, -nologo, -headless, -nofirststartwizard, -nocrashrep, -norestore]
   succeeded:  false
   exit code:  2
   out:       
   err:        Cannot run program "soffice": CreateProcess error=2, Le fichier spécifié est introuvable
13:59:03,887 WARN  [org.alfresco.util.OpenOfficeConnectionTester] An initial OpenOffice connection could not be established.
13:59:03,887 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'thirdparty' subsystem, ID: [default] complete
13:59:04,059 INFO  [org.alfresco.repo.admin.ConfigurationChecker] The Alfresco root data directory ('dir.root') is: D:\serveur\alf_data
13:59:04,106 INFO  [org.alfresco.repo.admin.patch.PatchExecuter] Checking for patches to apply …
13:59:04,700 INFO  [org.alfresco.repo.admin.patch.PatchExecuter] No patches were required.
13:59:04,700 INFO  [org.alfresco.repo.module.ModuleServiceImpl] Found 0 module(s).
13:59:04,716 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'fileServers' subsystem, ID: [default]
13:59:04,903 INFO  [org.alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
13:59:05,294 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'Authentication' subsystem, ID: [managed, alfrescoNtlm1]
13:59:05,309 INFO  [org.alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
13:59:07,638 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'Authentication' subsystem, ID: [managed, alfrescoNtlm1] complete
13:59:07,731 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'fileServers' subsystem, ID: [default] complete
13:59:07,731 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'imap' subsystem, ID: [default]
13:59:07,747 INFO  [org.alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
13:59:07,809 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'imap' subsystem, ID: [default] complete
13:59:07,809 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'Synchronization' subsystem, ID: [default]
13:59:07,825 INFO  [org.alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
13:59:07,856 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'Synchronization' subsystem, ID: [default] complete
13:59:07,872 INFO  [org.alfresco.service.descriptor.DescriptorService] Alfresco JVM - v1.6.0_10-b33; maximum heap size 506,313MB
13:59:07,888 INFO  [org.alfresco.service.descriptor.DescriptorService] Alfresco started (Community): Current version 3.2.0 (2039) schema 2019 - Installed version 3.2.0 (2039) schema 2019
13:59:37,545 INFO  [org.alfresco.config.JBossEnabledWebApplicationContext] Refreshing org.alfresco.config.JBossEnabledWebApplicationContext@144432d: display name [Root WebApplicationContext]; startup date [Wed Nov 25 13:59:37 CET 2009]; root of context hierarchy
13:59:38,154 INFO  [org.alfresco.config.JBossEnabledWebApplicationContext] Bean factory for application context [org.alfresco.config.JBossEnabledWebApplicationContext@144432d]: org.springframework.beans.factory.support.DefaultListableBeanFactory@1e10cd1
13:59:40,451 INFO  [org.alfresco.web.scripts.DeclarativeRegistry] Registered 24 Web Scripts (+0 failed), 26 URLs
13:59:40,498 INFO  [org.alfresco.web.scripts.AbstractRuntimeContainer] Initialised Presentation Web Script Container (in 326.7256ms)
13:59:40,920 INFO  [org.alfresco.web.scripts.DeclarativeRegistry] Registered 42 Web Scripts (+0 failed), 44 URLs
13:59:40,935 INFO  [org.alfresco.web.scripts.AbstractRuntimeContainer] Initialised WebFramework Web Script Container (in 431.4962ms)
13:59:41,013 INFO  [org.alfresco.web.site.FrameworkHelper] Successfully Initialized Web Framework
13:59:46,342 INFO  [org.alfresco.web.site.FrameworkHelper] Successfully Initialized Web Framework
14:02:53,643 INFO  [org.alfresco.web.site.FrameworkHelper] Successfully Initialized Web Framework
14:02:53,800 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'Authentication' subsystem, ID: [managed, ldap1]
14:02:53,831 INFO  [org.alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
14:02:53,987 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'Authentication' subsystem, ID: [managed, ldap1] complete
eweller
Member II

Re: Active directory + Alfresco 3.2

Deux points qui ne sont pas corrects :

Ton numéro de build=2039   ce qui montre que tu n'as pas installé la version debugguée sur la prise en compte des fichiers subsystem d'extension. Ta log indique Installed version 3.2.0 (2039) schema 2019, tu devrais avoir l'upgrade du Build Alfresco « Current version 3.2.0 (2338) schema 3003 » qui est le niveau de version qui exploite les fichiers d’extension.

Deux explications possibles :
tu n'as pas télécharger le nightbuild correctif et donc pas installé
tu as installé par le untar, mais pas pris de soin d'effacer les répertoires d'application pour forcer leur reconstruction

Solution : dans les 2 cas lit bien la doc que j'ai faite, SRS2, Step 1 et Step 2 tout y est détaillé

Dans ton fichier : my-synchronization.properties
Il te manque :   synchronization.syncOnStartup=true
Lors du redemarrage de ton serveur Alfresco, soit il enclenche une synchro, soit il te donne un message d'erreur plus explicite
ima_alfresco
Member II

Re: Active directory + Alfresco 3.2

Bonjour,

Ca marche enfin, idiot comme je suis, mais faudrait que qqun m'explique le cron. En fait ma synchro se fesait à 00:00. IL me semblait tel que je l'avais paramétré c'était toutes les heures à et quart (15)

synchronization.import.cron=0 15 0 * * ?

Donc si qqun essayes de synchro la méthode que j'ai indiqué plus haut fonctionne , ouf enfin Smiley Tongue

Merci à tous
ima_alfresco
Member II

Re: Active directory + Alfresco 3.2

Comme je disais l'importation se fait très bien ouf

Mais le connexion ne se fait pas, j'ai bien les utilisateurs de créer dans Alfresco.

je n'ai pas de messages d'erreur en particulier
brice
Member II

Re: Active directory + Alfresco 3.2


Solution : dans les 2 cas lit bien la doc que j'ai faite, SRS2, Step 1 et Step 2 tout y est détaillé

euh, elle est où cette doc miraculeuse ?
eweller
Member II

Re: Active directory + Alfresco 3.2

Tu vas la trouver ici : http://sites.google.com/site/blogewe/alfreco-ldap-configuration

Pas de miracle mais quelques heures de travail….en revanche je recherche une doc. d'utilisation simple ???