cancel
Showing results for 
Search instead for 
Did you mean: 

Error 16000 when trying to talk with AD server

ig_nick
Champ in-the-making
Champ in-the-making
Hi, I'm very new to Alfresco. I'm trying to configure Alfresco 4.0.c community (running on Linux) to speak with our AD server, according to the instructions at:
   http://docs.alfresco.com/4.0/topic/com.alfresco.enterprise.doc/tasks/auth-example-ldap-ad.html

When I restart Alfresco, I end up getting an exception as shown below. I'm not sure what else to try… Any suggestions are very welcome.

I've only changed the fields suggested in the link above (to reflect my AD configuration), and left everything else as it was in the template which Alfresco provided.

Is there any way to force verbose logging of the AD LDAP queries/responses, or other suggestions how to debug this?

thanks in advance.

11:42:23,755 INFO  [org.alfresco.repo.security.sync.ChainingUserRegistrySynchronizer] Retrieving all groups from user registry 'ldap1'
11:42:23,790 ERROR [org.alfresco.repo.security.sync.ChainingUserRegistrySynchronizer] Synchronization aborted due to error
org.alfresco.repo.security.authentication.AuthenticationException: 00160000 Unable to connect to LDAP Server; check LDAP configuration
        at org.alfresco.repo.security.authentication.ldap.LDAPInitialDirContextFactoryImpl.buildInitialDirContext(LDAPInitialDirContextFactoryImpl.java:123)
        at org.alfresco.repo.security.authentication.ldap.LDAPInitialDirContextFactoryImpl.getDefaultIntialDirContext(LDAPInitialDirContextFactoryImpl.java:94)
        at org.alfresco.repo.security.authentication.ldap.LDAPInitialDirContextFactoryImpl.getDefaultIntialDirContext(LDAPInitialDirContextFactoryImpl.java:87)
        at org.alfresco.repo.security.sync.ldap.LDAPUserRegistry$3.<init>(LDAPUserRegistry.java:670)
        at org.alfresco.repo.security.sync.ldap.LDAPUserRegistry.getGroups(LDAPUserRegistry.java:667)
        at org.alfresco.repo.security.sync.ChainingUserRegistrySynchronizer.syncWithPlugin(ChainingUserRegistrySynchronizer.java:632)
        at org.alfresco.repo.security.sync.ChainingUserRegistrySynchronizer.synchronize(ChainingUserRegistrySynchronizer.java:435)
        at org.alfresco.repo.security.sync.ChainingUserRegistrySynchronizer$6.doWork(ChainingUserRegistrySynch
ronizer.java:1650)
        at org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(AuthenticationUtil.java:519)
        at org.alfresco.repo.security.sync.ChainingUserRegistrySynchronizer.onBootstrap(ChainingUserRegistrySy
nchronizer.java:1644)
        at org.springframework.extensions.surf.util.AbstractLifecycleBean.onApplicationEvent(AbstractLifecycleBean.java:56)
        at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:97)
        at org.alfresco.repo.management.subsystems.ChildApplicationContextFactory$ChildApplicationContext.publishEvent(ChildApplicationContextFactory.java:485)
        at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:911)
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:428)
        at org.alfresco.repo.management.subsystems.ChildApplicationContextFactory$ApplicationContextState.start(ChildApplicationContextFactory.java:685)

1 REPLY 1

ig_nick
Champ in-the-making
Champ in-the-making
Found the issue. I was missing a directory in the path I had to create, in which to put the 'ldap-ad-authentication.properties' file. I couldn't copy/paste out of the help since the help uses DOS-style backslashes and I'm running on Linux.

It might be helpful to put a slightly more helpful error message when the expected config file isn't found..