Best way to log in a Sugar User from an in-house application via LDAP

Premise: I don't understand the first thing about how authentication really works.

We have our own in-house ERP application. (https://sugarclub.sugarcrm.com/engage/it-operations/b/share-your-story/posts/ah-the-possibilities)

Our ERP users are a subset of the our Sugar Users.

Our ERP uses LDAP for authentication.

Our sugar instance is set up to use LDAP for authentication.

Our ERP uses the Contacts, Accounts, Addresses etc from Sugar. So the ERP will be using SugarAPIs in the background to retrieve and sometimes upsert records.

We want our user on the in-house application to log into the in-house application AND get a Sugar API token at the same time (authenticating with their LDAP credentials and using a custom platform so they don't get kicked out of their regular Sugar session). And we want to preserve that token for the duration of their ERP session.

Any tips I can pass on to our ERP team on how to achieve this?

thank you,

FrancescaS

Parents
  • Hey Francesca,

    I am no expert either, but I believe that is how Single Sign On is supposed to work?

    Does ERP only read from Sugar or it has to write data back too? If it is read only, consider using a separate account to pull data in. 

    Regards,

    Romney

  • ERP will also update / insert records, so we would like users to log in as themselves for audits to be properly labeled.

Reply Children
  • The simplest solution is to use SSO for both the ERP and Sugar if possible.

    If not, John's approach described below should work. It will involve coding but I know that won't scare you :)