Giter Site home page Giter Site logo

sqlserver-kerberos-test's Introduction

Description

This is a simple test tool to validate Java Kerberos authentication against a Microsoft SQL Server database. The tool requires two configuration file: SQLSERVER.conf and krb5.conf.

SQLSERVER.conf

A sample file is provided in the zip distribution. This file can be used as is.

krb5.conf

A sample file is provided, but it needs to be modified to fit your environment: specify the relevant domains, KDC and admin servers.

See https://web.mit.edu/kerberos/krb5-1.12/doc/admin/conf_files/krb5_conf.html for more information.

Usage

The usage information will show as follows:

usage: SQL Server JDBC Kerberos Test Tool
 -?,--help             Show help
 -h,--host <arg>       Database host
 -P,--port <arg>       Database port
 -p,--password <arg>   Database user password
 -u,--user <arg>       Database user

The options -h is required to specify a host. The default port is 1433 and can be overridden using the option -p. If no user or no password is specified, a prompt will be displayed to provide the username and/or password.

An example call looks as follows:

java  -Dsun.security.krb5.debug=true -Djava.security.auth.login.config=SQLSERVER.conf -Djava.security.krb5.conf=krb5.conf -jar kerberos-test.jar -h sql.example.com -u [email protected]

The option -Dsun.security.krb5.debug=true enables kerberos debugging. The option -Djava.security.auth.login.config=SQLSERVER.conf tells Java where to find the SQLSERVER.conf file. An alternative location could be provided, if needed. Similarly, the option -Djava.security.krb5.conf=krb5.conf points to the krb5.conf file. The option -jar is needed and requires the jar file name (kerberos-test.jar as provided).

sqlserver-kerberos-test's People

Contributors

menno-pieters-sp avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.