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
The `kerberos` package is a C++ extension for Node.js that provides cross-platform support for kerberos authentication using GSSAPI on linux/osx, and SSPI on windows. Much of the code in this module is adapted from [ccs-kerberos](https://github.com/apple/ccs-pykerberos) and [winkerberos](https://github.com/mongodb-labs/winkerberos).
6
+
7
+
### Requirements
8
+
9
+
**Linux**
10
+
- `python` v2.7
11
+
- `make`
12
+
- A proper C/C++ compiler toolchain, like [GCC](https://gcc.gnu.org/)
13
+
- Distribution-specific kerberos packages (e.g. `krb5-dev` on Ubuntu)
14
+
15
+
**macOS**
16
+
- `Xcode Command Line Tools`: Can be installed with `xcode-select --install`
17
+
- Distribution-specific kerberos packages (e.g. `krb5` on Homebrew)
18
+
19
+
**Windows**
20
+
- **Option 1:** Install all the required tools and configurations using Microsoft's [windows-build-tools](https://github.com/felixrieseberg/windows-build-tools) by running `npm install -g windows-build-tools` from an elevated PowerShell (run as Administrator).
21
+
- **Option 2:** Install dependencies and configuration manually
22
+
1. Visual C++ Build Environment:
23
+
* **Option 1:** Install [Visual C++ Build Tools](http://go.microsoft.com/fwlink/?LinkId=691126) using the *Default Install* option.
24
+
* **Option 2:** Install [Visual Studio 2015](https://www.visualstudio.com/products/visual-studio-community-vs) (or modify an existing installation) and select *Common Tools for Visual C++* during setup.
2. Install [Python 2.7](https://www.python.org/downloads/) or [Miniconda 2.7](http://conda.pydata.org/miniconda.html) (`v3.x.x` is not supported), and run `npm config set python python2.7`
29
+
3. Launch cmd, `npm config set msvs_version 2015`
30
+
31
+
### Installation
32
+
33
+
Now you can install `kerberos` with the following:
34
+
35
+
```bash
36
+
npm install kerberos
37
+
```
38
+
39
+
### Testing
40
+
41
+
Run the test suite using:
42
+
43
+
```bash
44
+
npm test
45
+
```
46
+
47
+
NOTE: The test suite requires an active kerberos deployment, see `test/scripts/travis.sh` to better understand these requirements.
0 commit comments