Hello,
I upgraded Octopus to the latest version (Octopus.2019.5.6) and I can no longer log in.
We have domain authentication enabled. When I log in using correct credentials I receive the following error:
No fallback name was provided
In addition, if I log in with an invalid username, it correctly tells me “Username not found”
Here is the full call stack from the error log:
2019-06-10 10:43:27.0216 5944 6 WARN The user name (UPN) could not be determined for principal - falling back to NT-style 'sailcloud\'
2019-06-10 10:43:27.0216 5944 6 ERROR Unhandled error on request: http://172.18.5.1:8282/api/users/login 7f96b2c70e3e4c4fa36a95fe513faa07 by <anonymous> : No fallback name was provided
System.InvalidOperationException: No fallback name was provided
at Octopus.Server.Extensibility.Authentication.DirectoryServices.DirectoryServices.DirectoryServicesObjectNameNormalizer.ValidatedUserPrincipalName(String userPrincipalName, String fallbackUsername, String fallbackDomain)
at Octopus.Server.Extensibility.Authentication.DirectoryServices.DirectoryServices.DirectoryServicesCredentialValidator.GetOrCreateUser(UserValidationResult principal, String fallbackUsername, String fallbackDomain, CancellationToken cancellationToken)
at Octopus.Server.Extensibility.Authentication.DirectoryServices.DirectoryServices.DirectoryServicesCredentialValidator.ValidateCredentials(String username, String password, CancellationToken cancellationToken)
at Octopus.Server.Web.Api.Actions.Users.UserLoginAction.Execute()
at Octopus.Server.Web.Infrastructure.Api.Responder`1.ExecuteRegistered()
at Octopus.Server.Web.Infrastructure.Api.Responder`1.Respond(TDescriptor options, NancyContext context)
at Octopus.Server.Web.Infrastructure.OctopusNancyModule.<>c__DisplayClass14_0.<get_Routes>b__1(Object o, CancellationToken x)
at Nancy.Routing.Route`1.<Invoke>d__7.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Nancy.Routing.DefaultRouteInvoker.<Invoke>d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Nancy.Routing.DefaultRequestDispatcher.<Dispatch>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Nancy.NancyEngine.<InvokeRequestLifeCycle>d__22.MoveNext()