Skip to content

Instantly share code, notes, and snippets.

@Casm82
Created December 14, 2018 12:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Casm82/4691d18366d768125975656b1fb7f78f to your computer and use it in GitHub Desktop.
Save Casm82/4691d18366d768125975656b1fb7f78f to your computer and use it in GitHub Desktop.
[node@centos7.6 krbAuth]$ export KRB5_KTNAME=/srv/keytabs/krbAuth.keytab
[node@centos7.6 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.6 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....RxdiO',
'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' }
Segmentation fault
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment