-
Notifications
You must be signed in to change notification settings - Fork 9
Description
Hello Jordan, I'm back. After a certain amount of idle time I came back to show off your awesome module to a colleague and ran into this error.
gss_init_sec_context failed (Major Status 851968 - Unspecified GSS failure. Minor code may provide m
ore information) (Minor Status 100001 - Ticket expired)I saw on issue 43 you said PR 45 resolved an issue where the connection timed out. I thought this might be similar. Here is the output of Get-Error
Exception :
Type : PSOpenAD.Native.GSSAPIException
MajorStatus : 851968
MinorStatus : 100001
TargetSite :
Name : InitSecContext
DeclaringType : PSOpenAD.Native.GSSAPI, PSOpenAD, Version=0.5.0.0, Culture=neutral, PublicKeyToken=null
MemberType : Method
Module : PSOpenAD.dll
Message : gss_init_sec_context failed (Major Status 851968 - Unspecified GSS failure. Minor code may provide m
ore information) (Minor Status 100001 - Ticket expired)
Source : PSOpenAD
HResult : -2146233087
StackTrace :
at PSOpenAD.Native.GSSAPI.InitSecContext(SafeGssapiCred cred, SafeGssapiSecContext context, SafeGssapiName targetNam
e, Byte[] mechType, GssapiContextFlags reqFlags, Int32 ttl, ChannelBindings chanBindings, Byte[] inputToken) in /_/src/
PSOpenAD/Native/GSSAPI.cs:line 504
at PSOpenAD.GssapiContext.Step(Byte[] inputToken) in /_/src/PSOpenAD/Authentication.cs:line 194
at PSOpenAD.Module.OpenADSessionFactory.SaslAuth(IADConnection connection, SecurityContext context, String saslMech,
Boolean integrity, Boolean confidentiality, CancellationToken cancelToken) in /_/src/PSOpenAD.Module/OpenADSessionFact
ory.cs:line 487
at PSOpenAD.Module.OpenADSessionFactory.Authenticate(IADConnection connection, Uri uri, AuthenticationMethod auth, P
SCredential credential, ChannelBindings channelBindings, Boolean transportIsTls, OpenADSessionOptions sessionOptions, C
ancellationToken cancelToken, PSCmdlet cmdlet, Boolean& signed, Boolean& encrypted) in /_/src/PSOpenAD.Module/OpenADSes
sionFactory.cs:line 423
at PSOpenAD.Module.OpenADSessionFactory.Create(Uri uri, PSCredential credential, AuthenticationMethod auth, Boolean
startTls, OpenADSessionOptions sessionOptions, CancellationToken cancelToken, PSCmdlet cmdlet) in /_/src/PSOpenAD.Modul
e/OpenADSessionFactory.cs:line 151
at PSOpenAD.Module.OpenADSessionFactory.CreateOrUseDefault(String server, PSCredential credential, AuthenticationMet
hod auth, Boolean startTls, OpenADSessionOptions sessionOptions, CancellationToken cancelToken, PSCmdlet cmdlet, Boolea
n skipCache) in /_/src/PSOpenAD.Module/OpenADSessionFactory.cs:line 84
CategoryInfo : AuthenticationError: (:) [Get-OpenADComputer], GSSAPIException
FullyQualifiedErrorId : AuthError,PSOpenAD.Module.Commands.GetOpenADComputer
InvocationInfo :
MyCommand : Get-OpenADComputer
ScriptLineNumber : 1
OffsetInLine : 1
HistoryId : 1
Line : Get-OpenADComputer | ft
Statement : Get-OpenADComputer
PositionMessage : At line:1 char:1
+ Get-OpenADComputer | ft
+ ~~~~~~~~~~~~~~~~~~
InvocationName : Get-OpenADComputer
CommandOrigin : Internal
ScriptStackTrace : at <ScriptBlock>, <No file>: line 1
PipelineIterationInfo :Restarting powershell did not have any effect. The commands Get/New-OpenADSession received the same error without explicit credentials. I was able to create a session with explicit credentials. The cmdlets still gave the same gss error with or without specifying the server (name/fqdn) but with explicit credentials they work fine. Restarting the ubuntu wsl app and completing shutting down wsl (wsl --shutdown) has not made a difference. My uneducated guess is it seems the anonymous "session" is broken?