<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: How to compare password in sys_user table ? in ITSM forum</title>
    <link>https://www.servicenow.com/community/itsm-forum/how-to-compare-password-in-sys-user-table/m-p/663415#M235194</link>
    <description>&lt;P&gt;Thank you &amp;nbsp; for the reply, I'll check this and update the result...&lt;/P&gt;&lt;BR /&gt;</description>
    <pubDate>Wed, 19 Nov 2014 09:51:06 GMT</pubDate>
    <dc:creator>vishnu_r</dc:creator>
    <dc:date>2014-11-19T09:51:06Z</dc:date>
    <item>
      <title>How to compare password in sys_user table ?</title>
      <link>https://www.servicenow.com/community/itsm-forum/how-to-compare-password-in-sys-user-table/m-p/663402#M235181</link>
      <description>&lt;P&gt;In my script, i'm query'ing the sys_user table with user_name and user_password. this is my query&lt;/P&gt;&lt;P style="min-height: 8pt; height: 8pt; padding: 0px;"&gt; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;var user_id='username';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;var pass='password@123';&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; height: 8pt; padding: 0px;"&gt; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;var target = new GlideRecord('sys_user'); &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; target.addQuery('user_name', user_id);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &amp;nbsp; &amp;nbsp; target.addQuery('user_password', pass); &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; target.query(); &amp;nbsp; &amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &amp;nbsp; while(target.next()){&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ///code&lt;/P&gt;&lt;P style="min-height: 8pt; height: 8pt; padding: 0px;"&gt; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;the password type in sys_user table is password(1 way encryption). how to decrypt this password? i tried using GlideEncrypter(); , but not getting the correct data.. Any help ?&lt;/P&gt;</description>
      <pubDate>Mon, 17 Nov 2014 09:40:41 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/how-to-compare-password-in-sys-user-table/m-p/663402#M235181</guid>
      <dc:creator>vishnu_r</dc:creator>
      <dc:date>2014-11-17T09:40:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare password in sys_user table ?</title>
      <link>https://www.servicenow.com/community/itsm-forum/how-to-compare-password-in-sys-user-table/m-p/663403#M235182</link>
      <description>&lt;P&gt;Hi Vishnu,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;I'm certain your query will not work.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Once a password is entered into a '&lt;SPAN style="color: #333333; font-family: Omnes-pro, Arial, Verdana, sans-serif; font-size: 14px;"&gt;Password (1 Way Encrypted)'&lt;/SPAN&gt; field it is encrypted as a secure hash value which cannot be decrypted.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;A href="http://wiki.servicenow.com/index.php?title=Introduction_to_Fields" title="http://wiki.servicenow.com/index.php?title=Introduction_to_Fields"&gt;Introduction to Fields - ServiceNow Wiki&lt;/A&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 17 Nov 2014 11:55:49 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/how-to-compare-password-in-sys-user-table/m-p/663403#M235182</guid>
      <dc:creator>m_ahmedmod</dc:creator>
      <dc:date>2014-11-17T11:55:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare password in sys_user table ?</title>
      <link>https://www.servicenow.com/community/itsm-forum/how-to-compare-password-in-sys-user-table/m-p/663404#M235183</link>
      <description>&lt;P&gt;Dont really think decryption is possible for user_password field .. this might be the reason ...&lt;span class="lia-inline-image-display-wrapper" image-alt="1.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/38432iE30D2532E2905038/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.png" alt="1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 17 Nov 2014 12:14:04 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/how-to-compare-password-in-sys-user-table/m-p/663404#M235183</guid>
      <dc:creator>Kalaiarasan Pus</dc:creator>
      <dc:date>2014-11-17T12:14:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare password in sys_user table ?</title>
      <link>https://www.servicenow.com/community/itsm-forum/how-to-compare-password-in-sys-user-table/m-p/663405#M235184</link>
      <description>&lt;P&gt;Hi kalaiarasan, &amp;nbsp; &amp;nbsp; any other methods like this &lt;A class="loading" href="http://www.servicenowguru.com/system-definition/custom-login-validation-installation-exits/" title="http://www.servicenowguru.com/system-definition/custom-login-validation-installation-exits/"&gt;http://www.servicenowguru.com/system-definition/custom-login-validation-installation-exits/&lt;/A&gt; ??&lt;BR /&gt;Can i use this method in a scripted web service?&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 17 Nov 2014 12:23:43 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/how-to-compare-password-in-sys-user-table/m-p/663405#M235184</guid>
      <dc:creator>vishnu_r</dc:creator>
      <dc:date>2014-11-17T12:23:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare password in sys_user table ?</title>
      <link>https://www.servicenow.com/community/itsm-forum/how-to-compare-password-in-sys-user-table/m-p/663406#M235185</link>
      <description>&lt;P&gt;Can you explain what is the exact requirement and what are you trying to achieve ?&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 17 Nov 2014 12:37:58 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/how-to-compare-password-in-sys-user-table/m-p/663406#M235185</guid>
      <dc:creator>Kalaiarasan Pus</dc:creator>
      <dc:date>2014-11-17T12:37:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare password in sys_user table ?</title>
      <link>https://www.servicenow.com/community/itsm-forum/how-to-compare-password-in-sys-user-table/m-p/663407#M235186</link>
      <description>&lt;P&gt;&lt;SPAN style="color: #666666; font-family: arial, sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;Hi kalaiarasan,&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;SPAN style="color: #666666; font-family: arial, sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;I'm using a scripted webservice for authenticating user credentials. From a flex application i'm calling this webservice by passing username &amp;amp; password as input parameters. I need to authenticate the user credentials and return a response. Hope you got my &lt;SPAN style="color: #666666; font-family: arial, sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;requirement .&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;SPAN style="color: #666666; font-size: 12px; background-color: #f6f6f6; font-family: arial, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;SPAN style="color: #666666; font-family: arial, sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;&lt;SPAN style="color: #666666; font-family: arial, sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 17 Nov 2014 12:44:06 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/how-to-compare-password-in-sys-user-table/m-p/663407#M235186</guid>
      <dc:creator>vishnu_r</dc:creator>
      <dc:date>2014-11-17T12:44:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare password in sys_user table ?</title>
      <link>https://www.servicenow.com/community/itsm-forum/how-to-compare-password-in-sys-user-table/m-p/663408#M235187</link>
      <description>&lt;P&gt;Hi Vishnu,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;You can then set both the username and password as system properties and call these properties while invoking the SOAP call.&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 17 Nov 2014 12:56:10 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/how-to-compare-password-in-sys-user-table/m-p/663408#M235187</guid>
      <dc:creator>Subhajit1</dc:creator>
      <dc:date>2014-11-17T12:56:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare password in sys_user table ?</title>
      <link>https://www.servicenow.com/community/itsm-forum/how-to-compare-password-in-sys-user-table/m-p/663409#M235188</link>
      <description>&lt;P&gt;Haven't done this before .. Will try to setup something on demo ... will let you know ....&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 17 Nov 2014 13:02:33 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/how-to-compare-password-in-sys-user-table/m-p/663409#M235188</guid>
      <dc:creator>Kalaiarasan Pus</dc:creator>
      <dc:date>2014-11-17T13:02:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare password in sys_user table ?</title>
      <link>https://www.servicenow.com/community/itsm-forum/how-to-compare-password-in-sys-user-table/m-p/663410#M235189</link>
      <description>&lt;P&gt;OK thank you &lt;SPAN class="font-color-meta" style="padding: 0 0 5px; font-size: 1.2em; font-family: arial, sans-serif; color: #666666; background-color: #e6e6e6;"&gt;&lt;SPAN class="replyToName" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;Kalaiarasan&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 17 Nov 2014 13:56:30 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/how-to-compare-password-in-sys-user-table/m-p/663410#M235189</guid>
      <dc:creator>vishnu_r</dc:creator>
      <dc:date>2014-11-17T13:56:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare password in sys_user table ?</title>
      <link>https://www.servicenow.com/community/itsm-forum/how-to-compare-password-in-sys-user-table/m-p/663411#M235190</link>
      <description>&lt;P&gt;Thanks for the reply Subhajit, But how can i set parameters as system properties? I'm working with a scripted webservice..&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 17 Nov 2014 14:00:14 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/how-to-compare-password-in-sys-user-table/m-p/663411#M235190</guid>
      <dc:creator>vishnu_r</dc:creator>
      <dc:date>2014-11-17T14:00:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare password in sys_user table ?</title>
      <link>https://www.servicenow.com/community/itsm-forum/how-to-compare-password-in-sys-user-table/m-p/663412#M235191</link>
      <description>&lt;P&gt;You can use gs.getProperty('your property here'); to call your Username and Password values.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 18 Nov 2014 05:16:53 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/how-to-compare-password-in-sys-user-table/m-p/663412#M235191</guid>
      <dc:creator>Subhajit1</dc:creator>
      <dc:date>2014-11-18T05:16:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare password in sys_user table ?</title>
      <link>https://www.servicenow.com/community/itsm-forum/how-to-compare-password-in-sys-user-table/m-p/663413#M235192</link>
      <description>&lt;P&gt;It was difficult to search and find your thread back to reply &amp;nbsp; &lt;SPAN __jive_emoticon_name="grin" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://www.servicenow.com/6.0.3.0/images/emoticons/grin.png"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Not sure if you have found the answer already. if not try below appraoch and see if it works for you ...&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Create a scripted web service from where you will authenticate user.. And make your of the below script .. guess it should fit your case .. let me now if it works for you&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;try&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;{&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; var userName = request.user_name;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; var userPassword = request.user_password;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; var user = GlideUser;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; var authed = user.authenticate(userName,userPassword);&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; if(authed)&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; response.isValid = 'Valid User';&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; else&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; response.isValid = 'Invalid User';&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;}&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;catch(e)&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;{&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; response.isValid = "Error While Authenticating:"+e;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;}&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;STRONG&gt;I was able to do it successfully on demo.. So works atleast on demo&lt;/STRONG&gt; &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://www.servicenow.com/6.0.3.0/images/emoticons/happy.png"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 19 Nov 2014 09:46:38 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/how-to-compare-password-in-sys-user-table/m-p/663413#M235192</guid>
      <dc:creator>Kalaiarasan Pus</dc:creator>
      <dc:date>2014-11-19T09:46:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare password in sys_user table ?</title>
      <link>https://www.servicenow.com/community/itsm-forum/how-to-compare-password-in-sys-user-table/m-p/663414#M235193</link>
      <description>&lt;P&gt;create the input and output parameters for web service as below &lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;STRONG&gt;Input:&lt;/STRONG&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;user_name&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;user_password&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;STRONG&gt;Output:&lt;/STRONG&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;isValid&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 19 Nov 2014 09:49:08 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/how-to-compare-password-in-sys-user-table/m-p/663414#M235193</guid>
      <dc:creator>Kalaiarasan Pus</dc:creator>
      <dc:date>2014-11-19T09:49:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare password in sys_user table ?</title>
      <link>https://www.servicenow.com/community/itsm-forum/how-to-compare-password-in-sys-user-table/m-p/663415#M235194</link>
      <description>&lt;P&gt;Thank you &amp;nbsp; for the reply, I'll check this and update the result...&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 19 Nov 2014 09:51:06 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/how-to-compare-password-in-sys-user-table/m-p/663415#M235194</guid>
      <dc:creator>vishnu_r</dc:creator>
      <dc:date>2014-11-19T09:51:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare password in sys_user table ?</title>
      <link>https://www.servicenow.com/community/itsm-forum/how-to-compare-password-in-sys-user-table/m-p/663416#M235195</link>
      <description>&lt;P&gt;close this once you are done checking &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://www.servicenow.com/6.0.3.0/images/emoticons/happy.png"&gt;&lt;/SPAN&gt; Cheers!&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 19 Nov 2014 10:08:45 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/how-to-compare-password-in-sys-user-table/m-p/663416#M235195</guid>
      <dc:creator>Kalaiarasan Pus</dc:creator>
      <dc:date>2014-11-19T10:08:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare password in sys_user table ?</title>
      <link>https://www.servicenow.com/community/itsm-forum/how-to-compare-password-in-sys-user-table/m-p/663417#M235196</link>
      <description>&lt;P&gt;Hai Kalaiarasan,&lt;BR /&gt;Perfect answer &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://www.servicenow.com/6.0.3.0/images/emoticons/happy.png"&gt;&lt;/SPAN&gt;. Thanks for the support&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;-Vishnu Raj&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 19 Nov 2014 10:08:52 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/how-to-compare-password-in-sys-user-table/m-p/663417#M235196</guid>
      <dc:creator>vishnu_r</dc:creator>
      <dc:date>2014-11-19T10:08:52Z</dc:date>
    </item>
  </channel>
</rss>

