Giter VIP home page Giter VIP logo

sspi's People

Contributors

alexbrainman avatar bodgit avatar bradfitz avatar enj avatar vanackere avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

sspi's Issues

HTTP Transport/RoundTripper?

Hi all,

I'm trying to call an NTLM-authenticated HTTP service in Go. I'm running on a Windows host and the default user credentials accessible via SSPI have access to this service.

I've tried using the following related modules:

  • Azure/go-ntlmssp: Provides a RoundTripper for NTLM auth, but appears to expect explicit credentials
  • dpotapov/go-spnego: Provides an SPNEGO RoundTripper (and depends on this package!), but appears to only support Kerberos itself (not NTLM)

I tried reading through the tests as described in #6 (comment), but I'm not well-versed in Go and didn't understand how to chain this into existing HTTP client calls. I have to provide an NTLMSSP_NEGOTIATE message to the server before getting an NTLMSSP_CHALLENGE, and I'm not sure how to build one of these using the methods provided in sspi or sspi/negotiate.

Is there some documentation available for using this package to do NTLM negotiation?

x509 certificates from cert store

Hello,

I have been looking for a way to be able to use x509 certificates from the cert store and found a windows documentation that it can be done with schannel.

Windows Documentaiton

Is there any chance this library can help with that ?

thnx

Issue getting package "sspi/kerberos"

When trying to get the sspi/kerberos package, it complains about "build constraints exclude all Go files in"

| => go get github.com/alexbrainman/sspi
go: downloading github.com/alexbrainman/sspi v0.0.0-20210105120005-909beea2cc74
go get: added github.com/alexbrainman/sspi v0.0.0-20210105120005-909beea2cc74


| ~/sandbox/gohome/tcp @ Michaels-iMac (mdaloia)
| => go get github.com/alexbrainman/sspi/kerberos
package github.com/alexbrainman/sspi/kerberos: build constraints exclude all Go files in /Users/mdaloia/go/pkg/mod/github.com/alexbrainman/[email protected]/kerberos


| ~/sandbox/gohome/tcp @ Michaels-iMac (mdaloia)
| => go version
go version go1.17.6 darwin/amd64


| ~/sandbox/gohome/tcp @ Michaels-iMac (mdaloia)
| => go env
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/mdaloia/Library/Caches/go-build"
GOENV="/Users/mdaloia/Library/Application Support/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOINSECURE=""
GOMODCACHE="/Users/mdaloia/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPATH="/Users/mdaloia/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64"
GOVCS=""
GOVERSION="go1.17.6"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/Users/mdaloia/sandbox/gohome/tcp/go.mod"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -arch x86_64 -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/t5/96f3gstn4hb46287jnpfplmc0000gn/T/go-build2082939745=/tmp/go-build -gno-record-gcc-switches -fno-common"


| ~/sandbox/gohome/tcp @ Michaels-iMac (mdaloia)

can the client token be reused ?

I am using this package to authenticate my application (on Windows) against a proxy server which requires Kerberos authentication.
I am using negotiate.AcquireCurrentUserCredentials() and negotiate.NewClientContext() to get the client token which gets passed to the proxy server in Proxy-Authorization header.

Can this client token be reused for subsequent calls to the proxy ?
Appreciate if you have any suggestions on any golang package to achieve this for maOS using GSSAPI.

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.