on 2023 Mar 06 12:21 PM
Good day for you!
After creating DSN record (odbcad32.exe) and checking connection i have "connection successful" answer.
But if i trying to connect with vbs, i have the next error: "Microsoft OLE DB Provider for ODBC Drivers: [SAP][ODBC Driver][SQL Anywhere]Invalid user ID or password"
cat odbc_test.vbs
Code:
Set conn = CreateObject("ADODB.Connection") conn.Open "DSN=TEST;UID=dba;PWD=sql;" WScript.Echo "Connected."
What am I doing wrong?
The error is reproduced on windows 10 x64 and windows 11 arm.
Other details (added):
sajdbc4.jar + java and the same credentials works fine
java + jconn4.jar - "Invalid user id"
python + JayDeBeApi + sajdbc4.jar - "Invalid user id"
odbc drivers - "Invalid user id" (python/vbs)
Github issue: link
Request clarification before answering.
Another very very very wild guess: Is there a particular login_procedure defined for that particular database? - Simply because such a procedure could be coded to check the usage of particular applications or APIs based on checking connection_property('AppInfo'), connection_property('ClientLibrary') or the like and reject undesired access (even with correct credentials) via SQLE_INVALID_LOGON...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Well, when successfully connected, you can check whether the login_procedure is set or not. If it is then you might check the source of the according procedure in SYSPROC (unless access is restricted or code is hidden).
If it is and you aren't allowed or able to get the procedure'code, well, then you are probably limited to black box testing because... well, it could do whatever the coder has made it do...
If you suspect it checks the application's path/name, varying this with working vs. currently not working apps would seem worthwhile to test.
Note, I have never needed such tests, so what do I know:)
'secadm.sec_login'
Well. I guess we made sure.
User | Count |
---|---|
82 | |
29 | |
9 | |
8 | |
7 | |
7 | |
7 | |
6 | |
6 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.