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
// | |
// tested with kerberos 0.0.12 on linux against apache running mod_auth_kerb with Samba AD providing KDC | |
// | |
var Kerberos = require('kerberos').Kerberos; | |
var kerberos = new Kerberos(); | |
var http = require('http'); | |
function httpget(opts, callback) { | |
console.log('submitting to '+(opts.hostname||opts.host)+' with authorization header: '+(opts.headers||{}).authorization); | |
var req = http.get(opts, function(res) { |