Created
December 14, 2018 12:13
-
-
Save Casm82/a25242d07ca41b1364f49b13b769482c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[node@centos7.5 lkrbAuth]$ export KRB5_KTNAME=/srv/keytabs/krbAuth.keytab | |
[node@centos7.5 krbAuth]$ klist -k /srv/keytabs/krbAuth.keytab | |
Keytab name: FILE:/srv/keytabs/krbAuth.keytab | |
KVNO Principal | |
---- -------------------------------------------------------------------------- | |
32 HTTP/centos.domain.org@DOMAIN.ORG | |
[node@centos7.5 krbAuth]$ node krb_example.js | |
-----request----- | |
{ host: 'centos.domain.org:3005', | |
connection: 'keep-alive', | |
'upgrade-insecure-requests': '1', | |
'user-agent': | |
'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.80 Safari/537.36', | |
accept: | |
'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8', | |
'accept-encoding': 'gzip, deflate', | |
'accept-language': 'en-US;q=0.8,en;q=0.7' } | |
-----response----- | |
{ 'x-powered-by': 'Express', 'www-authenticate': 'Negotiate' } | |
-----request----- | |
{ host: 'centos.domain.org:3005', | |
connection: 'keep-alive', | |
authorization: | |
'Negotiate YIIJJgY....MDsBHUfaMrvV', | |
'upgrade-insecure-requests': '1', | |
'user-agent': | |
'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.80 Safari/537.36', | |
accept: | |
'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8', | |
'accept-encoding': 'gzip, deflate', | |
'accept-language': 'en-US;q=0.8,en;q=0.7' } | |
KerberosServer { | |
contextComplete: true, | |
targetName: null, | |
response: | |
'oYGyMIGvo....8vCTvBrvX2yA==', | |
username: 'testuser1@DOMAIN.ORG' } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment