how to use odbc connection in excel by kerberos

Erik Bethlehem (E) 0 Reputation points
2023-06-20T06:43:10.13+00:00

We are trying to connect to the iseries database in excel by using the import from other sources and then select odbc. We are trying to implement single sign on - and also choose in the configuration of the odbc connection the kerberos connect option. But still it is asking for userid and password. Does anyone have an idea if it is possible to connect and not have to put in user and password? These are the settings in de odbc driver:

User's image

Microsoft 365 and Office | Excel | For business | Windows
SQL Server | Other
{count} votes

4 answers

Sort by: Most helpful
  1. Erik Bethlehem (E) 0 Reputation points
    2023-06-20T07:28:50.8366667+00:00

    Hello,

    I know- but i asked ibm and they say is a microsoft issue- so therefore i hope that someone has experience with connecting excel to an iseries database via excel. I know how that works and thats working fine with entering userid and password- but we now want to use the kerberos connection option and this should result in not having to enter a user and password for the connection.


  2. Erik Bethlehem (E) 0 Reputation points
    2023-06-20T11:18:29.8166667+00:00

    Hello,

    that is correct, but what i do in excel is this:

    User's image

    I choose- gegevens- then gegevens ophalen and there i select from other sources the ODBC . and in gegevensbron i choose the option nlavcb2u- thats the system where the database is- and in this odbc connection i selected as option use kerberos. What happens next is this:

    User's image

    There i have to enter user and password, buth with the kerberos option on, this should not happen- itshould log in without asking for userid and password.

    So what we think that using kerberos is somehow blocked by excel- or is that not possible?

    The dsn is correct- because when i enter my username and password it connects to the system.


  3. Erik Bethlehem (E) 0 Reputation points
    2023-06-20T13:15:09.76+00:00

    Yes i can connect without userid and password on iseries self and also network connection without having to use userid and password. But now we were testing and something happened.

    User's image

    in stead of using database we chose Windows an dwithout changing something in windows i chose connect- then it did work!! Should that be the option then?


  4. Anonymous
    2023-06-28T22:34:08.9533333+00:00

    It is correct that you need to select the windows authentification, because that is where you tell then client to use your logged in usertoken via Kerberos to authenticate to the database.
    When you select the database authentification, then it tries to authenticate directly to the database without kerberos, that is why you get the login prompt when updating the data, it is like SQL Authentication.. so you are on the correct path :)

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.