Share ideas, ask questions, and get feedback about developing for ProcessMaker

Moderator: amosbatto

Forum rules: Please post new questions under "Developing processes & programming" for ProcessMaker 2 or 3.
By seekianshim
#16903
Hi Sir/Madam,

I'm using ProcessMaker Community version and LDAP feature there.
I'm quite happy with the LDAP feature, just wonder is it possible I'm able to code and made the LDAP auto sync with ProcessMaker Database?

I'm understood about ProcessMaker Enterprise version already got this feature up, I'm looking to have another alternative solution if possible.

Thanks,
Shim
By amosbatto
#17047
There is no easy way to do this. What you can do is write a script which uses PHP's ldap library to query your LDAP source and then directly query your PM database to see if the users have changed. If they have changed, then use the PM WSDL Web Services to add the user. Set the script to run as a cron job in Linux/UNIX or a Scheduled Task in Windows.
By amosbatto
#814335
The Enterprise Edition of ProcessMaker offers Advanced LDAP which can do auto-sync and import groups and departments.

If you want to develop it yourself for the Community Edition, see:
https://www.sitepoint.com/essentials-ldap-php/
http://wiki.processmaker.com/3.0/Proces ... User.28.29
http://wiki.processmaker.com/3.0/Proces ... List.28.29
By amosbatto
#814580
Glad to hear that you got it working. If you want to share your code with others, email it to me at [email protected] and I will post it at:
https://sourceforge.net/p/pmcommunity/c ... ster/tree/

(We are going to create a new community wiki for PM, but for now we are storing code examples there to be included in the wiki.)

I have been testing regarding this trigger, it[…]

Approval from grid

Hi Amos, Your script works well, now I left with […]

Please file a bug report about it a http://bugs.pr[…]

Add Days to date

Oh sorry, I see that the PHP code I gave you doesn[…]