Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ASORGS (AS0020) decrypt password?

Status
Not open for further replies.

danielz13

Programmer
May 5, 2010
3
CA
Hi, I'm trying to create an ODBC connection to the company db and I was wondering if anyone can tell me how to decrypt the Signon Password in the view AS0020?

Also, in the case of multiple company databases, how can I tell which is the active company?

thanks,

Daniel
 
You cannot decrypt the password.
AccpacSession.CompanyID gives you the current company.
 
You can use view CS0120 if you are working with 5.5 or 5.6. That will let you run SQL directly against the database that the view is logged into.
 
I'm astounded we've never seen that before. Must be a rogue DPP person out there, the official line has always been it couldn't be done.
 
FWIW, I just tested that code, it doesn't work on my 5.6 version files. Perhaps that hole has been plugged.
 
Interesting, but that's the users' passwords from users.ism and not the SQL db password from orgs.ism
Besides, I don't get past error 23 on isamOpen.
 
Good point.

If your file string "xxxxx\SITE\BROWSE", not BROWSE.ISM, you'll get past error 23, the function assumes the ISM extension (just like the Accpac Plus functions did, OMG, I just had a Plus flashback!). It reads the names alright, but the "decrypted" passwords are garbage.
 
I checked the SDK docs and saw that the .ism extension is added, my problem was that I used a mapped drive. Once I used the natural path it was happy, and as you say the passwords are returned garbled. This might have worked on the older versions where passwords were what... 8 characters upper case only?
 
But it's of no use in version 5.4 and higher, the passwords are encrypted in the newer versions and the macro cannot decrypt it. There is actually an easier why to get the user passwords in the older versions, but the point is moot.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top