Page 1 of 1

How To code in LDAP auto sync

Posted: Tue Nov 29, 2011 4:00 am
by seekianshim
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

Re: How To code in LDAP auto sync

Posted: Thu Dec 01, 2011 5:42 pm
by amosbatto
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.

Re: How To code in LDAP auto sync

Posted: Mon May 07, 2018 12:26 am
by njhajhajha
Is there any example for these scripts to directly query PM database as u mentioned in your Post.

thank you

Re: How To code in LDAP auto sync

Posted: Mon May 07, 2018 10:12 am
by amosbatto
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

Re: How To code in LDAP auto sync

Posted: Tue May 08, 2018 12:07 am
by njhajhajha
Thanks for the information!!

Re: How To code in LDAP auto sync

Posted: Tue May 29, 2018 12:10 am
by njhajhajha
Success fully coded !! :)

Re: How To code in LDAP auto sync

Posted: Tue May 29, 2018 7:48 pm
by amosbatto
Glad to hear that you got it working. If you want to share your code with others, email it to me at amos@processmaker.com 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.)

Re: How To code in LDAP auto sync

Posted: Fri Jul 24, 2020 1:00 pm
by shereensoliman
can you please share your code

Re: How To code in LDAP auto sync

Posted: Sat Aug 29, 2020 4:00 am
by zenmonas
With such solutions, you should pay special attention to the authorization method and security parameters, because the LDAP Protocol can have different functionality.