Above the exception is when connecting to my, very strange, because DB2 USES for such a long time have never seen this problem, the single from the perspective of the exception message is obviously validation fails, the DB2 connect to a user name and password problem, the problem is why such a problem, when the user name and password are correct.
Study found that after is the system differences, the password can’t be in clear text mode is stored in the system, are saved after through the corresponding encryption algorithm, DB2 USES a SHA256 encryption, and a lot of high version of the Linux the default encryption algorithm is the SHA512, such system to create DB2 user password by SHA512 stored in the system, the connection to DB2 by SHA256 password passwords in encrypted and stored in the system, the result is, of course, failure, the solution is as follows:
Open the /etc/pam.d/system-auth file, find the second line of passwd configuration, change sha512 to Sha256, and save;
Rerun the passwd DB2 user and set the password;
Success;
This will replace the system encryption method with SHA256 and then update the saved password.
Study found that after is the system differences, the password can’t be in clear text mode is stored in the system, are saved after through the corresponding encryption algorithm, DB2 USES a SHA256 encryption, and a lot of high version of the Linux the default encryption algorithm is the SHA512, such system to create DB2 user password by SHA512 stored in the system, the connection to DB2 by SHA256 password passwords in encrypted and stored in the system, the result is, of course, failure, the solution is as follows:
Open the /etc/pam.d/system-auth file, find the second line of passwd configuration, change sha512 to Sha256, and save;
Rerun the passwd DB2 user and set the password;
Success;
This will replace the system encryption method with SHA256 and then update the saved password.
Read More:
- [solved] sql30082n security processing failed with reason “24” (“user name and / or password invalid”)
- The most complete solution for service network restart failure under CENTOS 7
- MySQL local connection Error 1130_ The solution of MySQL 1130 error report when remote connection through Navicat for MySQL
- <info> peer_manager_handler: Connection security failed
- Solution to the problem of failure to elect leaders when offline service is reported in Nacos
- VMware Workstation failed to start VMware Authorization Service
- solve!! VMware Workstation failed to start the VMware authorization service
- Feignexception $unauthorized is reported by introducing security call service
- Install / Remove of the Service denied! Error occurred when installing MySQL service
- After introducing security, the service cannot be registered with Eureka
- IBM MQ Reason 2538(MQRC_ HOST_ NOT_ An example of error reason
- 【MongoDB】 Failed to connect to 127.0.0.1:27017, reason: Connection refused
- [go] solve the fatal error of go: concurrent map writes map non concurrent security
- Error in installing RVM on MacOS raw.githubusercontent.com:443 Connection failure resolution
- Error: Failure while executing; `git config –local –replace-all homebrew.analyticsmessage true
- An authentication error occurred in the remote desktop connection
- Error 711: Cannot load Remote Access Service Connection Manager.
- Chrome your connection is not a private connection solution
- Error:Connection activation Failed: no suitable device found for this connection solution
- WCF error “an error occurred when verifying security for the message”… “