Daily Log for #alfresco IRC Channel

Alfresco discussion and collaboration. Stick around a few hours after asking a question.

Official support for Enterprise subscribers: support.alfresco.com.

Joining the Channel:

Join in the conversation by getting an IRC client and connecting to #alfresco at Freenode. Our you can use the IRC web chat.

More information about the channel is in the wiki.

Getting Help

More help is available in this list of resources.

Daily Log for #alfresco

2018-10-01 06:18:38 GMT <twen> plop

2018-10-01 09:58:38 GMT <alfresco-discord> <kore> Hi all ,I need help for user mapping with designation, department and locations wise in alfresco.

2018-10-01 10:12:26 GMT <kkore> Hi all ,I need help for user mapping with designation, department and locations wise in alfresco.

2018-10-01 10:12:51 GMT <kkore> how can we do in alfresco

2018-10-01 10:30:37 GMT <AFaust> kkore: It depends on what you mean by "mapping", i.e. simple LDAP/AD => Alfresco property mapping (you need to modify properties configuration and potentially Spring bean config for that), or a "functional" mapping inside Alfresco / APS, i.e. to automate process escalation to superiors et al

2018-10-01 10:34:35 GMT <kkore> AFaust: Mapping in the scene to like adding user1 to dept1 for location London having designation Developer. Can we map location and designation through LDAP ??

2018-10-01 10:37:13 GMT <AFaust> Well... I believe that is what groups in LDAP would be for, and since groups are already synchronized you would synchronize any such assignments...

2018-10-01 10:37:23 GMT <angelborroy> +1

2018-10-01 10:37:34 GMT <angelborroy> I was thinking exactlye the same

2018-10-01 10:38:20 GMT <AFaust> Of course you can have additional attributes to map to Alfresco properties for the purpose of FTS querying of users, and for that (as I said) you'd simply need to adapt the LDAP properties / Spring configuration

2018-10-01 10:41:00 GMT <AFaust> If you look at how the default properties are mapped (https://github.com/Alfresco/alfresco-repository/blob/master/src/main/resources/alfresco/subsystems/Authentication/common-ldap-context.xml#L444) you should be able to simply add a custom Spring config in the config folder for your LDAP subsystem instance that overrides / enhances the mappings

2018-10-01 10:41:01 GMT <alfbot> Title:alfresco-repository/common-ldap-context.xml at master · Alfresco/alfresco-repository · GitHub (at github.com)

2018-10-01 10:41:21 GMT <AFaust> Of course you should only enhance if there isn't already a default mapping

2018-10-01 10:41:50 GMT <AFaust> i.e. for department / company you could already use cm:organizationId, i.e. ldap.synchronization.userOrganizationalIdAttributeName

2018-10-01 10:42:08 GMT <AFaust> or cm:organization instead of cm:organizationId

2018-10-01 10:43:09 GMT <fwu2018> hello all

2018-10-01 10:44:57 GMT <kkore> then I need to add designation and location params in LDAP and alfresco side then all this params go to be synced

2018-10-01 10:47:08 GMT <kkore> AFaust: After adding this params and synchronized with alfresco. If I want to get the locations,department in dropdown in workflow can I get those values ?

2018-10-01 10:48:02 GMT <fwu2018> ppl, can someone tell me how I can get an email from a mailbox using Alfresco? Is there any addon for this? I know I may configure IMAP or inbound emails, but these will need to open a port on my machine. I wouls like to avoid that.

2018-10-01 10:48:45 GMT <AFaust> kkore: Of course, if you write code to access these node properties on a person node, you can access them and use them to fill your custom dropdown boxes...

2018-10-01 10:57:33 GMT <kkore> AFaust: Thq so much. Till now we tried to get the department,locations directly from database but this is not sync with user .So finally Ldap is the one way to do. Thq once again.

2018-10-01 11:23:29 GMT <angelborroy> Someone would join?

2018-10-01 11:23:30 GMT <angelborroy> https://community.alfresco.com/docs/DOC-7962-projects-and-teams-global-virtual-hack-a-thon-2018#jive_content_id_Use_the_extension_mechanism_of_ACA_to_include_AOS_again

2018-10-01 11:23:34 GMT <alfbot> Title:Projects and Teams Global Virtual Hack-a-thon 2018 | Alfresco Community (at community.alfresco.com)

2018-10-01 12:21:08 GMT <alfresco-discord> <douglascrp> fwu2018: I used this one https://github.com/imapsync/imapsync

2018-10-01 12:21:09 GMT <alfbot> Title:GitHub - imapsync/imapsync (at github.com)

2018-10-01 12:21:39 GMT <alfresco-discord> <douglascrp> running in the alfresco server, so, no need to open more ports to the external world

2018-10-01 12:47:53 GMT <alfresco-discord> <kgastaldo> @prignony I can reactivate your account.

2018-10-01 12:48:58 GMT <alfresco-discord> <kgastaldo> @prignony Account reactivated. Let me know if you have any trouble logging in!

2018-10-01 12:59:48 GMT *** DragiBus_ is now known as DragiBus

2018-10-01 14:07:04 GMT <kkore> AFaust: My manager is saying client don't want to use the LDAP, now again I struck with this how to add user with department,location,designations.

2018-10-01 14:07:48 GMT <angelborroy> And what is saying your client?

2018-10-01 14:07:56 GMT <angelborroy> I don’t mind what a manager says

2018-10-01 14:08:28 GMT <angelborroy> Probably it should be better to understand why the client wants to store department, location and designations inside Alfresco

2018-10-01 14:08:53 GMT <angelborroy> I bet the client is using this exactly information in (at least) 10 additional systems to Alfresco

2018-10-01 14:09:03 GMT <angelborroy> Why replicate it in every single system?

2018-10-01 14:09:09 GMT <angelborroy> It looks weird

2018-10-01 14:10:49 GMT <kkore> angelborroy: Client said we are not using LDAP.

2018-10-01 14:11:12 GMT <angelborroy> So probably is the right time to start using it

2018-10-01 14:11:32 GMT <kkore> Ya ... your right

2018-10-01 14:11:52 GMT <angelborroy> Probably Axel told you about this

2018-10-01 14:11:53 GMT <angelborroy> https://ecmarchitect.com/archives/2012/02/27/1555

2018-10-01 14:11:55 GMT <alfbot> Title:Tip: Adding your own properties to a person object in Alfresco 3.4 | ECM Architect (at ecmarchitect.com)

2018-10-01 14:11:59 GMT <angelborroy> But it makes no sense to me

2018-10-01 14:17:01 GMT <kkore> angelborroy: I am saying my manager try to convey them use of LDAP and it's benefits. Don't know what happens

2018-10-01 14:17:38 GMT <kkore> that's why trying for other solutions

2018-10-01 14:23:42 GMT <fwu2018> thank you duglascrp. However, I still need to configure/open imap port on Alfresco right?

2018-10-01 14:23:58 GMT <alfresco-discord> <douglascrp> yes, of course

2018-10-01 14:24:06 GMT <alfresco-discord> <douglascrp> but there is no need to expose it

2018-10-01 14:24:10 GMT <alfresco-discord> <douglascrp> only local

2018-10-01 14:24:40 GMT <fwu2018> but im talking about a public Alfresco install

2018-10-01 14:24:59 GMT <fwu2018> so the port will be available to everyone

2018-10-01 14:25:28 GMT <fwu2018> I was trying to find something that connects to a mail box and then copy the emails to alfresco, maybe using rest api or somethign like that

2018-10-01 14:51:37 GMT <alfresco-discord> <prignony> fwu2018, you could use an email to pdf client, then export the pdf to a folder accessible to cmis-sync connected to your alfresco (via cmis)

2018-10-01 14:56:23 GMT <alfresco-discord> <hi-ko> @fwu2018: @douglascrp means there is no need to expose the imap port to the public. make shure it's available on localhost only so your scripts can feed the mails to alfresco's imap port. BTW we extended the IMAP implementation to store mails as eml / RFC mails (not as text files with detached documents)

2018-10-01 15:01:45 GMT <hi-ko> kkore: Alfresco is not an all in one application - it's an DMS. It's always good design to manage Users and groups independant from an application. I regreted every time when we agreed to store organisational context in Alfresco.

2018-10-01 15:04:18 GMT <fwu2018> prignony, I would rather save it as eml. Nevertheless is there an addon to accomplish that?

2018-10-01 15:05:34 GMT <fwu2018> hi-ko but "my scripts" would be what? Some that can reach an imap server inside Alfresco, or outside of it?

2018-10-01 15:06:24 GMT <fwu2018> the idea would be to use the imap connection of Alfresco to add the emails I got, instead of using the rest API, is that right?

2018-10-01 15:11:24 GMT <alfresco-discord> <hi-ko> Of course you can script your own using bash and rest API. I did this before we implemented our own mail module.

2018-10-01 15:15:32 GMT <hi-ko> fwu2018: it depends on your requirements. scripting was not stable enough so we today prefer the smtp way having alfresco behind an secure smptp like exim covering spam, virus scan etc. relaying e.g. subdomain dms.mycompany.com.

2018-10-01 15:22:18 GMT <alfresco-discord> <prignony> @fwu2018 pdf or eml, it doesn't matter, you just have to find a client that read your email and extract them to a local folder, then cmis-sync will just move to Alfresco. Add a script on the receiving folder and move the mail where you need 😃

2018-10-01 15:22:21 GMT <hi-ko> fwu2018: "scripts" could be a bash script using fetchmail/procmail for fetching the mails from a remote imap server

2018-10-01 15:23:41 GMT <alfresco-discord> <prignony> I like hi-ko's solution, alfreso is doing the jod without having incoming port open 👍

2018-10-01 15:27:32 GMT <hi-ko> prignony: which one you mean? smtp or scripting?

2018-10-01 15:35:11 GMT <fwu2018> hi-ko, what you mean about "scripting was not stable enough"?

2018-10-01 15:40:28 GMT <hi-ko> fwu2018: using imap you have only the read flag you could toggle

2018-10-01 15:41:52 GMT <hi-ko> there are lot's of traps why you couldn't save a mail into Alfresco - especially if you try to automatically file and process these mails

2018-10-01 15:43:48 GMT <hi-ko> smtp has the benefit that the sending server will retry if you return an error. you may fix errors and the whole syste will take care that nothing will be lost.

2018-10-01 15:45:39 GMT <hi-ko> fwu2018: I will put all these alternatives on a blog post ...

2018-10-01 15:59:35 GMT <fwu2018> hi-ko please let me know when ready

2018-10-01 17:50:55 GMT <alfresco-discord> <Erik.whipp> Hi, where is the recommended place to put images in the alfresco SDK project. In my freemarker template I am using ${url.context}/res/components/form/images/image.png -- where would this be in the context of an Alfresco share 5.2 project?? I thought it would be /alfresco/res/components/form/images/image.png .. I'm probably not understanding what ${url.context} does in the share jar. Any help is

2018-10-01 17:50:55 GMT <alfresco-discord> appreciated.

2018-10-01 22:37:31 GMT <alfresco-discord> <Erik.whipp> Does ldap.synchronization.differential account for the creation of users?

2018-10-01 23:04:06 GMT <AFaust> @Erik.whipp: Yes, it does, as long as your LDAP / AD properly sets the modification timestamp on created users

2018-10-01 23:04:21 GMT <alfresco-discord> <Erik.whipp> Okay, thanks AFaust.

End of Daily Log

The other logs are at http://esplins.org/hash_alfresco