Replacing nusoap and curl using NTLM auth for sugar 12.0.3

Hi,

We are upgrading a customer from 11.x to sugar 13, but in 12.0.3 Nusoap has been removed. The customer is also using NTLM authentication for their soap connection. I am having troubles finding documentation covering this scenario. I have found that we should replace Nusoap with the sugarcrm \SoapClient, but no clear documentation found how to implement this soapclient and wether it is possible to get NTLM authentication to work.

Besides NuSoap, the customer also uses curl with NTLM authentication, which should also be replaced I asume. 

Any tips where to start?

Regards,

Stijn

Parents
  • Hi ,

    Yes, we did remove Nusoap and advise everyone against using it. I'm assuming your NTLM auth is a custom code you need to rewrite for 13.0 is that correct? I would advise you to look into our native LDAP integration, if you are in SugarCloud, we have a few more options with SugarIdentity. If you need really need to rewrite your code, you could look into PHP's native SoapClient (I don't believe we have a Sugarcrm\SoapClient we support at this point).

    You can create a client like:

    For cURL, you have to replace it with ExternalResourceClient.

    SugarCRM | Principal Developer Advocate

  • Hi Rafael Fernandes,

    Thank you for your reply!

    "I'm assuming your NTLM auth is a custom code you need to rewrite for 13.0 is that correct"

    - That is correct. Changes in Sugar are syncing data to other backed systems.

    "I would advise you to look into our native LDAP integration"

    - It is an on-premise environment, I will discus this option with the system administrator. Would it also be possible to use this LDAP integration in our code to connect to their backend?

    "you could look into PHP's native SoapClient"

    - All the sample code I could find on implementing NTLM in PHP relies on cURL. Which is discouraged. Or am I missing something?

    "For cURL, you have to replace it with ExternalResourceClient.".

    - The ExternalResourceClient does not support NTLM, or am I missing something?

    Regards,

    Stijn

Reply
  • Hi Rafael Fernandes,

    Thank you for your reply!

    "I'm assuming your NTLM auth is a custom code you need to rewrite for 13.0 is that correct"

    - That is correct. Changes in Sugar are syncing data to other backed systems.

    "I would advise you to look into our native LDAP integration"

    - It is an on-premise environment, I will discus this option with the system administrator. Would it also be possible to use this LDAP integration in our code to connect to their backend?

    "you could look into PHP's native SoapClient"

    - All the sample code I could find on implementing NTLM in PHP relies on cURL. Which is discouraged. Or am I missing something?

    "For cURL, you have to replace it with ExternalResourceClient.".

    - The ExternalResourceClient does not support NTLM, or am I missing something?

    Regards,

    Stijn

Children
No Data