04-10-2006 10:28 AM
<bean id="ldapPeopleExportSource" class="org.alfresco.repo.security.authentication.ldap.LDAPPersonExportSource">
<property name="personQuery">
<value>(objectclass=Person)</value>
</property>
<property name="searchBase">
<value>dc=company,dc=be</value>
</property>
<property name="userIdAttributeName">
<value>cn</value>
</property>
<property name="LDAPInitialDirContextFactory">
<ref bean="ldapInitialDirContextFactory" />
</property>
<property name="personService">
<ref bean="personService"></ref>
</property>
<property name="namespaceService">
<ref bean="namespaceService" />
</property>
<property name="defaultHomeFolder">
<value>/app:company_home</value>
</property>
<property name="attributeMapping">
<map>
<entry key="cm:userName">
<value>cn</value>
</entry>
<entry key="cm:firstName">
<value>givenName</value>
</entry>
<entry key="cm:lastName">
<value>sn</value>
</entry>
<entry key="cm:email">
<value>mail</value>
</entry>
<entry key="cm:organizationId">
<value>cn</value>
</entry>
</map>
</property>
</bean>
<ref bean="ldapPeopleTrigger" />
15:42:30,371 ERROR [org.quartz.core.JobRunShell] Job DEFAULT.ldapPeopleJobDetail threw an unhandled Exception:
org.alfresco.repo.importer.ExportSourceImporterException: Failed to import
at org.alfresco.repo.importer.ExportSourceImporter.doImport(ExportSourceImporter.java:165)
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: java.lang.NullPointerException
at org.alfresco.repo.security.authentication.ldap.LDAPPersonExportSource.generateExport(Unknown Source)
at org.alfresco.repo.importer.ExportSourceImporter.doImport(ExportSourceImporter.java:149)
… 3 more
15:42:30,371 ERROR [org.quartz.core.ErrorLogger] Job (DEFAULT.ldapPeopleJobDetail 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:165)
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: java.lang.NullPointerException
at org.alfresco.repo.security.authentication.ldap.LDAPPersonExportSource.generateExport(Unknown Source)
at org.alfresco.repo.importer.ExportSourceImporter.doImport(ExportSourceImporter.java:149)
… 3 more
<property name="storeRef">
<value>${alfresco_user_store.store}</value>
</property>
<property name="path">
<value>/${alfresco_user_store.system_container.childname}/${alfresco_user_store.authorities_container.childname}</value>
</property>
04-12-2006 08:08 AM
04-13-2006 03:16 AM
It is possible there is trouble with groups defined across the two LDAP servers.Indeed, this could be an issue but there is no connection to the second LDAP for the moment (we'll probably need cross membership of groups later on). We would like to fix group support with AD first. I removed the configuration settings to our OpenLDAP to keep it "simple". The AD groups contain "AD only" people so there shouldn't be any cross LDAP conflicts. Some of these groups contain people that aren't/shouldn't be imported in Alfresco, could this cause an error?
AD uses "user" as opposed to person.All our users are Person objects, even in AD so this shouldn't be the problem, should it?
What are people going to type in at the login screen?AD people will use the CN in the login screen but I don't see how this is related to the group import?
Is your error exactly the same?Yes, the error is exactly the same and no, importing people again is not a problem, this still works. The error (Job DEFAULT.ldapGroupJobDetail threw an unhandled Exception) is quite general so it could be something else.
You may be finding groups that do not have a CN attribute set?I'm afraid not, all our groups have a CN attribute set so again… this should not cause the error.
04-13-2006 04:23 AM
04-13-2006 05:13 AM
1:04:35,068 ERROR [org.alfresco.repo.content.transform.magick.AbstractImageMagickContentTransformer] ImageMagickContentTransformer not available: Failed to execute command: imconvert /opt/alfresco/tomcat/temp/Alfresco/ImageMagickContentTransformer_init_source_52346.gif /opt/alfresco/tomcat/temp/Alfresco/ImageMagickContentTransformer_init_target_52347.png
11:04:36,268 INFO [org.alfresco.repo.admin.patch.PatchExecuter] Checking for patches to apply …
11:04:36,318 INFO [org.alfresco.repo.admin.patch.PatchExecuter] No patches were required.
11:04:36,338 ERROR [org.alfresco.smb.protocol] Failed to get local domain/workgroup name, using default of WORKGROUP
11:04:36,338 ERROR [org.alfresco.smb.protocol] (This may be due to firewall settings or incorrect <broadcast> setting)
11:04:36,348 ERROR [org.alfresco.smb.protocol] File server configuration error, Wrong authentication setup for alfresco authenticator
org.alfresco.error.AlfrescoRuntimeException: Wrong authentication setup for alfresco authenticator
at org.alfresco.filesys.server.config.ServerConfiguration.processSecurityConfig(ServerConfiguration.java:1570)
at org.alfresco.filesys.server.config.ServerConfiguration.init(ServerConfiguration.java:492)
at org.alfresco.filesys.server.config.ServerConfiguration.onApplicationEvent(ServerConfiguration.java:423)
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:45)
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:225)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:323)
at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:134)
at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:246)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:184)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3692)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4127)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:804)
at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:693)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1118)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1020)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
at org.apache.catalina.core.StandardService.start(StandardService.java:450)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:680)
at org.apache.catalina.startup.Catalina.start(Catalina.java:536)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:275)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
11:04:36,378 ERROR [org.alfresco.ftp.protocol] FTP Socket error
java.net.BindException: Address already in use
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
at java.net.ServerSocket.bind(ServerSocket.java:319)
at java.net.ServerSocket.<init>(ServerSocket.java:185)
at java.net.ServerSocket.<init>(ServerSocket.java:141)
at org.alfresco.filesys.ftp.FTPNetworkServer.run(FTPNetworkServer.java:377)
at java.lang.Thread.run(Thread.java:595)
11:04:36,378 INFO [org.alfresco.service.descriptor.DescriptorService] Alfresco JVM - v1.5.0_06-b05; maximum heap size 455.125MB
11:04:36,378 WARN [org.alfresco.service.descriptor.DescriptorService] Alfresco JVM - WARNING - maximum heap size 455.125MB is less than recommended 512MB
11:04:36,388 INFO [org.alfresco.service.descriptor.DescriptorService] Alfresco started (Enterprise Network): Current version 1.2.0 schema 6 - Installed version 1.1.2 schema 0
11:04:46,129 DEBUG [org.alfresco.repo.security.authentication.ldap.LDAPPersonExportSource] Adding user for accountA
… importing the 998 other accounts …
11:05:12,241 DEBUG [org.alfresco.repo.security.authentication.ldap.LDAPPersonExportSource] Adding user for accountZ
11:05:25,881 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:165)
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: java.lang.NullPointerException
at org.alfresco.repo.security.authentication.ldap.LDAPGroupExportSource.?(Unknown Source)
at org.alfresco.repo.security.authentication.ldap.LDAPGroupExportSource.generateExport(Unknown Source)
at org.alfresco.repo.importer.ExportSourceImporter.doImport(ExportSourceImporter.java:149)
… 3 more
11:05:25,881 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:165)
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: java.lang.NullPointerException
at org.alfresco.repo.security.authentication.ldap.LDAPGroupExportSource.?(Unknown Source)
at org.alfresco.repo.security.authentication.ldap.LDAPGroupExportSource.generateExport(Unknown Source)
at org.alfresco.repo.importer.ExportSourceImporter.doImport(ExportSourceImporter.java:149)
… 3 more
04-13-2006 06:09 AM
if (s_logger.isDebugEnabled())
{
s_logger.debug("Found " + lookup.size());
}
04-13-2006 06:35 AM
You have a group returned by the query with no attributes at allThis would mean that the FIRST group that is imported would be empty. We would see at least one "Adding group…" message in the log file if this wasn't the case, wouldn't we?
16:44:45.260752 adserver.company.be.ldap > alfresco.53519: . [tcp sum ok] 913711:915159(1448) ack 115 win 65421 <nop,nop,timestamp 204894928 950577113> (DF) (ttl 128, id 41979, len 1500)
E…..@…+..g…g.X……!………."…….6r.8…jectCategory1….3.1CN=Group,CN=Schema,CN=Configuration,DC=company,DC=be0….V..dSCorePropagationData1….9..20050218134851.0Z..20050218134818.0Z..16010101000417.0Z0……..d……3
CN=accountX,OU=Groups,OU=User.Accounts,DC=company,DC=be0…..0…….objectClass1…….top..group0…….cn1…….accountX0….:..description1….'.%Contract.account:.Anil.SurenameXl0…….member1….q.8CN=accountY,OU=Non-Personal,
OU=User.Accounts,DC=company,DC=be.5CN=accountZ,OU=Payroll,OU=User.Accounts,DC=company,DC=be0….N..distinguishedName1….5.3CN=accountY,OU=Groups,OU=User.Accounts,DC=company,DC=be0…….instanceType1…….40….&..
whenCreated1…….20020419075041.0Z0….&..whenChanged1…….20050215111125.0Z0…….uSNCreated1…….263980…….uSNChanged1…….263980….+..extensionAttribute101…….project.group0…….name1…….accountY0….$..objectGUID1…….
e…3..C."3m,.@.0…./..objectSid1…………………W.N~.RNZ..B$..0…….sAMAccountName1…….accountY0….!..sAMAccountType1…….2684354560…….groupType1…….-21474836460….I..objectCategory1….3.1CN=Group,CN=Schema,
CN=Configuration,DC=company,DC=be0….V..dSCorePropagationData1….9..20050218134851.0Z..20050218134818.0Z..16010101000417.0Z0……..d……1CN=accountW,OU=Groups,OU=User.Accounts,DC=company,DC=be0…..0…….
objectClass1…….top..group0…….cn1…….glcos0….7..description1….$."Activity.account:.Johan.SurenameW0….F..member1….8.6CN=accountV,OU=Non-Persona
org.alfresco.repo.importer.ExportSourceImporterException: Failed to import
04-13-2006 07:37 AM
04-13-2006 11:55 AM
04-21-2006 04:34 AM
<property name="groupQuery">
<value>(objectclass=group)</value>
</property>
<property name="groupQuery">
<value>(&(objectclass=group) (member=*))</value>
</property>
04-21-2006 04:34 AM
<property name="groupQuery">
<value>(objectclass=group)</value>
</property>
<property name="groupQuery">
<value>(&(objectclass=group) (member=*))</value>
</property>
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.