You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
These libraries will be used later on. The following section is for interaction with MS SQL databases.
32
-
33
-
Modern Linux distributions use PAM to handle the authentication tasks of applications (services) on the system (PAM stands for _Pluggable Authentication Modules_, see `man PAM`). However we do not need that here.
34
-
The above installation may have led to inserting a line into PAM configuration file `/etc/pam.d/common-auth`. The line looks like this (note the defining part `pam_krb5.so`):
This line makes every application that needs authentication on the system (like sudo, screensaver unlock, update manager, ...) first try the Kerberos connection to authenticate.
41
-
This is overkill as we don't want to use Kerberos that way, and it can significantly slow down all other system authentications.
42
-
Therefore, you should _comment out_ the above line in `/etc/pam.d/common-auth`.
43
-
44
-
### MS SQL Server tools
45
-
46
-
As most of the databases at INBO are SQL Server, an appropriate driver and the command line toolset is required to fully support database connections to SQL Server.
47
-
48
-
#### ODBC driver
49
-
50
-
Download and install the [Microsoft ODBC Driver for SQL Server](https://www.microsoft.com/en-us/download/details.aspx?id=53339). The installation instructions for different Linux flavours can be downloaded together with the ODBC driver. For `Ubuntu 16.04` (and most distributions based on it), following instructions apply:
During installation, you may be asked for extra configuration input.
32
+
To answer that, see next section: [Configure Kerberos client](#configure-kerberos-client).
69
33
70
-
The instructions for different platforms are explained [here](https://docs.microsoft.com/en-us/sql/linux/sql-server-linux-setup-tools). In order to test the SQL connection later in this tutorial, add `/opt/mssql-tools/bin/` to your PATH environment variable.
71
-
72
-
You could also decide to go for the binaries: download [the debian package of mssql-tools](https://apt-mo.trafficmanager.net/repos/mssql-ubuntu-xenial-release/pool/main/m/mssql-tools/mssql-tools_14.0.1.246-1_amd64.deb) and install with:
73
-
74
-
```
75
-
sudo apt-get install libgss3
76
-
sudo dpkg -i mssql-tools_14.0.1.246-1_amd64.deb
77
-
```
78
34
79
35
### Configure Kerberos client
80
36
@@ -126,7 +82,40 @@ sudo apt-get install ntp
126
82
```
127
83
After installation, check if the following two files do exist:
128
84
*`/etc/ntp.conf`
129
-
*`/etc/ntp.conf.dhcp` (empty file, just amke sure there is a file)
85
+
*`/etc/ntp.conf.dhcp` (empty file, just make sure there is a file)
86
+
87
+
### MS SQL Server ODBC driver and tools
88
+
89
+
As most of the databases at INBO are SQL Server, an appropriate driver and the command line toolset is required to fully support database connections to SQL Server.
90
+
91
+
Apart from the ODBC driver, we will also install following tools:
92
+
93
+
***sqlcmd**: Command-line query utility.
94
+
***bcp**: Bulk import-export utility.
95
+
96
+
For Linux, follow [these installation instructions](https://docs.microsoft.com/en-us/sql/connect/odbc/linux-mac/installing-the-microsoft-odbc-driver-for-sql-server).[^installnotes]
97
+
98
+
Also follow the 'optional' instructions, as these will install the tools.
99
+
100
+
Hence, for Ubuntu 20.04 or Linux Mint 20 you would do:
[^installnotes]: You can also find the debian packages of Microsoft ODBC Driver for SQL Server [here](https://docs.microsoft.com/en-us/sql/connect/odbc/download-odbc-driver-for-sql-server).
117
+
You can find separate installation instructions for `sqlcmd`, `bcp` and `unixodbc-dev`[here](https://docs.microsoft.com/en-us/sql/linux/sql-server-linux-setup-tools).
0 commit comments