PROBLEMAS ALFRESCO 3.2 + OPENLDAP

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

PROBLEMAS ALFRESCO 3.2 + OPENLDAP

Hola,
He leido muchos post sobre este tema y no he logbrado conectar mi alfresco, 3.2 que por cierto lo tengo en mi pc local, con un servidor openldap que esta en otra pc.

Configurando los archivos ldap.authentication.properties y el default-synchronization.properties me di cuenta que aun me podia conectar con el usuario admin admin de alfresco por lo que se que no me funciona la coneccion con ldap y el log es el siguiente:

12:52:17,661 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'Authentication' subsy$
12:52:17,702 INFO  [org.alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource$
12:52:18,523 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'Authentication' sub$
12:52:23,556 ERROR [org.alfresco.fileserver] Failed to get local domain/workgroup name, using default of WORKGROUP
12:52:23,557 ERROR [org.alfresco.fileserver] (This may be due to firewall settings or incorrect <broadcast> setting)
12:52:23,648 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'fileServers' subsys$
12:52:23,648 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'imap' subsystem, ID: $
12:52:23,663 INFO  [org.alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource$
12:52:23,733 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'imap' subsystem, ID$
12:52:23,826 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'Synchronization' subs$
12:52:23,872 INFO  [org.alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource$
12:52:23,882 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'Synchronization' su$
12:52:23,967 INFO  [org.alfresco.service.descriptor.DescriptorService] Alfresco JVM - v1.6.0_16-b01; maximum heap size 506,$
12:52:23,968 INFO  [org.alfresco.service.descriptor.DescriptorService] Alfresco started (Community): Current version 3.2.0 $
12:52:24,831 INFO  [org.alfresco.module.vti.VtiServer] Vti server started successfully on port: 7070
12:52:27,758 ERROR [org.springframework.web.context.ContextLoader] Context initialization failed

Esto fue lo que configure en los dos ficheros:
ldap-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=true

#
# 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=uid=%s,ou=people,dc=vcl,dc=uci,dc=cu

# 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.vcl.uci.cu: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=

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

# The default principal to use (only used for LDAP sync)
ldap.synchronization.java.naming.security.principal=cn=anonimo anonimo,dc=vcl,dc=uci,dc=cu
# The password for the default principal (only used for LDAP sync)
ldap.synchronization.java.naming.security.credentials=atreyuhsf31285

# 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=dc=vcl,dc=uci,dc=cu

# The user search base restricts the LDAP user query to a sub section of tree on the LDAP server.
ldap.synchronization.userSearchBase=ou=people,dc=vcl,dc=uci,dc=cu

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

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


default-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 0 0 * * ?

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

# Should we auto create a missing person on log in?
synchronization.autoCreatePeopleOnLogin=true

Mi pregunta es la siguiente hay que configurar algun otro fichero del cual no se haya hablado en los post, ademas si alguien puede ver mi log y decirme que es lo que encuenta, lo agradecere puesto que en ningun momento de mi log me da errores con la direccion ldap o por el ususrio y la contrasena, mas bien no me hace nada se queda como si no hubiese cambiado los ficheros de configuracion.
Gracias y espero sus respuestas.
5 Replies
pjcaracuel_2349
Active Member II

Re: PROBLEMAS ALFRESCO 3.2 + OPENLDAP

Buenas,

Muy bien detallado el post, lastima que el log de tan poca informacion. Me imagino que habras visto muchas entradas, pero puedes decirme si esto se podria aplicar a tu entorno?
http://wiki.alfresco.com/wiki/Security_Services#Chaining

Saludos
luna05
Member II

Re: PROBLEMAS ALFRESCO 3.2 + OPENLDAP

Pedro,
Segun lo que me mandaste cuando yo configuro el chaining.properties es porque quiero combinar varios servicios de autenticacion, o tengo varios repositorios de Ldap, pero en un final yo solo quiero conectar un solo servicio de autenticacion que sea con el ldap que esta en mi servidor.

Cuando hago los cambios en los ficheros correspondientes en ningun momento del log me da algun error que tenga que ver con mi servidor ldap o con los usuarios y contrasenas mas bien me da la impresion de que no esta cargando los ficheros de ldap ni las configuraciones que le puse. No obstante aqui te voy a poner mi log entero de hoy cuando inicialice por primera vez mi alfresco. Fijate que el error que me da es un grupo.

Fijate en estas dos lineas del log y dime si crees que eso tenga algo que ver porque la verdad que yo no encuentro donde esta el error.

8:39:23,676 ERROR [org.alfresco.fileserver] Failed to get local domain/workgroup name, using default of WORKGROUP
08:39:23,677 ERROR [org.alfresco.fileserver] (This may be due to firewall settings or incorrect <broadcast> setting)

Por otra parte cuando me fijo en estas lineas del log creo que alfresco esta usando el metodo NTLM1 para autenticar y no se como decirle que no es ese sino que me coja la configuracion de LDAP que esta en los ficheros que configure y que puse en el post anterior.

08:39:17,783 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'Authentication' subsystem, ID: [managed, alfrescoNtlm1]

Log

08:38:03,116 INFO  [org.alfresco.config.JndiPropertiesFactoryBean] Loading properties file from class path resource [alfresco/repository.properties]
08:38:03,119 INFO  [org.alfresco.config.JndiPropertiesFactoryBean] Loading properties file from class path resource [alfresco/domain/transaction.properties]
08:38:03,119 INFO  [org.alfresco.config.JndiPropertiesFactoryBean] Loading properties file from URL [file:/opt/Alfresco/tomcat/shared/classes/alfresco-global.properties]
08:38:03,334 INFO  [org.alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
08:38:43,048 INFO  [org.alfresco.repo.domain.schema.SchemaBootstrap] Schema managed by database dialect org.hibernate.dialect.PostgreSQLDialect.
08:38:58,799 INFO  [org.alfresco.repo.domain.schema.SchemaBootstrap] No changes were made to the schema.
08:39:12,267 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'thirdparty' subsystem, ID: [default]
08:39:12,334 INFO  [org.alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
08:39:12,457 ERROR [org.alfresco.repo.content.transform.RuntimeExecutableContentTransformerWorker] Failed to start a runtime executable content transformer:
Execution result:
   os:         Linux
   command:    [/opt/Alfresco/bin/pdf2swf, -V]
   succeeded:  false
   exit code:  1
   out:       
   err:        Cannot run program "/opt/Alfresco/bin/pdf2swf": java.io.IOException: error=2, No such file or directory
08:39:12,986 ERROR [org.alfresco.repo.content.transform.magick.AbstractImageMagickContentTransformerWorker] ImageMagickContentTransformerWorker not available: 10110000 Failed to perform ImageMagick transformation:
Execution result:
   os:         Linux
   command:    [/usr/local/bin/convert, /opt/Alfresco/tomcat/temp/Alfresco/ImageMagickContentTransformerWorker_init_source_8546388564025121217.gif[0], /opt/Alfresco/tomcat/temp/Alfresco/ImageMagickContentTransformerWorker_init_target_3224003927758500489.png]
   succeeded:  false
   exit code:  1
   out:       
   err:        Cannot run program "/usr/local/bin/convert": java.io.IOException: error=2, No such file or directory
08:39:13,348 WARN  [org.alfresco.util.OpenOfficeConnectionTester] An initial OpenOffice connection could not be established.
08:39:13,349 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'thirdparty' subsystem, ID: [default] complete
08:39:14,771 INFO  [org.alfresco.repo.admin.ConfigurationChecker] The Alfresco root data directory ('dir.root') is: /opt/Alfresco/alf_data
08:39:15,031 INFO  [org.alfresco.repo.admin.patch.PatchExecuter] Checking for patches to apply …
08:39:15,589 INFO  [org.alfresco.repo.admin.patch.PatchExecuter] No patches were required.
08:39:15,787 INFO  [org.alfresco.repo.module.ModuleServiceImpl] Found 2 module(s).
08:39:16,055 INFO  [org.alfresco.repo.module.ModuleServiceImpl] Starting module 'org.alfresco.module.vti' version 1.2.
08:39:16,222 INFO  [org.alfresco.repo.module.ModuleServiceImpl] Starting module 'PostgreSQL.for.Alfresco.3.2.Community' version 1.0.
08:39:16,451 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'fileServers' subsystem, ID: [default]
08:39:16,511 INFO  [org.alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
08:39:17,783 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'Authentication' subsystem, ID: [managed, alfrescoNtlm1]
08:39:17,906 INFO  [org.alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
08:39:18,633 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'Authentication' subsystem, ID: [managed, alfrescoNtlm1] complete
08:39:23,676 ERROR [org.alfresco.fileserver] Failed to get local domain/workgroup name, using default of WORKGROUP
08:39:23,677 ERROR [org.alfresco.fileserver] (This may be due to firewall settings or incorrect <broadcast> setting)
08:39:23,811 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'fileServers' subsystem, ID: [default] complete
08:39:23,811 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'imap' subsystem, ID: [default]
08:39:23,844 INFO  [org.alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
08:39:23,933 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'imap' subsystem, ID: [default] complete
08:39:23,933 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'Synchronization' subsystem, ID: [default]
08:39:23,985 INFO  [org.alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
08:39:24,080 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'Synchronization' subsystem, ID: [default] complete
08:39:24,159 INFO  [org.alfresco.service.descriptor.DescriptorService] Alfresco JVM - v1.6.0_16-b01; maximum heap size 506,313MB
08:39:24,160 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
08:39:24,865 INFO  [org.alfresco.module.vti.VtiServer] Vti server started successfully on port: 7070
08:39:46,190 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'wcm_deployment_receiver' subsystem, ID: [default]
08:39:46,241 INFO  [org.alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
08:39:46,406 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'wcm_deployment_receiver' subsystem, ID: [default] complete
08:40:00,805 INFO  [org.alfresco.util.OpenOfficeConnectionTester] The OpenOffice connection was re-established.
08:43:02,746 INFO  [org.alfresco.web.site.FrameworkHelper] Successfully Initialized Web Framework
08:43:04,025 INFO  [org.alfresco.config.JBossEnabledWebApplicationContext] Refreshing org.alfresco.config.JBossEnabledWebApplicationContext@10bb517: display name [Root WebApplicationContext]; startup date [Wed Nov 11 08:43:04 CST 2009]; root of context hierarchy
08:43:04,520 INFO  [org.alfresco.config.JBossEnabledWebApplicationContext] Bean factory for application context [org.alfresco.config.JBossEnabledWebApplicationContext@10bb517]: org.springframework.beans.factory.support.DefaultListableBeanFactory@160b48a
08:43:07,467 INFO  [org.alfresco.web.scripts.DeclarativeRegistry] Registered 24 Web Scripts (+0 failed), 26 URLs
08:43:07,507 INFO  [org.alfresco.web.scripts.AbstractRuntimeContainer] Initialised Presentation Web Script Container (in 455.9411ms)
08:43:07,699 INFO  [org.alfresco.web.scripts.DeclarativeRegistry] Registered 42 Web Scripts (+0 failed), 44 URLs
08:43:07,719 INFO  [org.alfresco.web.scripts.AbstractRuntimeContainer] Initialised WebFramework Web Script Container (in 204.648ms)
08:43:07,767 INFO  [org.alfresco.web.site.FrameworkHelper] Successfully Initialized Web Framework
pjcaracuel_2349
Active Member II

Re: PROBLEMAS ALFRESCO 3.2 + OPENLDAP

Luna,

08:39:23,676 ERROR [org.alfresco.fileserver] Failed to get local domain/workgroup name, using default of WORKGROUP
08:39:23,677 ERROR [org.alfresco.fileserver] (This may be due to firewall settings or incorrect <broadcast> setting)

Lo unico que se me ocurre es que no te reconozca el nombre del dominio. Firewall?? no se ….

He visto por el foro en ingles varias entradas con el mismo error, pero normalmente estan asociadas al uso de CIF.

Siento no poder ser de mas ayuda.

Saludos
cesarista
Customer

Re: PROBLEMAS ALFRESCO 3.2 + OPENLDAP

Hola Luna,

La configuración de autenticación y sincronización del ldap en alfresco 3.2 se puede hacer toda en el archivo alfresco-global.properties definiendo la cadena de autenticación y los datos de acceso al ldap correspondientes.

De los archivos de logs, parece que no tienes Imagemagick ni swftools instalados (o correctamente configurados en el fichero de properties) y que estas habilitando puertos para el cifs con un usuario sin privilegios.

Un saludo.

– Cesar.
luna05
Member II

Re: PROBLEMAS ALFRESCO 3.2 + OPENLDAP

ok trabajare en eso………gracias