AnsweredAssumed Answered

LDAP Authentication Problem

Question asked by pajarokillo on May 25, 2007
Latest reply on May 29, 2007 by sebastien.marin
Hi, i have just installed Alfresco 2.0, and i want to authenticate users in an external LDAP Active Directory, but it don't work.

I have done the following steps:

1.- I uncommented the ldap-authentication-context.xml file and I modify his content:

<?xml version='1.0' encoding='UTF-8'?>

     <!– LDAP authentication configuration –>
    You can also use JAAS authentication for Kerberos against Active Directory or NTLM if you also require single sign on from the
    web browser. You do not have to use LDAP authentication to synchronise groups and users from an LDAP store if it supports other
    authentication routes, like Active Directory.
    <bean id="authenticationComponent" class="">
        <property name="LDAPInitialDirContextFactory">
            <ref bean="ldapInitialDirContextFactory"/>
        <property name="userNameFormat">
            This maps between what the user types in and what is passed through to the underlying LDAP authentication.
            "%s" - the user id is passed through without modification.
            Used for LDAP authentication such as DIGEST-MD5, anything that is not "simple".
            "cn=%s,ou=London,dc=company,dc=com" - If the user types in "Joe Bloggs" the authentricate as "cn=Joe Bloggs,ou=London,dc=company,dc=com"
            Usually for simple authentication.
    This bean is used to support general LDAP authentication. It is also used to provide read only access to users and groups
    to pull them out of the LDAP reopsitory
    <bean id="ldapInitialDirContextFactory" class="">
        <property name="initialDirContextEnvironment">
                <!– The LDAP provider –>
                <entry key="java.naming.factory.initial">
                <!– The url to the LDAP server –>
                <!– Note you can use space separated urls - they will be tried in turn until one works –>
                <!– This could be used to authenticate against one or more ldap servers (you will not know which one ….) –>
                <entry key="java.naming.provider.url">
                <!– The authentication mechanism to use      –>
                <!– Some sasl authentication mechanisms may require a realm to be set –>
                <!–       –>
                <!– The available options will depend on your LDAP provider –>
                <entry key="">
                <!– The id of a user who can read group and user information –>
                <!– This does not go through the pattern substitution defined above and is used "as is" –>
                <entry key="">
                <!– The password for the user defined above –>
                <entry key="">


Whe i start Alfresco i get the next error:

14:31:07,142 ERROR [org.alfresco.smb.protocol.auth] No valid CIFS authentication combination available
14:31:07,142 ERROR [org.alfresco.smb.protocol.auth] Either enable Kerberos support or use an authentication component that supports MD4 hashed passwords
14:31:07,158 ERROR [org.alfresco.smb.protocol] CIFS server configuration error, Invalid CIFS authenticator configuration
org.alfresco.error.AlfrescoRuntimeException: Invalid CIFS authenticator configuration
   at org.alfresco.filesys.server.auth.EnterpriseCifsAuthenticator.initialize(
   at org.alfresco.filesys.server.config.ServerConfiguration.setAuthenticator(
   at org.alfresco.filesys.server.config.ServerConfiguration.processSecurityConfig(
   at org.alfresco.filesys.server.config.ServerConfiguration.init(
   at org.alfresco.filesys.server.config.ServerConfiguration.onBootstrap(
   at org.alfresco.util.AbstractLifecycleBean.onApplicationEvent(
   at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(
   at org.springframework.web.context.ContextLoader.createWebApplicationContext(
   at org.springframework.web.context.ContextLoader.initWebApplicationContext(
   at org.springframework.web.context.ContextLoaderListener.contextInitialized(
   at org.apache.catalina.core.StandardContext.listenerStart(
   at org.apache.catalina.core.StandardContext.start(
   at org.apache.catalina.core.ContainerBase.addChildInternal(
   at org.apache.catalina.core.ContainerBase.addChild(
   at org.apache.catalina.core.StandardHost.addChild(
   at org.apache.catalina.startup.HostConfig.deployWAR(
   at org.apache.catalina.startup.HostConfig.deployWARs(
   at org.apache.catalina.startup.HostConfig.deployApps(
   at org.apache.catalina.startup.HostConfig.start(
   at org.apache.catalina.startup.HostConfig.lifecycleEvent(
   at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(
   at org.apache.catalina.core.ContainerBase.start(
   at org.apache.catalina.core.StandardHost.start(
   at org.apache.catalina.core.ContainerBase.start(
   at org.apache.catalina.core.StandardEngine.start(
   at org.apache.catalina.core.StandardService.start(
   at org.apache.catalina.core.StandardServer.start(
   at org.apache.catalina.startup.Catalina.start(
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(
   at java.lang.reflect.Method.invoke(
   at org.apache.catalina.startup.Bootstrap.start(
   at org.apache.catalina.startup.Bootstrap.main(

Have someone any idea of this error?

Have i to use CIFS authenticator configuration mandatorily to authenticate user against LDAP?