Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Friday, June 28, 2024 
 
slxdeveloper.com Community Forums  
   
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
 Web Forums - SalesLogix Web Client (Pre-7.2)
Forum to discuss using & developing the legacy SalesLogix Web Client (For versions 7.0 and earlier). View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix Web Client (Pre-7.2) | New ThreadView:  Search:  
 Author  Thread: Password reset with slx client
Snow Monkey
Posts: 214
 
Password reset with slx clientYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 04 Dec 06 1:41 PM
fiogf49gjkf0d
Any ideas on how to automatically do a "reset a password" in a customer Portal?

Also can we allow customers to change their own password...?

In the past, we used slxrwel.dll to do these things in slx client.Can we do something similar in customer portal too?
[Reply][Quote]
Nick Hollis
Posts: 549
Top 10 forum poster: 549 posts
 
Re: Password reset with slx clientYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 05 Dec 06 3:37 AM
fiogf49gjkf0d
Im not sure if its the same in the customer portal, but the resetting of a password in the web client would require an admin?command=shutdown, which I believe cant be automated. So this would be something to consider. You could allow them to change it but then after you can shutdown or iisreset later and let them know when its active...

I dont use customer portal but im assuming its the same slxweb dll.....

Thanks
Nick
[Reply][Quote]
Raul A. Chavez
Posts: 1300
Top 10 forum poster: 1300 posts
 
Re: Password reset with slx clientYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 05 Dec 06 8:40 AM
fiogf49gjkf0d
As far as using the SLXRWEL.dll to achieve the password task, yes you can do it. Just need to make sure its installed on the server where you will code against it.

Now, as far as having that change readily available, it might be that it isn't available right away.

I am not sure if it will work, but as an alternative to the shutdown command, I typically opened a connection to the server (using the SLX OLEDB provider) and executed a refresh. Again, not sure it this will help avoid the shutdown command.

Worst case scenario, make it so that the user will receive the new password in an email. Do not send the Emails until a given time at which the servers get restarted.
[Reply][Quote]
Snow Monkey
Posts: 214
 
Re: Password reset with slx clientYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 05 Dec 06 8:50 AM
fiogf49gjkf0d
Nopes.It is not the same.Unlike the Web Client we can infact change the password on the fly and get it activated in the cust portal.Just i was not sure how to decrypt the Web Password once it is stored in the contact.webpassword db field.

and Yes, this is the same slxweb dll..

Thanks anyway!
[Reply][Quote]
Snow Monkey
Posts: 214
 
Re: Password reset with slx clientYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 05 Dec 06 9:01 AM
fiogf49gjkf0d
There are 4 methods listed with that SLXRWEOBJ class.If i want to use it to override passwords then shouldnt there be userid or a contactid field whose password i am resetting?Also nothing is documented about these;so i dont want to build a functionality based on this.What happens if sage decides to remove this functionality in a upcoming release.
[Reply][Quote]
Raul A. Chavez
Posts: 1300
Top 10 forum poster: 1300 posts
 
Re: Password reset with slx clientYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 05 Dec 06 9:22 AM
fiogf49gjkf0d
I agree with you as far as this being an undocumented feature. There is no telling if it will still be supported on upcoming versions.

Now, as far as resetting the PWD, the SLXRWEOBJ Class doesn't interact with the DB, it just encrypts and decyphers values for you. If you want to actually changing the PWD you would have to store the new value on the appropriate DB field yourself.

[Reply][Quote]
Snow Monkey
Posts: 214
 
Re: Password reset with slx clientYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 05 Dec 06 10:08 AM
fiogf49gjkf0d
Thanks Raul!

This is one place where i call my BP.They supposidly know about everything in slx.So better to ask them first before doing something which can get deprectaed in a future verison
[Reply][Quote]
Jeff Ballard
Posts: 326
 
Re: Password reset with slx clientYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 05 Dec 06 11:04 AM
fiogf49gjkf0d
In 6.2.3, there is a "SetUserPassword" API that has two parameters, UserID and Password. If you customize the customer portal to include a password change page that submits to a web action, you can have them change their own password. This is assuming that the web portal password is encrypted using the same algorithm as a user password (presumably that's what the SetUserPassword is for). I'd give that a shot.

The documentation states that a shutdown or flush is not required.

I don't think this will help it automatically get changed, but it might give you something to work with.

Jeff
[Reply][Quote]
Snow Monkey
Posts: 214
 
Re: Password reset with slx clientYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 12 Dec 06 3:05 PM
fiogf49gjkf0d
Jeff , initially i thought that is going to work but then later on ..

how will this APi know that we are trying to reset the password for a slx user or customer portal user?

Even if it works the same way , both these passwords are getting written to 2 different places in the db.So i wonder how this is going to work on the customer Portal site....
[Reply][Quote]
Jeff Ballard
Posts: 326
 
Re: Password reset with slx clientYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 12 Dec 06 4:19 PM
fiogf49gjkf0d
Nandu,

I guess I didn't think that through - it would look for a User ID and not a customer portal ID.

I looked, though, at the action "csrwebloginadm", and there is code there that encrypts the password which is then updated . It looks as if there's an undocumented API (it's not in the global action) called "EncryptPassword". The code below is from line 76-78 of the csrwebloginadm action.

if passwd <> DoSQL("select webpassword from contact where contactid = '" & RequestGetValue("conid") & "'", "0", "") then
passwd = EncryptPassword(passwd, True)
end if

All you'd have to do is make a page visible in your customer portal and do something with similar logic. If you want to do that, just make sure that you do all sorts of server side checking to make sure someone can only change their password, etc. But you now have an API (assuming its not hard-coded to run in that action only) that you can use to encrypt the customer portal password.

Jeff
[Reply][Quote]
Jeff Ballard
Posts: 326
 
Re: Password reset with slx clientYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 12 Dec 06 4:48 PM
fiogf49gjkf0d
In an eval database, I ran the "EncryptPassword" in the action "updatecontact" and with a password of "hello", and it encrypts the password as "142BC47289AC". So, it should run in any action.

Also, I did a search of all web actions using query analyzer, and there are two that use EncryptPassword, but neither has that function defined (I thought it might be a wrapper to the slxrwel.dll using a CreateObject statement), so it's an undocumented API. So, using it means it'll be unsupported. But it will probably work for now.

Jeff
[Reply][Quote]
 Page 1 of 1 
  You can subscribe to receive a daily forum digest in your user profile. View the site code of conduct for posting guidelines.

   Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2024 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 6/28/2024 5:18:08 PM