AnsweredAssumed Answered

LDAP + ActiveDirectory Configuration problems

Question asked by hfrank on Nov 6, 2006
Latest reply on Nov 24, 2006 by andy
I am running alfresco 1.4.0 beta.
So far, I make alfresco to authenticate users against AD by generating the
NTLM configuration from ntlm-authentication-context.xml.sample.
Now I intend to import/synchronize the groups/users information from AD
into alfresco system.
What I did includes:
(1) As I think NTLM is a separate mechanism from LDAP, so I  renamed the ntlm-authentication-context.xml back to ntlm-authentication-context.xml.sample.
(2) comment out the NTLM configuration in the web.xml.
(3) configure the LDAP information in the ldap-authentication-context.xml
(4) change the authenticator in the file-systems.xml from "alfresco" to
"passthru".
(5) restart the alfrsco.


Problems:
(1) I can access alfresco through CIFS but authentication failed for the
webUI logon.
(2) When the scheduled import job run, exceptions occurred. You can find the exception in the attachment.
(3) When another user access alfresco from his own machine CIFS does not work. The prompt window had the following message:
====================
18:45:44,635 DEBUG [org.alfresco.smb.protocol] Waiting for Win32 NetBIOS
session request (Winsock) …
18:45:44,635 DEBUG [org.alfresco.smb.protocol] Server session started
18:45:44,666 DEBUG [org.alfresco.smb.protocol] Winsock NetBIOS session
request received, caller=[PC-219-WINXP:WorkStation,Unique,]
====================

Any hints will be appreciated.

The configuration is as

ldap-authentication-context.xml

<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>

<beans>
   
    <!– DAO that rejects changes - LDAP is read only at the moment. It does allow users to be deleted with out warnings from the UI. –>
   
    <bean name="authenticationDao" class="org.alfresco.repo.security.authentication.DefaultMutableAuthenticationDao" >
        <property name="allowDeleteUser">
            <value>true</value>
        </property>
    </bean>   
  

    <!– 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="authenticationComponentImpl" class="org.alfresco.repo.security.authentication.ldap.LDAPAuthenticationComponentImpl">
        <property name="LDAPInitialDirContextFactory">
            <ref bean="ldapInitialDirContextFactory"/>
        </property>
        <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.
           
            –>
            <!– <value>%s</value> –>
            <value>sAMAccountName=%s</value>
        </property>
    </bean>
   
    <!–
   
    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="org.alfresco.repo.security.authentication.ldap.LDAPInitialDirContextFactoryImpl">
        <property name="initialDirContextEnvironment">
            <map>
                <!– The LDAP provider –>
                <entry key="java.naming.factory.initial">
                    <value>com.sun.jndi.ldap.LdapCtxFactory</value>
                </entry>
               
                <!– 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">
                   <!– <value>ldap://openldap.domain.com:389</value> –>
                   <value>ldap://intra.sunflare.co.jp:389</value>
                </entry>
               
                <!– The authentication mechanism to use      –>
                <!– Some sasl authentication mechanisms may require a realm to be set –>
                <!–                java.naming.security.sasl.realm –>
                <!– The available options will depend on your LDAP provider –>
                <entry key="java.naming.security.authentication">
                    <value>DIGEST-MD5</value>
                </entry>
               
                <!– 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="java.naming.security.principal">
                    <value>cn=侯 平魁,OU=Andrometec,OU=SunFlare OU,DC=intra,DC=sunflare,DC=co,DC=jp</value>
                </entry>
               
                <!– The password for the user defined above –>
                <entry key="java.naming.security.credentials">
                    <value>password</value>
                </entry>
            </map>
        </property>
    </bean>
   
    <!– Ldap Syncronisation support –>
   
    <!–
       
    There can be more than one stack of beans that import users or groups. For example, it may be easier
    to have a version of ldapPeopleExportSource, and associated beans, for each sub-tree of your ldap directory
    from which you want to import users. You could then limit users to be imported from two or more sub tress and ignore
    users found else where. The same applies to the import of groups.
        
    The defaults shown below are for OpenLDAP.   
       
    –>
       
  
    <!– Extract user information from LDAP and transform this to XML –>
    
    <bean id="ldapPeopleExportSource" class="org.alfresco.repo.security.authentication.ldap.LDAPPersonExportSource">
        <!–
        The query to select objects that represent the users to import.
       
        For Open LDAP, using a basic schema, the following is probably what you want:
        (objectclass=inetOrgPerson)
       
        For Active Directory:
        (objectclass=user)
        –>
        <property name="personQuery">
         <!–   <value>(objectclass=inetOrgPerson)</value> –>
            <value>(objectclass=user)</value>
        </property>
       
        <!–
        The seach base restricts the LDAP query to a sub section of tree on the LDAP server.
        –>
        <property name="searchBase">
            <!– <value>dc=alfresco,dc=org</value> –>
            <value>DC=intra,DC=sunflare,DC=co,DC=jp</value>
        </property>
       
        <!–
        The unique identifier for the user.
       
        THIS MUST MATCH WHAT THE USER TYPES IN AT THE LOGIN PROMPT   
       
        For simple LDAP authentication this is likely to be "cn" or, less friendly, "distinguishedName"
       
        In OpenLDAP, using other authentication mechanisms "uid", but this depends on how you map
        from the id in the LDAP authentication request to search for the inetOrgPerson against which
        to authenticate.
       
        In Active Directory this is most likely to be "sAMAccountName"
       
        This property is mandatory and must appear on all users found by the query defined above.
       
        –>
        <property name="userIdAttributeName">
           <!– <value>uid</value> –>
           <value>sAMAccountName</value>
        </property>
       
        <!– Services –>
        <property name="LDAPInitialDirContextFactory">
            <ref bean="ldapInitialDirContextFactory"/>
        </property>
        <property name="personService">
            <ref bean="personService"></ref>
        </property>
        <property name="namespaceService">
            <ref bean="namespaceService"/>
        </property>
       
        <!–
        This property defines a mapping between attributes held on LDAP user objects and
        the properties of user objects held in the repository. The key is the QName of an attribute in
        the repository, the value is the attribute name from the user/inetOrgPerson/.. object in the
        LDAP repository.    
        –>
        <property name="attributeMapping">
            <map>
                <entry key="cm:userName">
                    <!– Must match the same attribute as userIdAttributeName –>
                    <!– <value>uid</value> –>
                    <value>sAMAccountName</value>
                </entry>
                <entry key="cm:firstName">
                    <!– OpenLDAP: "givenName" –>
                    <!– Active Directory: "givenName" –>
                    <value>givenName</value>
                </entry>
                <entry key="cm:lastName">
                    <!– OpenLDAP: "sn" –>
                    <!– Active Directory: "sn" –>
                    <value>sn</value>
                </entry>
                <entry key="cm:email">
                    <!– OpenLDAP: "mail" –>
                    <!– Active Directory: "???" –>
                    <value>mail</value>
                </entry>
                <entry key="cm:organizationId">
                    <!– OpenLDAP: "o" –>
                    <!– Active Directory: "???" –>
                    <!– <value>o</value> –>
                    <value>company</value>
                </entry>
                <!– Always use the default –>
                <entry key="cm:homeFolderProvider">
                    <null/>
                </entry>
            </map>
        </property>
        <!– Set a default home folder provider –>
        <!– Defaults only apply for values above –>
        <property name="attributeDefaults">
            <map>
                <entry key="cm:homeFolderProvider">
                    <value>personalHomeFolderProvider</value>
                </entry>
            </map>
        </property>
    </bean>
   
    <!– Extract group information from LDAP and transform this to XML –>
   
    <bean id="ldapGroupExportSource" class="org.alfresco.repo.security.authentication.ldap.LDAPGroupExportSource">
        <!–
        The query to select objects that represent the groups to import.
       
        For Open LDAP, using a basic schema, the following is probably what you want:
        (objectclass=groupOfNames)
       
        For Active Directory:
        (objectclass=group)
        –>
        <property name="groupQuery">
         <!–   <value>(objectclass=groupOfNames)</value> –>
         <value>(objectclass=group)</value>
        </property>
       
        <!–
        The seach base restricts the LDAP query to a sub section of tree on the LDAP server.
        –>
        <property name="searchBase">
            <value>DC=intra,DC=sunflare,DC=co,DC=jp</value>
        </property>
       
        <!–
        The unique identifier for the user. This must match the userIdAttributeName on the ldapPeopleExportSource bean above.
        –>
        <property name="userIdAttributeName">
            <value>sAMAccountName</value>
        </property>
       
        <!–
        An attribute that is a unique identifier for each group found.
        This is also the name of the group with the current group implementation.
        This is mandatory for any groups found.
       
        OpenLDAP: "cn" as it is mandatory on groupOfNames
        Active Directory: "cn"
       
        –>
        <property name="groupIdAttributeName">
            <value>cn</value>
        </property>
       
        <!–
        The objectClass attribute for group members.
        For each member of a group, the distinguished name is given.
        The object is looked up by its DN. If the object is of this class it is treated as a group.
        –>
        <property name="groupType">
            <value>groupOfNames</value>
        </property>
       
        <!–
        The objectClass attribute for person members.
        For each member of a group, the distinguished name is given.
        The object is looked up by its DN. If the object is of this class it is treated as a person.
        –>
        <property name="personType">
           <!– <value>inetOrgPerson</value> –>
            <value>Person</value>
        </property>
        <property name="LDAPInitialDirContextFactory">
            <ref bean="ldapInitialDirContextFactory"/>
        </property>
        <property name="namespaceService">
            <ref bean="namespaceService"/>
        </property>
       
        <!–
        The repeating attribute on group objects (found by query or as sub groups)
        used to define membership of the group. This is assumed to hold distinguished names of
        other groups or users/people; the above types are used to determine this.
       
        OpenLDAP: "member" as it is mandatory on groupOfNames
        Active Directory: "member"
       
        –>
        <property name="memberAttribute">
            <value>member</value>
        </property>
       
        <property name="authorityDAO">
            <ref bean="authorityDAO"/>
        </property>
    </bean>
   
    <!– Job definitions to import LDAP people and groups –>
    <!– The triggers register themselves with the scheduler –>
    <!– You may comment in the default scheduler to enable these triggers –>
    <!– If a cron base trigger is what you want seee scheduled-jobs-context.xml for examples. –>
   
    <!– Trigger to load poeple –>
    <!– Note you can have more than one initial (context, trigger, import job and export source) set –>
    <!– This would allow you to load people from more than one ldap store –>
   
    <bean id="ldapPeopleTrigger" class="org.alfresco.util.TriggerBean">
        <property name="jobDetail">
            <bean id="ldapPeopleJobDetail" class="org.springframework.scheduling.quartz.JobDetailBean">
                <property name="jobClass">
                    <value>org.alfresco.repo.importer.ImporterJob</value>
                </property>
                <property name="jobDataAsMap">
                    <map>
                        <entry key="bean">
                            <ref bean="ldapPeopleImport"/>
                        </entry>
                    </map>
                </property>
            </bean>
        </property>
        <!– Start after 5 minutes of starting the repository –>
        <property name="startDelay">
            <value>300000</value>
        </property>
        <!– Repeat every hour –>
        <property name="repeatInterval">
            <value>3600000</value>
        </property>
        <!– Commented out to disable
        <property name="scheduler">
            <ref bean="schedulerFactory" />
        </property>
        –>
    </bean>
   
    <bean id="ldapGroupTrigger" class="org.alfresco.util.TriggerBean">
        <property name="jobDetail">
            <bean id="ldapGroupJobDetail" class="org.springframework.scheduling.quartz.JobDetailBean">
                <property name="jobClass">
                    <value>org.alfresco.repo.importer.ImporterJob</value>
                </property>
                <property name="jobDataAsMap">
                    <map>
                        <entry key="bean">
                            <ref bean="ldapGroupImport"/>
                        </entry>
                    </map>
                </property>
            </bean>
        </property>
        <!– Start after 5 minutes of starting the repository –>
        <property name="startDelay">
            <value>300000</value>
        </property>
        <!– Repeat every hour –>
        <property name="repeatInterval">
            <value>3600000</value>
        </property>
        <!– Commented out to disable–>
        <property name="scheduler">
            <ref bean="schedulerFactory" />
        </property>
       
    </bean>
   
    <!– The bean that imports xml describing people –>
   
    <bean id="ldapPeopleImport" class="org.alfresco.repo.importer.ExportSourceImporter">
        <property name="importerService">
            <ref bean="importerComponentWithBehaviour"/>
        </property>
        <property name="transactionService">
            <ref bean="transactionComponent"/>
        </property>
        <property name="authenticationComponent">
            <ref bean="authenticationComponent"/>
        </property>
        <property name="exportSource">
            <ref bean="ldapPeopleExportSource"/>
        </property>

        <!– The store that contains people - this should not be changed –>
        <property name="storeRef">
            <value>${spaces.store}</value>
        </property>
       
        <!– The location of people nodes within the store defined above - this should not be changed –>
        <property name="path">
            <value>/${system.system_container.childname}/${system.people_container.childname}</value>
        </property>
       
        <!– If true, clear all existing people before import, if false update/add people from the xml –>
        <property name="clearAllChildren">
            <value>false</value>
        </property>
        <property name="nodeService">
            <ref bean="nodeService"/>
        </property>
        <property name="searchService">
            <ref bean="searchService"/>
        </property>
        <property name="namespacePrefixResolver">
            <ref bean="namespaceService"/>
        </property>
       
       
        <property name="caches">
            <set>
                <ref bean="permissionsAccessCache"/>
            </set>
        </property>
    </bean>
   
    <!– The bean that imports xml descibing groups –>
   
    <bean id="ldapGroupImport" class="org.alfresco.repo.importer.ExportSourceImporter">
        <property name="importerService">
            <ref bean="importerComponentWithBehaviour"/>
        </property>
        <property name="transactionService">
            <ref bean="transactionComponent"/>
        </property>
        <property name="authenticationComponent">
            <ref bean="authenticationComponent"/>
        </property>
        <property name="exportSource">
            <ref bean="ldapGroupExportSource"/>
        </property>
        <!– The store that contains group information - this should not be changed –>
        <property name="storeRef">
            <value>${alfresco_user_store.store}</value>
        </property>
       
        <!– The location of group information in the store above - this should not be changed –>
        <property name="path">
            <value>/${alfresco_user_store.system_container.childname}/${alfresco_user_store.authorities_container.childname}</value>
        </property>
       
        <!– If true, clear all existing groups before import, if false update/add groups from the xml –>
        <property name="clearAllChildren">
            <value>true</value>
        </property>
        <property name="nodeService">
            <ref bean="nodeService"/>
        </property>
        <property name="searchService">
            <ref bean="searchService"/>
        </property>
        <property name="namespacePrefixResolver">
            <ref bean="namespaceService"/>
        </property>
       
        <!– caches to clear on import of groups –>
        <property name="caches">
            <set>
                <ref bean="userToAuthorityCache"/>
                <ref bean="permissionsAccessCache"/>
            </set>
        </property>
       
        <!– userToAuthorityCache –>
    </bean>
   
</beans>

file-servers.xml
<alfresco-config area="file-servers">

   <config evaluator="string-compare" condition="CIFS Server">
      <host name="${localname}_A"/>
      <comment>Alfresco CIFS Server</comment>

      <!– Set to the broadcast mask for the subnet –>
      <broadcast>255.255.255.255</broadcast>

      <!– Use Java socket based NetBIOS over TCP/IP and native SMB on linux –>
      <tcpipSMB platforms="linux,solaris,macosx"/>
      <netBIOSSMB platforms="linux,solaris,macosx"/>
      <hostAnnounce interval="5"/>

      <!– Use Win32 NetBIOS interface on Windows –>
      <Win32NetBIOS/>
      <Win32Announce interval="5"/>

<!–
      <WINS>
         <primary>1.2.3.4</primary>
         <secondary>5.6.7.8</secondary>
      </WINS>
–>
      <sessionDebug flags="Negotiate,Socket"/>
   </config>

   <config evaluator="string-compare" condition="FTP Server">
<!–      <debug flags="File,Search,Error,Directory,Info,DataPort"/> –>
   </config>
  
   <config evaluator="string-compare" condition="Filesystems">
     <filesystems>
         <filesystem name="Alfresco">
            <store>workspace://SpacesStore</store>
            <rootPath>/app:company_home</rootPath>

         <!– Add a URL file to each folder that links back to the web client –>
         <urlFile>
               <filename>__AlfrescoClient.url</filename>
               <webpath>http://${localname}:8080/alfresco/</webpath>
            </urlFile>

         <!– Mark locked files as offline –>
          <offlineFiles/>

         <!– Desktop actions –>
         <!– Uses a client-side application to trigger a server-side action                         –>
         <!–   Echo - displays a message echoed from the server                                     –>
         <!–   URL  - launches a URL via the Windows shell                                          –>
         <!–   CmdLine - launches the Notepad application                                           –>
         <!–   CheckInOut - checks files in/out, drag and drop files onto the application           –>
         <!–   JavaScript - run a server-side script                                                –>
         <!–   JavaScriptURL - server-side script that generates a URL to the folder using a ticket –>
         <!–                   to avoid having to logon                                             –>

<!–
         <desktopActions>
            <global>
                    <path>alfresco/desktop/Alfresco.exe</path>
               <webpath>http://${localname}:8080/alfresco/</webpath>
            </global>
            <action>
               <class>org.alfresco.filesys.smb.server.repo.desk.EchoDesktopAction</class>
               <name>Echo</name>
                 <filename>__AlfrescoEcho.exe</filename>
            </action>
            <action>
               <class>org.alfresco.filesys.smb.server.repo.desk.URLDesktopAction</class>
               <name>URL</name>
                 <filename>__AlfrescoURL.exe</filename>
            </action>
            <action>
               <class>org.alfresco.filesys.smb.server.repo.desk.CmdLineDesktopAction</class>
               <name>CmdLine</name>
                 <filename>__AlfrescoCmd.exe</filename>
            </action>
            <action>
               <class>org.alfresco.filesys.smb.server.repo.desk.CheckInOutDesktopAction</class>
               <name>CheckInOut</name>
                 <filename>__AlfrescoCheckInOut.exe</filename>
            </action>
            <action>
               <class>org.alfresco.filesys.smb.server.repo.desk.JavaScriptDesktopAction</class>
               <name>JavaScript</name>
               <filename>__AlfrescoScript.exe</filename>
               <script>alfresco/desktop/dumpRequest.js</script>
               <attributes>anyFiles, multiplePaths , allowNoParams</attributes>
               <preprocess>confirm, copyToTarget</preprocess>
            </action>
            <action>
               <class>org.alfresco.filesys.smb.server.repo.desk.JavaScriptDesktopAction</class>
               <name>JavaScriptURL</name>
               <filename>__AlfrescoDetails.exe</filename>
               <script>alfresco/desktop/showDetails.js</script>
               <attributes>anyFiles</attributes>
               <preprocess>copyToTarget</preprocess>
            </action>

         </desktopActions>
–>         
                   
<!–
            <accessControl default="Write">
               <user name="admin" access="Write"/>
               <address subnet="90.1.0.0" mask="255.255.0.0" access="Write"/>
            </accessControl>
–>
         </filesystem>
      </filesystems>
   </config>

   <config evaluator="string-compare" condition="Filesystem Security">
      <!–
      <authenticator type="alfresco">
      </authenticator>
      –>
      <authenticator type="passthru">
      <LocalServer/>
   </authenticator>
<!–
      <globalAccessControl default="None">
         <user name="admin" access="Write"/>
         <address ip="90.1.0.90" access="Write"/>
      </globalAccessControl>

      <users>
         <localuser name="user">
            <password>user</password>
            <comment>Normal user account</comment>
         </localuser>
   
         <localuser name="administrator">
            <password>admin</password>
            <administrator/>
            <comment>Administrator account</comment>
         </localuser>
      </users>
–>
   </config>


</alfresco-config>

Log

18:42:22,525 DEBUG [org.alfresco.smb.protocol] Win32 NetBIOS Available LANAs: 0
18:42:22,666 DEBUG [org.alfresco.smb.protocol] Win32 NetBIOS server IDIOM-TEST_A (using Winsock)
18:42:47,041 DEBUG [org.alfresco.smb.protocol] Win32 NetBIOS created session handler on LANA 0
18:42:47,041 DEBUG [org.alfresco.smb.protocol] Win32 NetBIOS host announcer enabled on LANA 0
18:42:47,056 DEBUG [org.alfresco.smb.protocol] Waiting for Win32 NetBIOS session request (Winsock) …
18:42:47,119 DEBUG [org.alfresco.smb.protocol] Winsock NetBIOS session request received, caller=[IDIOM-TEST:WorkStation,Unique,]
18:42:47,150 DEBUG [org.alfresco.smb.protocol] Waiting for Win32 NetBIOS session request (Winsock) …
18:42:47,150 DEBUG [org.alfresco.smb.protocol.mailslot] HostAnnouncer: Announced host IDIOM-TEST_A
18:42:47,150 DEBUG [org.alfresco.smb.protocol] Server session started
18:42:47,150 DEBUG [org.alfresco.smb.protocol] Negotiated SMB dialect - NT LM 0.12
18:42:47,322 DEBUG [org.alfresco.smb.protocol] Assigned protocol handler - org.alfresco.filesys.smb.server.NTProtocolHandler
18:42:47,338 DEBUG [org.alfresco.smb.protocol.auth] Open authenticate session to [IDIOM-TEST:172.16.0.35:Online:0,0]
18:42:47,338 DEBUG [org.alfresco.smb.protocol.auth] New auth session from idiom-test_2 to \\172.16.0.35\IPC$\
18:42:47,353 DEBUG [org.alfresco.smb.protocol.auth] Trying address 172.16.0.35
18:42:47,353 DEBUG [org.alfresco.smb.protocol.auth] Connected to address 172.16.0.35
18:42:47,353 DEBUG [org.alfresco.smb.protocol.auth] Connected session, protocol : TCP/IP NetBIOS
18:42:47,353 DEBUG [org.alfresco.smb.protocol.auth] SessionFactory: Negotiated SMB dialect NT LM 0.12
18:42:47,369 DEBUG [org.alfresco.smb.protocol.auth] Passthru sessId=2, auth ctx=[NTLM,Challenge=ca1c9d57d7a7401c]
18:42:47,369 DEBUG [org.alfresco.smb.protocol] Win32 NetBIOS register listener for LANA 0
18:42:47,369 DEBUG [org.alfresco.smb.protocol.auth] NT Session setup from user=kou_h, password=a6e0b0636c6e133c45a37cba37e8445514ac1623565f97e2, ANSIpwd=b4106b49b6ff48d7d664c13e6cf85ec95c9ce923b5cb5dee, domain=sunflare, os=Windows Server 2003 3790 Service Pack 1, VC=0, maxBuf=61440, maxMpx=4, authCtx=[NTLM,Challenge=ca1c9d57d7a7401c]
18:42:47,385 DEBUG [org.alfresco.smb.protocol.auth]   MID=43296, UID=0, PID=65279
18:42:47,588 DEBUG [org.alfresco.smb.protocol.auth] Setting current user using person kou_h (username kou_h)
18:42:47,588 DEBUG [org.alfresco.smb.protocol.auth] Passthru authenticate user=kou_h, FULL
18:42:47,588 DEBUG [org.alfresco.smb.protocol.auth] User kou_h logged on  (type Normal)
18:42:52,150 DEBUG [org.alfresco.smb.protocol.mailslot] HostAnnouncer: Announced host IDIOM-TEST_A
18:43:02,150 DEBUG [org.alfresco.smb.protocol.mailslot] HostAnnouncer: Announced host IDIOM-TEST_A
18:43:06,525 DEBUG [org.alfresco.smb.protocol.auth] NT Session setup from user=, password=none, ANSIpwd=00, domain=, os=Windows Server 2003 3790 Service Pack 1, VC=1, maxBuf=61440, maxMpx=4, authCtx=[NTLM,Challenge=ca1c9d57d7a7401c]
18:43:06,525 DEBUG [org.alfresco.smb.protocol.auth]   MID=44721, UID=0, PID=65279
18:43:06,541 DEBUG [org.alfresco.smb.protocol.auth] Null CIFS logon allowed
18:43:06,541 DEBUG [org.alfresco.smb.protocol.auth] User  logged on  (type Null)
18:43:22,150 DEBUG [org.alfresco.smb.protocol.mailslot] HostAnnouncer: Announced host IDIOM-TEST_A
18:44:02,166 DEBUG [org.alfresco.smb.protocol.mailslot] HostAnnouncer: Announced host IDIOM-TEST_A
18:44:26,994 DEBUG [org.alfresco.smb.protocol.auth] NT Session setup from user=, password=none, ANSIpwd=00, domain=, os=Windows Server 2003 3790 Service Pack 1, VC=1, maxBuf=61440, maxMpx=4, authCtx=[NTLM,Challenge=ca1c9d57d7a7401c]
18:44:27,010 DEBUG [org.alfresco.smb.protocol.auth]   MID=6618, UID=0, PID=65279
18:44:27,010 DEBUG [org.alfresco.smb.protocol.auth] Null CIFS logon allowed
18:44:27,010 DEBUG [org.alfresco.smb.protocol.auth] User  logged on  (type Null)
18:45:22,166 DEBUG [org.alfresco.smb.protocol.mailslot] HostAnnouncer: Announced host IDIOM-TEST_A
18:45:38,822 DEBUG [org.alfresco.smb.protocol] Winsock NetBIOS session request received, caller=[PC-219-WINXP:WorkStation,Unique,]
18:45:38,838 DEBUG [org.alfresco.smb.protocol] Waiting for Win32 NetBIOS session request (Winsock) …
18:45:38,838 DEBUG [org.alfresco.smb.protocol] Server session started
18:45:38,838 DEBUG [org.alfresco.smb.protocol] Negotiated SMB dialect - NT LM 0.12
18:45:38,838 DEBUG [org.alfresco.smb.protocol] Assigned protocol handler - org.alfresco.filesys.smb.server.NTProtocolHandler
18:45:38,838 DEBUG [org.alfresco.smb.protocol.auth] Open authenticate session to [IDIOM-TEST:172.16.0.35:Online:1,Mon Nov 06 18:42:47 JST 2006]
18:45:38,853 DEBUG [org.alfresco.smb.protocol.auth] New auth session from idiom-test_3 to \\172.16.0.35\IPC$\
18:45:38,853 DEBUG [org.alfresco.smb.protocol.auth] Trying address 172.16.0.35
18:45:38,853 DEBUG [org.alfresco.smb.protocol.auth] Connected to address 172.16.0.35
18:45:38,853 DEBUG [org.alfresco.smb.protocol.auth] Connected session, protocol : TCP/IP NetBIOS
18:45:38,853 DEBUG [org.alfresco.smb.protocol.auth] SessionFactory: Negotiated SMB dialect NT LM 0.12
18:45:38,869 DEBUG [org.alfresco.smb.protocol.auth] Passthru sessId=3, auth ctx=[NTLM,Challenge=d178902466282ece]
18:45:39,041 DEBUG [org.alfresco.smb.protocol.auth] NT Session setup from user=, password=none, ANSIpwd=00, domain=, os=Windows 2002 Service Pack 2 2600, VC=0, maxBuf=61440, maxMpx=4, authCtx=[NTLM,Challenge=d178902466282ece]
18:45:39,041 DEBUG [org.alfresco.smb.protocol.auth]   MID=8, UID=0, PID=65279
18:45:39,056 DEBUG [org.alfresco.smb.protocol.auth] Null CIFS logon allowed
18:45:39,056 DEBUG [org.alfresco.smb.protocol.auth] User  logged on  (type Null)
18:45:39,197 DEBUG [org.alfresco.smb.protocol] Winsock NetBIOS session request received, caller=[PC-219-WINXP:WorkStation,Unique,]
18:45:39,197 DEBUG [org.alfresco.smb.protocol] Waiting for Win32 NetBIOS session request (Winsock) …
18:45:39,197 DEBUG [org.alfresco.smb.protocol] Server session started
18:45:40,291 DEBUG [org.alfresco.smb.protocol] Winsock NetBIOS session request received, caller=[PC-219-WINXP:WorkStation,Unique,]
18:45:40,306 DEBUG [org.alfresco.smb.protocol] Waiting for Win32 NetBIOS session request (Winsock) …
18:45:40,306 DEBUG [org.alfresco.smb.protocol] Server session started
18:45:44,635 DEBUG [org.alfresco.smb.protocol] Winsock NetBIOS session request received, caller=[PC-219-WINXP:WorkStation,Unique,]
18:45:44,635 DEBUG [org.alfresco.smb.protocol] Waiting for Win32 NetBIOS session request (Winsock) …
18:45:44,635 DEBUG [org.alfresco.smb.protocol] Server session started
18:45:44,666 DEBUG [org.alfresco.smb.protocol] Winsock NetBIOS session request received, caller=[PC-219-WINXP:WorkStation,Unique,]
18:45:44,666 DEBUG [org.alfresco.smb.protocol] Waiting for Win32 NetBIOS session request (Winsock) …
18:45:44,666 DEBUG [org.alfresco.smb.protocol] Server session started
18:45:46,666 DEBUG [org.alfresco.smb.protocol] Winsock NetBIOS session request received, caller=[PC-219-WINXP:WorkStation,Unique,]
18:45:46,666 DEBUG [org.alfresco.smb.protocol] Waiting for Win32 NetBIOS session request (Winsock) …
18:45:46,666 DEBUG [org.alfresco.smb.protocol] Server session started
18:45:53,806 DEBUG [org.alfresco.smb.protocol] Winsock NetBIOS session request received, caller=[PC-219-WINXP:WorkStation,Unique,]
18:45:53,806 DEBUG [org.alfresco.smb.protocol] Waiting for Win32 NetBIOS session request (Winsock) …
18:45:53,822 DEBUG [org.alfresco.smb.protocol] Server session started
18:45:56,041 DEBUG [org.alfresco.smb.protocol] Winsock NetBIOS session request received, caller=[PC-219-WINXP:WorkStation,Unique,]
18:45:56,041 DEBUG [org.alfresco.smb.protocol] Waiting for Win32 NetBIOS session request (Winsock) …
18:45:56,056 DEBUG [org.alfresco.smb.protocol] Server session started
18:45:57,135 DEBUG [org.alfresco.smb.protocol] Winsock NetBIOS session request received, caller=[PC-219-WINXP:WorkStation,Unique,]
18:45:57,135 DEBUG [org.alfresco.smb.protocol] Waiting for Win32 NetBIOS session request (Winsock) …
18:45:57,150 DEBUG [org.alfresco.smb.protocol] Server session started
18:45:57,431 DEBUG [org.alfresco.smb.protocol] Winsock NetBIOS session request received, caller=[PC-219-WINXP:WorkStation,Unique,]
18:45:57,431 DEBUG [org.alfresco.smb.protocol] Waiting for Win32 NetBIOS session request (Winsock) …
18:45:57,431 DEBUG [org.alfresco.smb.protocol] Server session started
18:45:57,650 DEBUG [org.alfresco.smb.protocol] Winsock NetBIOS session request received, caller=[PC-219-WINXP:WorkStation,Unique,]
18:45:57,650 DEBUG [org.alfresco.smb.protocol] Waiting for Win32 NetBIOS session request (Winsock) …
18:45:57,650 DEBUG [org.alfresco.smb.protocol] Server session started
18:47:16,978 ERROR [org.quartz.core.JobRunShell] Job DEFAULT.ldapGroupJobDetail threw an unhandled Exception:
org.alfresco.repo.importer.ExportSourceImporterException: Failed to import
   at org.alfresco.repo.importer.ExportSourceImporter.doImport(ExportSourceImporter.java:206)
   at org.alfresco.repo.importer.ImporterJob.execute(ImporterJob.java:36)
   at org.quartz.core.JobRunShell.run(JobRunShell.java:191)
   at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:516)
Caused by: org.alfresco.repo.security.authentication.AuthenticationException: LDAP authentication failed.
   at org.alfresco.repo.security.authentication.ldap.LDAPInitialDirContextFactoryImpl.buildInitialDirContext(LDAPInitialDirContextFactoryImpl.java:81)
   at org.alfresco.repo.security.authentication.ldap.LDAPInitialDirContextFactoryImpl.getDefaultIntialDirContext(LDAPInitialDirContextFactoryImpl.java:70)
   at org.alfresco.repo.security.authentication.ldap.LDAPGroupExportSource.buildGroupsAndRoots(LDAPGroupExportSource.java:372)
   at org.alfresco.repo.security.authentication.ldap.LDAPGroupExportSource.generateExport(LDAPGroupExportSource.java:174)
   at org.alfresco.repo.importer.ExportSourceImporter.doImport(ExportSourceImporter.java:166)
   … 3 more
Caused by: javax.naming.AuthenticationException: [LDAP: error code 49 - 8009030C: LdapErr: DSID-0C09043E, comment: AcceptSecurityContext error, data 0, vece ]
   at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:2985)
   at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2931)
   at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2732)
   at com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2646)
   at com.sun.jndi.ldap.LdapCtx.<init>(LdapCtx.java:283)
   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.java:136)
   at com.sun.jndi.ldap.LdapCtxFactory.getInitialContext(LdapCtxFactory.java:66)
   at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
   at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
   at javax.naming.InitialContext.init(InitialContext.java:223)
   at javax.naming.InitialContext.<init>(InitialContext.java:197)
   at javax.naming.directory.InitialDirContext.<init>(InitialDirContext.java:82)
   at org.alfresco.repo.security.authentication.ldap.LDAPInitialDirContextFactoryImpl.buildInitialDirContext(LDAPInitialDirContextFactoryImpl.java:77)
   … 7 more
18:47:17,072 ERROR [org.quartz.core.ErrorLogger] Job (DEFAULT.ldapGroupJobDetail threw an exception.
org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: org.alfresco.repo.importer.ExportSourceImporterException: Failed to import]
   at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
   at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:516)
* Nested Exception (Underlying Cause) —————
org.alfresco.repo.importer.ExportSourceImporterException: Failed to import
   at org.alfresco.repo.importer.ExportSourceImporter.doImport(ExportSourceImporter.java:206)
   at org.alfresco.repo.importer.ImporterJob.execute(ImporterJob.java:36)
   at org.quartz.core.JobRunShell.run(JobRunShell.java:191)
   at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:516)
Caused by: org.alfresco.repo.security.authentication.AuthenticationException: LDAP authentication failed.
   at org.alfresco.repo.security.authentication.ldap.LDAPInitialDirContextFactoryImpl.buildInitialDirContext(LDAPInitialDirContextFactoryImpl.java:81)
   at org.alfresco.repo.security.authentication.ldap.LDAPInitialDirContextFactoryImpl.getDefaultIntialDirContext(LDAPInitialDirContextFactoryImpl.java:70)
   at org.alfresco.repo.security.authentication.ldap.LDAPGroupExportSource.buildGroupsAndRoots(LDAPGroupExportSource.java:372)
   at org.alfresco.repo.security.authentication.ldap.LDAPGroupExportSource.generateExport(LDAPGroupExportSource.java:174)
   at org.alfresco.repo.importer.ExportSourceImporter.doImport(ExportSourceImporter.java:166)
   … 3 more
Caused by: javax.naming.AuthenticationException: [LDAP: error code 49 - 8009030C: LdapErr: DSID-0C09043E, comment: AcceptSecurityContext error, data 0, vece ]
   at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:2985)
   at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2931)
   at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2732)
   at com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2646)
   at com.sun.jndi.ldap.LdapCtx.<init>(LdapCtx.java:283)
   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.java:136)
   at com.sun.jndi.ldap.LdapCtxFactory.getInitialContext(LdapCtxFactory.java:66)
   at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
   at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
   at javax.naming.InitialContext.init(InitialContext.java:223)
   at javax.naming.InitialContext.<init>(InitialContext.java:197)
   at javax.naming.directory.InitialDirContext.<init>(InitialDirContext.java:82)
   at org.alfresco.repo.security.authentication.ldap.LDAPInitialDirContextFactoryImpl.buildInitialDirContext(LDAPInitialDirContextFactoryImpl.java:77)
   … 7 more
18:47:48,056 DEBUG [org.alfresco.smb.protocol] Win32 NetBIOS session handler closed
18:47:48,478 INFO  [org.alfresco.smb.protocol] SMB Server shutting down …
18:47:50,478 DEBUG [org.alfresco.smb.protocol.auth] Passthru offline checker thread closed

Thanks a lot for your help.

Outcomes