Buddy,
The “UserPWD” assoc key setsthe password hash in the database. You cannot pass a plain text passwordhere. Instead, you must use “Password” for your assoc key. Livelink will then encrypt and store your password correctly.
Regards,
Kevin
From: eLinkDiscussion: LAPI Discussion [mailto:lapi@elinkkc.opentext.com] Sent: Monday, February 16, 20045:17 PMTo: eLink RecipientSubject: Changing Password usingLAPI and VB
Changing Password using LAPI and VB
Posted by USPhamacopeialAdmin (Yingling, Buddy) on 02/16/2004 05:12 PM
I have managed to change a livelink user password through LAPi with one problem. The password within KUAF IS NOT encrypted. Can any one shed some light on what's going on? The routine doesn't fail, it writes the password to the database unencrypted. LL_ValueAlloc llv If LL_ValueSetAssoc(llv) <> LL_OK Then MsgBox "Failed1." Else If LL_AssocSetString(llv, "UserPWD", sNewPassWord) <> LL_OK Then MsgBox "Failed2." Else If LL_UpdateUserInfo(mvarLLSession, sUserName, llv) <> LL_OK Then MsgBox "Failed3." Else MsgBox "Success." End If End If End If LL_ValueFree llv
When a LAPI status code is returned, there’susually multiple errors returned with it. For instance, “Unable toupdate the user info” is being returned from the LAPI code you can findin Builder. However, the code also returns any errors thrown in the core userupdate code that it’s calling. What the “errMsg” and “apiError”messages that are returned?
If nothing is in these messages, pleaseopen a new SDK support ticket as a product specialist will need to review logson the issue.
From: eLinkDiscussion: LAPI Discussion [mailto:lapi@elinkkc.opentext.com] Sent: Tuesday, February 17, 20044:40 PMTo: eLink RecipientSubject: Thanks for the response.
Thanks for the response.
Posted by USPhamacopeialAdmin (Yingling, Buddy) on 02/17/2004 04:39 PM
In reply to: RE Changing Password using LAPI and VB
Posted by kward (Ward, Kevin) on 02/17/2004 08:12 AM
Thanks for the response. I substituted "Password" for "UserPWD" as you suggested and I now get a Livelink error STATUS : 401907 MESSAGE : Unable to update the user info ERROR : 48258200 NOTE: The Livelink session was created with the same user that I'm trying to change the password for.
If you haven’t setup the User Tab Permissionson the Admin Pages, this will probably happen. By default, users don’thave permissions to update their own General tab information. This includestheir password. However, in the browser, users can update their password usingthe Personal.Settings page. Unfortunately, if you want users to update theirpassword through LAPI, you’ll have to grant them permissions to on theUser Tab Permissions page on the Admin Pages. Simply granting “AllowEdit of Self” for the General tab under Public Access should do it.
From: eLinkDiscussion: LAPI Discussion [mailto:lapi@elinkkc.opentext.com] Sent: Friday, February 20, 20049:49 AMTo: eLink RecipientSubject: Kevin
Posted by USPhamacopeialAdmin (Yingling, Buddy) on 02/20/2004 09:46 AM
In reply to: RE Thanks for the response.
Posted by kward (Ward, Kevin) on 02/18/2004 08:06 AM
Kevin: I'm not sure how to obtain the information your requesting, but I am sending a log file that does contain the following: 02/19/2004 15:49:19 0000006872: ****** UAPICheckAlterPrivs called ... 02/19/2004 15:49:19 0000006873: KConnect::ErrLog --> [10108,10],'Not enough privileges.' I hope this helps. Buddy