Skip to content

Commit 8e05cc0

Browse files
committed
Kerberos tutorial: minor updates (incl version 13->17)
1 parent 487a238 commit 8e05cc0

1 file changed

Lines changed: 13 additions & 13 deletions

File tree

  • content/installation/user/user_install_kerberos

content/installation/user/user_install_kerberos/index.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: "Using Kerberos authentication for database connection"
3-
description: "Kerberos authentication on linux"
3+
description: "Kerberos authentication on Linux"
44
author: "Jo Loos, Floris Vanderhaeghe, Stijn Van Hoey"
55
date: 2018-01-03
66
categories: ["installation"]
@@ -19,7 +19,7 @@ Hence, we can use the protocol to have an OS independent solution for authentica
1919

2020
## Installation
2121

22-
### Libraries for authentication
22+
### Kerberos client
2323

2424
For debian/ubuntu users (make sure you belong to the `sudo` group):
2525

@@ -36,9 +36,9 @@ To answer that, see next section: [Configure Kerberos client](#configure-kerbero
3636

3737
*(again, the commands assume root privileges)*
3838

39-
Start with the kerberos configuration dialogue:
39+
Start with the Kerberos configuration dialogue:
4040

41-
```
41+
```bash
4242
dpkg-reconfigure krb5-config
4343
```
4444
Use `INBO.BE` as the realm (this is the realm of the kerberos servers):
@@ -192,29 +192,29 @@ To support database connections from other applications (e.g. GUI environments,
192192

193193
Make sure the ODBC driver for SQL Server is available with a recognizable name in the `/etc/odbcinst.ini` file:
194194
```
195-
[ODBC Driver 13 for SQL Server]
196-
Description=Microsoft ODBC Driver 13 for SQL Server
197-
Driver=/opt/microsoft/msodbcsql/lib64/libmsodbcsql-13.1.so.4.0
198-
UsageCount=2
195+
[ODBC Driver 17 for SQL Server]
196+
Description=Microsoft ODBC Driver 17 for SQL Server
197+
Driver=/opt/microsoft/msodbcsql17/lib64/libmsodbcsql-17.6.so.1.1
198+
UsageCount=1
199199
```
200200

201201
### Connecting by explicitly providing the SQL connection string to ODBC libraries/packages
202202

203-
Inbo staff can consult a list of connection strings [here](https://docs.google.com/spreadsheets/d/1Wu7GmWm-NyHLHYWwuu74aQuugkDKGnLF-8XFFPz_F_M/edit?usp=sharing)
203+
INBO staff can consult a list of connection strings [here](https://docs.google.com/spreadsheets/d/1Wu7GmWm-NyHLHYWwuu74aQuugkDKGnLF-8XFFPz_F_M/edit?usp=sharing).
204204
At this moment, you can actually connect using typical ODBC libraries/packages provided by R or Python:
205205

206-
```{r eval = FALSE}
206+
```r
207207
library(DBI)
208208
connection <- dbConnect(
209209
odbc::odbc(),
210-
.connection_string = "Driver={ODBC Driver 13 for SQL Server};Server=DBServername;Database=DBName;Trusted_Connection=yes;"
210+
.connection_string = "Driver={ODBC Driver 17 for SQL Server};Server=DBServername;Database=DBName;Trusted_Connection=yes;"
211211
)
212212
dbListTables(connection)
213213
```
214214

215215
```python
216216
import pyodbc
217-
conn = pyodbc.connect("Driver={ODBC Driver 13 for SQL Server};Server=DBServername;Database=DBName;Trusted_Connection=yes;")
217+
conn = pyodbc.connect("Driver={ODBC Driver 17 for SQL Server};Server=DBServername;Database=DBName;Trusted_Connection=yes;")
218218
```
219219

220220
In RStudio, you can also make the connection with the GUI:
@@ -236,7 +236,7 @@ However, it is probably easier to provide the configuration to specific database
236236

237237
```
238238
[nbn_ipt]
239-
Driver = ODBC Driver 13 for SQL Server
239+
Driver = ODBC Driver 17 for SQL Server
240240
Description = odbc verbinding naar db
241241
Trace = No
242242
Server = DBServername

0 commit comments

Comments
 (0)