I'm testing an API using Fast API and Docker. When I load up the webpage it attempts to run a query using an AS400 connection that is setup with pyodbc.
I started with the error: pyodbc.InterfaceError: ('28000', '[28000] [IBM][System i Access ODBC Driver]Communication link failure. comm rc=8051 - CWBSY1011 - Kerberos client credentials not found
So I installed krb5 and created a ticket. Then re-loaded the webpage and the new error I am stuck at is pyodbc.InterfaceError: ('28000', '[28000] [IBM][System i Access ODBC Driver]Communication link failure. comm rc=8052 - CWBSY1012 - Kerberos service principal not found for system SYSTEM
where SYSTEM is my AS400 system's name.
Has anyone else run into this before? It seems like AS400 is requiring me to use Kerberos on connecting but then I set it up and the system does not have a Kerberos service principal.
Do I possibly need to join the domain fully using the instructions found here? I started this process however I run into an error: Failed to join domain: Not enough storage is available to process this command.
when trying to run net ads join
which I am assuming is due to the Docker image being so small; so I assume this is not possible.
Here is my ODBC.ini config file:
[QDSN_ASW]
Description=ASW
Driver=iSeries Access ODBC Driver
System=192.168.100.1
UserID=user
Password=pass
Naming=0
DefaultLibraries=QGPL
Database=1492BFDD
ConnectionType=2
CommitMode=2
ExtendedDynamic=0
DefaultPkgLibrary=QGPL
DefaultPackage=A/DEFAULT(IBM),2,0,1,0,512
AllowDataCompression=1
LibraryView=0
AllowUnsupportedChar=0
ForceTranslation=0
Trace=0
Trusted_Connection=no
AuthenticationType=No Authentication