07-25-2019 06:13 AM
Hello,
I have successfully integrated Alfresco 6.0 community edition with Openldap-2.4.42 main fields (Name, Surname, E-mail), the users synchronization just perfectly.
1. BUT I don’t know how to Synchronize the Job Title and Localization (User Profile Fields).
2. I would like to extend User Profile default fields, adding the field Departament.
Is this possible on the Alfresco 6.0 Community Edition? How do I do that? If yes, please provide an example.
Thanks in advance.
Kind regards,
Sandro Issufo
07-25-2019 02:12 PM
Hi:
This is the same for old previous versions of Alfresco.
Maybe this link helps (it is in spanish, but surely you can find the relevant info):
http://www.queres.es/sincronizacion-personalizada-de-usuarios-del-ldap-con-alfresco/
Regards.
--C.
07-26-2019 01:56 AM
Hi Cesar,
nice write up. Just would like to add that one should better implement the additional attributes in an aspect of an custom model. The Alfresco's content model shouldn't be touched.
09-26-2019 09:01 AM
I really am sorry, but I've tried to do as told here, but there is some problems, that I couldn't solve:
1. I have NO webapps/alfresco/WEB-INF/classes/alfresco/model/contentModel.xml file in my Alfresco Community 5. installation. The most resembling file situated /opt/alfresco-community/solr4/alfrescoModels/ and named cm.contentmodel.1505615645.xml and in /opt/alfresco-community/alf_data/solr4/model file named cm.contentmodel.2203582560.xml
2. I have NO tomcat/webapps/alfresco/WEB-INF/classes/alfresco/subsystems/Authentication/common-ldap- context.xml file at all.
3. Also I have NO shared /classes/alfresco/extension/subsystems/Authentication/ldap/ldap1/ directory, I authorize and sync with
authentication.chain=alfrescoNtlm1:alfrescoNtlm,ldap-ad1:ldap-ad
directive in /opt/alfresco-community/tomcat/shared/classes/alfresco-global.properties file.
Please, can yo tell me what to do next?
09-26-2019 01:55 PM
The content models are all in the JARs now. For the core content model, look in alfresco-repository-5.2.g.jar in alfresco/model.
Instead of looking in WEB-INF/classes for your LDAP config, look in $TOMCAT_HOME/shared/classes/alfresco/extension/subsystems/Authentication.
What you need to do is define a new aspect in your own content model with the properties you want. Package that up as an AMP and deploy it. That way you don't have to touch any files that are distributed by Alfresco.
The aspect can be added to cmerson objects.
09-26-2019 02:42 PM
alfresco/subsystems/Authentication/common-ldap-context.xml alfresco/subsystems/Authentication/ldap-ad/ldap-ad-authentication.properties
Please also check Documentation Example: authentication and synchronization with two ldap-ad subsystems (the example for one ldap subsystem stores the parameters in alfresco-global for your use case you should store the properties in the subsystem path)
09-30-2020 10:37 AM
Hello,
I've followed your instructions and I have succesfully synchronized my custom ldap properties.
What I am missing is how to avoid to override the original Alfresco's content-model.xml. Infact if I define my aspect and my properties in my model I get errors on Alfresco startup, caused by unknown namespace in common-ldap-context.xml.
The only way I found is use cm: namespace instead of my custom model namespace, but doing so I necessarly override Alfresco Model. Is there something like an import namespace?
Explore our Alfresco products with the links below. Use labels to filter content by product module.