Questions and discussion about developing processes and programming in PHP, JavaScript, web services & REST API.

Moderator: amosbatto

Forum rules: Please search to see if a question has already asked before creating a new topic. Please don't post the same question in multiple forums.
By bcamara
Hello everyone,
I have imported users from a Ldap list and also ... we have 2 Authentication Source : "advanced ldap" and "Global AD".
Now, now we have to switch their Authentication Source to "Global AD".

2 days i'm reading the forum and the web to find a script to do that, avoiding to update 200 users manually ... does anyone can help me ?
User avatar
By amosbatto
I don't have an Active Directory installation to check the values, but you have to change the values of the RBAC_USERS.USR_AUTH_TYPE and RBAC_USERS.UID_AUTH_SOURCE fields in the database.

Look in the database at the records of a user imported with Advanced LDAP and another user imported with Global AD and you can figure out which values to change. Then, you can go into the database and change the values with something like this:
Code: Select all
mysql -u root -p
mysql> use wf_workflow;
mysql> exit;
User avatar
By amosbatto
iekong wrote:i wish to integrate Azure SSO for all users. however, do not know the best approach to achieve that.
There is no easy way to do it. You can add code to the verifyLogin() function defined in rbac/engine/classes/model/RbacUsers.php to connect to Azure SS0 and verify the login.

Some people write scripts that run every night to export the users and import them into processmaker. Here is an example script to do the importation: ... t_of_Users
User avatar
By amosbatto
If you want to write PHP code to verify the login in Azure, see: ... oauth-code

The PHP code to login using oauth2 in Azure should be very similar to this code to login to ProcessMaker using oauth2: ... cess_token ... _Endpoints

Primero, tus comillas estan mal y olvidaste termin[…]

First of all, you are using JavaScript, not Java. […]

Stop submit from javacript

Do it this way: form = $("#637207031573dcea[…]

I can't find the database table where this informa[…]