I thought about using LDAP for verification. I tried it and found that the LDAP plug-in of RTX is relatively expensive. Later, I wanted to directly modify the user password of the RTX Database. I found that the encryption method of the RTX user password could not be obtained. I had been worried about RTX when building a unified authentication system for the company's user accounts.
I thought about using LDAP for verification. I tried it and found that the LDAP plug-in of RTX is relatively expensive. Later, I wanted to directly modify the user password of the RTX database, and found that the RTX user password cannot be encrypted.
The final implementation is to directly change the password through the interface provided by RTX. Speaking of this, I have to say that the SDK documentation provided by the RTX team is easy to use and the code availability should be improved. After searching for a long time, either the interface code has expired or the demo code provided cannot run.
Finally, I re-built a VB project and finally debugged it. I found out the PHP implementation that can meet the requirements. Share it with the children's shoes you need.
The key code of VB is as follows:
Set rootobj = CreateObject ("RTXSAPIRootObj. RTXSAPIRootObj ")
Set UserManager = rootobj. UserManager
UserManager. SetUserPwd txtUserName. Text, txtPwd. Text
MsgBox "user password set successfully"
The same PHP implementation code is as follows:
<? Php
Try {
$ RTXSvrApi = new COM ("RTXSAPIRootObj. RTXSAPIRootObj ");
$ RTXSvrApi-> ServerIP = "127.0.0.1 ";
$ RTXSvrApi-> ServerPort = 8006;
$ UserManager = $ RTXSvrApi-> UserManager;
$ Result = $ UserManager-> SetUserPwd ('kimi', 'password ');
If ($ result = 0)
{
$ HasAlert = true;
}
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.