AnsweredAssumed Answered

Custom user (cm:person) properties and LDAP import

Question asked by shmoula on Aug 19, 2009
Latest reply on Jan 21, 2010 by prateekgoyal
  I would like to add custom properties to user model and then do import from LDAP, is this possible?

I have following model:

<type name="usrVcf:user">
        <property name="usrVcf:user_uid">

which is registered ok:

12:13:42,117 INFO  [org.alfresco.repo.dictionary.DictionaryDAO] Loading model from alfresco/extension/usrVcfModel.xml
12:13:42,119 INFO  [org.alfresco.repo.dictionary.DictionaryDAO] Registered model usrVcf:usermodel
12:13:42,119 INFO  [org.alfresco.repo.dictionary.DictionaryDAO] Registered namespace '' (prefix 'usrVcf')

and I have (example) attribute mapped in ldap-synchronization-context.xml like this:

<entry key="usrVcf:user_uid">

after all this an "Cannot find in Repository dictionary" exception occurs :-(

12:36:00,440 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.simpl.SimpleThreadPool$
Caused by: org.alfresco.repo.importer.ExportSourceImporterException: Failed to import
        at org.alfresco.repo.importer.ExportSourceImporter.doImport(
        at org.alfresco.repo.importer.ImporterJob.execute(
        … 1 more
Caused by: org.alfresco.service.cmr.view.ImporterException: Failed to import package at line 11; column 24 due to error: Definition {}user_uid is not valid; cannot find in Repository dictionary
        at org.alfresco.repo.importer.view.ViewParser.parse(
        at org.alfresco.repo.importer.ImporterComponent.parserImport(
        at org.alfresco.repo.importer.ImporterComponent.importView(
        at org.alfresco.repo.importer.ExportSourceImporter.doImport(
        … 3 more
Caused by: org.alfresco.service.cmr.view.ImporterException: Definition {}user_uid is not valid; cannot find in Repository dictionary
        at org.alfresco.repo.importer.view.ViewParser.processStartElement(
        at org.alfresco.repo.importer.view.ViewParser.parse(
        … 6 more

Why is this happening? Is there a way to do this? TIA!