Nico
Nico

Reputation: 1197

WinAPIServer::crypt(Un)ProtectData error on AOS-Cluster

Using the functions WinAPIServer::cryptProtectData() and WinAPServer::cryptUnprotectData() to store passwords in the database worked fine for a while.

Using this technique on an AOS-Cluster doesn't. Code stops execution on WinAPIServer::cryptUnprotectData() without any error-message.

Decrypting only works on the AOS where the Crpyting has been done. Retyping and crypting the password on AOS 2 ( where uncrypting doesn't work at this time ) leads to the fact that AOS 2 can uncrpyt, but AOS 1 not and vice versa. I found some infos regarding problems after changing password of the AOS-User, but the AOS-User is the same on both AOS-instances. So is the password. Are there any further unique IDs or something involved in crypting/uncrypting?

MSDN doesn't give me any helpful information...

Upvotes: 1

Views: 920

Answers (1)

FH-Inway
FH-Inway

Reputation: 5107

You could take a look at how the password for the SMTP server in AX is stored. Also take a look at Why does table SysEmailSMTPPassword save the SMTP password per AOS instance? It seems the encryption depends on a windows registry value, which makes it dependent on the AOS.

Upvotes: 1

Related Questions