08-03-2010 12:42 AM
08-03-2010 06:47 AM
authentication.chain=ldap1:ldap-ad # For Active Directory
authentication.chain=ldap1:ldap # For Other Directories
2. Create a file to hold your customized configuration valuesmkdir -p $TOMCAT_HOME/shared/classes/alfresco/extension/subsystems/Authentication/ldap-ad/ldap1
cp $TOMCAT_HOME/webapps/alfresco/WEB-INF/classes/alfresco/subsystems/Authentication/ldap-ad/*.properties $TOMCAT_HOME/shared/classes/alfresco/extension/subsystems/Authentication/ldap-ad/ldap1
For Other Directories:mkdir -p $TOMCAT_HOME/shared/classes/alfresco/extension/subsystems/Authentication/ldap/ldap1
cp $TOMCAT_HOME/webapps/alfresco/WEB-INF/classes/alfresco/subsystems/Authentication/ldap/*.properties $TOMCAT_HOME/shared/classes/alfresco/extension/subsystems/Authentication/ldap/ldap1
3. Edit $TOMCAT_HOME/shared/classes/alfresco/extension/subsystems/Authentication/ldap-ad/ldap1/ldap-ad-authentication.properties or $TOMCAT_HOME/shared/classes/alfresco/extension/subsystems/Authentication/ldap/ldap1/ldap-authentication.properties so that it is correct for your environment. You won't have to edit many properties, as most have been set up with sensible defaults. The properties you will most likely have to edit areldap.authentication.java.naming.provider.url=ldap://openldap.domain.com:389
ldap.synchronization.java.naming.security.principal=cn\=Manager,dc\=company,dc\=com
ldap.synchronization.java.naming.security.credentials=secret
ldap.synchronization.groupSearchBase=ou\=Groups,dc\=company,dc\=com
ldap.synchronization.userSearchBase=ou\=People,dc\=company,dc\=com
Read the configuration guide at http://wiki.alfresco.com/wiki/Alfresco_Authentication_Subsystems#Configuration_2
08-04-2010 12:24 AM
Caused by: javax.naming.AuthenticationException: [LDAP: error code 49 - cannot b
ind the principalDn.]
at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:3005)
at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2951)
at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2753)
at com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2667)
at com.sun.jndi.ldap.LdapCtx.<init>(LdapCtx.java:287)
at com.sun.jndi.ldap.LdapCtxFactory.getUsingURL(LdapCtxFactory.java:175)
at com.sun.jndi.ldap.LdapCtxFactory.getUsingURLs(LdapCtxFactory.java:193
)
at com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxInstance(LdapCtxFactory.ja
va:136)
at com.sun.jndi.ldap.LdapCtxFactory.getInitialContext(LdapCtxFactory.jav
a:66)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:6
67)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288
)
at javax.naming.InitialContext.init(InitialContext.java:223)
at javax.naming.InitialContext.<init>(InitialContext.java:197)
at javax.naming.directory.InitialDirContext.<init>(InitialDirContext.jav
a:82)
at org.alfresco.repo.security.authentication.ldap.LDAPInitialDirContextF
actoryImpl.buildInitialDirContext(LDAPInitialDirContextFactoryImpl.java:105)
… 50 more
09:36:27,780 User:System WARN [security.sync.ChainingUserRegistrySynchronizer]
Failed initial synchronize with user registries
org.alfresco.repo.security.authentication.AuthenticationException: 07040000 LDAP
authentication failed.
at org.alfresco.repo.security.authentication.ldap.LDAPInitialDirContextF
actoryImpl.buildInitialDirContext(LDAPInitialDirContextFactoryImpl.java:110)
at org.alfresco.repo.security.authentication.ldap.LDAPInitialDirContextF
actoryImpl.getDefaultIntialDirContext(LDAPInitialDirContextFactoryImpl.java:85)
at org.alfresco.repo.security.authentication.ldap.LDAPInitialDirContextF
actoryImpl.getDefaultIntialDirContext(LDAPInitialDirContextFactoryImpl.java:76)
at org.alfresco.repo.security.sync.ldap.LDAPUserRegistry$3.<init>(LDAPUs
erRegistry.java:648)
at org.alfresco.repo.security.sync.ldap.LDAPUserRegistry.getGroups(LDAPU
serRegistry.java:645)
at org.alfresco.repo.security.sync.ChainingUserRegistrySynchronizer.sync
WithPlugin(ChainingUserRegistrySynchronizer.java:539)
at org.alfresco.repo.security.sync.ChainingUserRegistrySynchronizer.sync
hronize(ChainingUserRegistrySynchronizer.java:405)
at org.alfresco.repo.security.sync.ChainingUserRegistrySynchronizer$5.do
Work(ChainingUserRegistrySynchronizer.java:1373)
at org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(Au
thenticationUtil.java:508)
at org.alfresco.repo.security.sync.ChainingUserRegistrySynchronizer.onBo
otstrap(ChainingUserRegistrySynchronizer.java:1367)
at org.springframework.extensions.surf.util.AbstractLifecycleBean.onAppl
icationEvent(AbstractLifecycleBean.java:56)
at org.springframework.context.event.SimpleApplicationEventMulticaster.m
ulticastEvent(SimpleApplicationEventMulticaster.java:97)
at org.springframework.context.support.AbstractApplicationContext.publis
hEvent(AbstractApplicationContext.java:294)
at org.springframework.context.support.AbstractApplicationContext.finish
Refresh(AbstractApplicationContext.java:858)
at org.springframework.context.support.AbstractApplicationContext.refres
h(AbstractApplicationContext.java:419)
at org.alfresco.repo.management.subsystems.ChildApplicationContextFactor
y$ApplicationContextState.start(ChildApplicationContextFactory.java:624)
at org.alfresco.repo.management.subsystems.AbstractPropertyBackedBean.st
art(AbstractPropertyBackedBean.java:458)
at org.alfresco.repo.management.subsystems.AbstractPropertyBackedBean.on
ApplicationEvent(AbstractPropertyBackedBean.java:386)
at org.springframework.context.event.SimpleApplicationEventMulticaster.m
ulticastEvent(SimpleApplicationEventMulticaster.java:97)
at org.alfresco.repo.management.SafeApplicationEventMulticaster.multicas
tEvent(SafeApplicationEventMulticaster.java:78)
at org.springframework.context.support.AbstractApplicationContext.publis
hEvent(AbstractApplicationContext.java:294)
at org.springframework.context.support.AbstractApplicationContext.finish
Refresh(AbstractApplicationContext.java:858)
at org.springframework.context.support.AbstractApplicationContext.refres
h(AbstractApplicationContext.java:419)
at org.springframework.web.context.ContextLoader.createWebApplicationCon
text(ContextLoader.java:261)
at org.springframework.web.context.ContextLoader.initWebApplicationConte
xt(ContextLoader.java:192)
at org.springframework.web.context.ContextLoaderListener.contextInitiali
zed(ContextLoaderListener.java:47)
at org.alfresco.web.app.ContextLoaderListener.contextInitialized(Context
LoaderListener.java:63)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContex
t.java:3972)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4
467)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:791)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:77
1)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.ja
va:637)
at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.j
ava:563)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:498
)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
:321)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443
)
at org.apache.catalina.core.StandardService.start(StandardService.java:5
19)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710
)
at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Caused by: javax.naming.AuthenticationException: [LDAP: error code 49 - cannot b
ind the principalDn.]
at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:3005)
at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2951)
at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2753)
at com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2667)
at com.sun.jndi.ldap.LdapCtx.<init>(LdapCtx.java:287)
at com.sun.jndi.ldap.LdapCtxFactory.getUsingURL(LdapCtxFactory.java:175)
at com.sun.jndi.ldap.LdapCtxFactory.getUsingURLs(LdapCtxFactory.java:193
)
at com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxInstance(LdapCtxFactory.ja
va:136)
at com.sun.jndi.ldap.LdapCtxFactory.getInitialContext(LdapCtxFactory.jav
a:66)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:6
67)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288
)
at javax.naming.InitialContext.init(InitialContext.java:223)
at javax.naming.InitialContext.<init>(InitialContext.java:197)
at javax.naming.directory.InitialDirContext.<init>(InitialDirContext.jav
a:82)
at org.alfresco.repo.security.authentication.ldap.LDAPInitialDirContextF
actoryImpl.buildInitialDirContext(LDAPInitialDirContextFactoryImpl.java:105)
… 50 more
09:36:27,923 INFO [management.subsystems.ChildApplicationContextFactory] Start
up of 'Synchronization' subsystem, ID: [Synchronization, default] complete
09:36:28,383 INFO [service.descriptor.DescriptorService] Alfresco JVM - v1.6.0
_11-b03; maximum heap size 998.438MB
09:36:30,989 INFO [service.descriptor.DescriptorService] Alfresco license: Ent
erprise - v3.3 granted to Trial User limited to 30 days expiring Wed Sep 01 00:0
0:00 IST 2010 (28 days remaining)
09:36:30,989 INFO [service.descriptor.DescriptorService] Alfresco started (Ent
erprise): Current version 3.3.0 (64) schema 4010 - Originally installed version
3.3.0 (64) schema 4010
09:37:16,993 INFO [module.vti.VtiServer] Vti server started successfully on po
rt: 7070
09:38:01,208 INFO [alfresco.util.OpenOfficeConnectionTester] The OpenOffice co
nnection was re-established.
09:38:25,870 User:System INFO [extensions.webscripts.DeclarativeRegistry] Regis
tered 415 Web Scripts (+0 failed), 661 URLs
09:38:35,380 User:System INFO [extensions.webscripts.DeclarativeRegistry] Regis
tered 2 Package Description Documents (+0 failed)
09:38:35,380 User:System INFO [extensions.webscripts.DeclarativeRegistry] Regis
tered 1 Schema Description Documents (+0 failed)
09:38:35,380 User:System INFO [extensions.webscripts.AbstractRuntimeContainer]
Initialised Repository Web Script Container (in 41135.93ms)
09:38:35,380 INFO [extensions.webscripts.TemplateProcessorRegistry] Registered
template processor freemarker for extension ftl
09:38:35,380 INFO [extensions.webscripts.ScriptProcessorRegistry] Registered s
cript processor javascript for extension js
09:38:38,948 INFO [management.subsystems.ChildApplicationContextFactory] Start
ing 'wcm_deployment_receiver' subsystem, ID: [wcm_deployment_receiver, default]
09:38:39,137 INFO [alfresco.config.JndiPropertyPlaceholderConfigurer] Loading
properties file from class path resource [alfresco/alfresco-shared.properties]
09:38:39,876 INFO [management.subsystems.ChildApplicationContextFactory] Start
up of 'wcm_deployment_receiver' subsystem, ID: [wcm_deployment_receiver, default
] complete
Aug 4, 2010 9:38:49 AM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor host-manager.xml
Aug 4, 2010 9:38:51 AM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor manager.xml
Aug 4, 2010 9:38:53 AM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive share.war
09:39:59,712 INFO [extensions.webscripts.DeclarativeRegistry] Registered 270 W
eb Scripts (+0 failed), 278 URLs
09:39:59,712 INFO [extensions.webscripts.DeclarativeRegistry] Registered 8 Pac
kage Description Documents (+0 failed)
09:39:59,712 INFO [extensions.webscripts.DeclarativeRegistry] Registered 0 Sch
ema Description Documents (+0 failed)
09:39:59,948 INFO [extensions.webscripts.AbstractRuntimeContainer] Initialised
Spring Surf Container Web Script Container (in 6775.0854ms)
09:40:00,136 INFO [extensions.webscripts.TemplateProcessorRegistry] Registered
template processor freemarker for extension ftl
09:40:00,466 INFO [extensions.webscripts.ScriptProcessorRegistry] Registered s
cript processor javascript for extension js
09:40:00,701 INFO [extensions.webscripts.TemplateProcessorRegistry] Registered
template processor freemarker for extension ftl
09:40:00,701 INFO [extensions.webscripts.ScriptProcessorRegistry] Registered s
cript processor javascript for extension js
09:40:00,890 INFO [extensions.webscripts.TemplateProcessorRegistry] Registered
template processor freemarker for extension ftl
09:40:00,890 INFO [extensions.webscripts.ScriptProcessorRegistry] Registered s
cript processor javascript for extension js
Aug 4, 2010 9:40:05 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory docs
Aug 4, 2010 9:40:05 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory examples
Aug 4, 2010 9:40:07 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Aug 4, 2010 9:40:08 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 503476 ms
ldap.authentication.java.naming.provider.url=ldap://localhost:10389
ldap.synchronization.java.naming.security.principal=cn\=Manager,dc\=company,dc\=com
ldap.synchronization.java.naming.security.credentials=secret
ldap.synchronization.groupSearchBase=ou\=Groups,dc\=company,dc\=com
ldap.synchronization.userSearchBase=ou\=People,dc\=company,dc\=com
08-04-2010 05:56 AM
08-05-2010 01:01 AM
If in login to web-client, then i should be able to access Share with out logging again vice versa.i have referd
08-05-2010 05:39 AM
08-20-2010 02:32 PM
08-24-2010 04:37 AM
12:01:00,875 ERROR [web.context.ContextLoader] Context initialization failed
org.springframework.beans.factory.BeanDefinitionStoreException: Error registering bean with name 'authenticationComponent' defined in file [C:\apache-tomcat-6.0.18\webapps\alfresco\WEB-INF\classes\alfresco\extension\ldap-authentication-context.xml]: Could not resolve parent bean definition 'authenticationComponentBase'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'authenticationComponentBase' is defined
org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'authenticationComponentBase' is defined
at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:352)
at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedBeanDefinition(AbstractBeanFactory.java:671)
at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedBeanDefinition(AbstractBeanFactory.java:703)
at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedBeanDefinition(AbstractBeanFactory.java:671)
at org
…
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Aug 24, 2010 12:01:00 PM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanDefinitionStoreException: Error registering bean with name 'authenticationComponent' defined in file [C:\apache-tomcat-6.0.18\webapps\alfresco\WEB-INF\classes\alfresco\extension\ldap-authentication-context.xml]: Could not resolve parent bean definition 'authenticationComponentBase'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'authenticationComponentBase' is defined
org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'authenticationComponentBase' is defined
at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:352)
at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedBeanDefinition(AbstractBeanFactory.java:671)
at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedBeanDefinition(AbstractBeanFactory.java:703)
at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedBeanDefinition(AbstractBeanFactory.java:671)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:138)
at org.s
…
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Aug 24, 2010 12:01:00 PM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Exception sending context initialized event to listener instance of class org.alfresco.web.app.ContextListener
org.springframework.beans.factory.BeanDefinitionStoreException: Error registering bean with name 'authenticationComponent' defined in file [C:\apache-tomcat-6.0.18\webapps\alfresco\WEB-INF\classes\alfresco\extension\ldap-authentication-context.xml]: Could not resolve parent bean definition 'authenticationComponentBase'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'authenticationComponentBase' is defined
org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'authenticationComponentBase' is defined
at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:352)
at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedBeanDefinition(AbstractBeanFactory.java:671)
at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedBeanDefinition(AbstractBeanFactory.java:703)
at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedBeanDefinition(AbstractBeanFactory.java:671)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:138)
at org.springframewo
…
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Aug 24, 2010 12:01:00 PM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
08-24-2010 05:30 AM
08-24-2010 09:34 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.