<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://sugarclub.sugarcrm.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Where is sugarCRM hashing the password from the login form?</title><link>https://sugarclub.sugarcrm.com/dev-club/f/questions-answers/5413/where-is-sugarcrm-hashing-the-password-from-the-login-form</link><description>Hello. I am developing an API that pushes Users into the system from another product of my company. All is fine except I can not log in with the new User. This how the user is inserted into the CRM $user_bean-&amp;gt;user_name=$user_name; $user_bean-&amp;gt;first_name</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Where is sugarCRM hashing the password from the login form?</title><link>https://sugarclub.sugarcrm.com/thread/25838?ContentTypeID=1</link><pubDate>Mon, 14 Feb 2022 15:03:12 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:f1d81633-6a44-4bae-8ab9-052e9d2bbeb0</guid><dc:creator>Nagy Zoltan</dc:creator><description>&lt;p&gt;Not a workable solution. Basically our identity server does not support SAML (yet) so this is a way to mimic single sign on. The user is created in our main product, called workspace, with a password and all and we want to move it into sugarCRM with the same credentials. This has worked on 77 and 79 sugar version, but we want to use rest instead of SOAP (the original code was using SOAP). Sugar changed the way it hashes from 79 to 10.0.4, so we have to adapt the hashing method on workspace. Hence my question&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Where is sugarCRM hashing the password from the login form?</title><link>https://sugarclub.sugarcrm.com/thread/25837?ContentTypeID=1</link><pubDate>Mon, 14 Feb 2022 14:46:27 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:42c4fa2a-7b11-424e-bb88-30675805fae6</guid><dc:creator>Harald Kuske</dc:creator><description>&lt;p&gt;With the REST API you can create users with parameter settings like:&lt;/p&gt;
&lt;p&gt;$url = $base_url . &amp;quot;/Users&amp;quot;;&lt;br /&gt;$user_parameter = array(&lt;br /&gt; &amp;quot;user_name&amp;quot; =&amp;gt; &amp;quot;user6&amp;quot;,&lt;br /&gt; &amp;quot;user_hash&amp;quot; =&amp;gt; &amp;#39;sillypassword&amp;#39;,&lt;br /&gt; &amp;quot;system_generated_password&amp;quot; =&amp;gt; false,&lt;br /&gt; &amp;quot;pwd_last_changed&amp;quot; =&amp;gt; &amp;quot;&amp;quot;,&lt;br /&gt; &amp;quot;authenticate_id&amp;quot; =&amp;gt; &amp;quot;&amp;quot;,&lt;br /&gt; &amp;quot;sugar_login&amp;quot; =&amp;gt; true,&lt;br /&gt; &amp;quot;picture&amp;quot; =&amp;gt; &amp;quot;&amp;quot;,&lt;br /&gt; &amp;quot;first_name&amp;quot; =&amp;gt; &amp;quot;test6&amp;quot;,&lt;br /&gt; &amp;quot;last_name&amp;quot; =&amp;gt; &amp;quot;test6&amp;quot;,&lt;/p&gt;
&lt;p&gt;The created user user6 has the password &amp;#39;sillypassword&amp;#39; after the POST call. I just tested that in a 11.2 instance.&lt;/p&gt;
&lt;p&gt;But from a security point of view I would never set a default password or a list of provided passwords.&lt;/p&gt;
&lt;p&gt;Just provide a valid email address for each user and enable the lost password function. So each user can keep his password secret.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Where is sugarCRM hashing the password from the login form?</title><link>https://sugarclub.sugarcrm.com/thread/25784?ContentTypeID=1</link><pubDate>Mon, 07 Feb 2022 13:50:08 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:ef51e2be-a4f7-40a6-8ae7-fee216cf294f</guid><dc:creator>Thomas Rychlik</dc:creator><description>&lt;p&gt;check SugarCRM Folder then, /modules/Users/User.php&lt;br /&gt;&lt;br /&gt;Here you can search for password or hash.&lt;br /&gt;&lt;br /&gt;Hash Library is included at top: use \Sugarcrm\Sugarcrm\Security\Password\Hash&lt;br /&gt;&lt;br /&gt;You can search for &amp;quot;public function rehashPassword($password)&amp;quot;.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>