 |
 Return Code 259 using SECKFMSwitchToIDFile Keith Cunningham 01/31/2007 10:00 AM Applications Development 6.0.4 Windows XP
I have created a lotusscript code that uses the API to validate the users lotus notes password. This code works fine when I'm testing. However, when I have anyone else test, it doesn't. The return code is 259 - even though they are using their valid Lotus notes password. I have checked for case and confirmed there are no misc characters sneking in there. The code follows:
Dim askme2 As Variant
askme2 = workspace.Prompt(PROMPT_PASSWORD, "Password", "Please enter your LOTUS NOTES password." + Chr(10)+ "Please remember, LOTUS NOTES passwords are case sensitive." + Chr(10)+"Please disregard the warning below.")
If Isempty (askme2) Then
Messagebox "You hit the Cancel button.",MB_OK + 16,"Cannot Continue"
Goto QuitSub
Elseif askme2 = "" Then
'They hit OK without entering anything
Messagebox "You hit the OK button, but no password was provided. ",MB_OK + 16,"Cannot Continue"
Goto QuitSub
Else
' OK hit, password provided
Status%=SECKFMSwitchToIDFile(MyID,Askme2,UserName,MAXUSERNAME,0,0)
If Status% =0 Then
' The password was good
Else
'The password was not good
Msgbox "The password you entered does not match your Lotus Notes password" + Chr(10) + Chr(10) + "Please review your LOTUS NOTES password, and try again. Please note: LOTUS NOTES passwords are case sensitive"
Goto QuitSub
End If
End If
The declare statement follows
Declare Function SECKFMSwitchToIDFile Lib "nnotes.dll" (Byval IDFile$, Byval Password$, Byval UserName$, Byval MaxUserNameLength%, Byval ReservedFlag&, Byval flag&) As Integer
What does error 259 mean in this case?
What can I do to make this code work for everyone?
Your help and insights are greatly appreciated.
Go back |