Active Directory Authenication Not Working || Octopus Deploy
Hi,
I am using octopus deploy version v2018.3.5 and Our requirement is that the user access
should only be granted access through active directory groups and not individual users.
I went with couple of post along with documentation at https://octopus.com/docs/administration/authentication-providers/active-directory-authentication
and implement following layout. Correct, If missed something :->
-
Created one group at active directory named called “RSIN_APP_octo_admin”.
-
Created one user called “octopus” and made it a member of “RSIN_APP_octo_admin” in active directory.
-
User “octopus” can login on email as well as local enviroment machine using active directory credinitals.
-
Then I have login on local enviroment machine via RDP using user “octopus” credinitals.
-
Open octopus portal in google chrome and then went to Configuration -> Settings -> Active Directory
**Parameter** **Value**
Active Directory Container CN=RSIN_APP_octo_admin,OU=Development,OU=Group,DC=india,DC=rsystems,DC=com
Authentication Scheme IntegratedWindowsAuthentication
Allow Forms Authentication For Domain Users Enabled
Security Groups Enabled Enabled
Allow Auto User Creation Enabled
Is Enabled Enabled -
Then Went to Team -> Octopus Administrators -> Members -> Add Active Directory Group and then added “RSIN_APP_octo_admin”.
-
Open up the octopus portal in browser using google chrome.
-
Used “Sign in With a domian account” which triggered a pop-up and then i have put credinitals alike :
Username : domian\octopus
Password : xxxxxxxxxxxxxx -
Check logs under c:\octopus\logs\octopusserver.txt, at the very bottom of file i see the error alike :
First Error : Using user “octopus”
An exception was thrown while trying to establish a principal for the current request
System.ArgumentException: A principal identifiable by ‘octopus’ was not found in 'IND-DEL’
** at Octopus.Node.Extensibility.Authentication.DirectoryServices.DirectoryServices.DirectoryServicesCredentialValidator.GetOrCreateUser(String username, CancellationToken cancellationToken)**
** at Octopus.Node.Extensibility.Authentication.DirectoryServices.DirectoryServices.DirectoryServicesUserCreationFromPrincipal.GetOrCreateUser(IPrincipal principal, CancellationToken cancellationToken)**
** at System.Linq.Enumerable.WhereSelectArrayIterator2.MoveNext()** ** at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable
1 source, Func2 predicate)** ** at Octopus.Server.Web.Infrastructure.Authentication.ExternalPrincipalRequestAuthenticator.TryAuthenticateRequest(NancyContext context)** ** at System.Linq.Enumerable.WhereSelectArrayIterator
2.MoveNext()**
** at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable1 source, Func
2 predicate)**
** at Octopus.Server.Web.Infrastructure.Authentication.OctopusPrincipalEstablisher.EstablishPrincipalForRequest(NancyContext context)**
- Then I have tried with domain administrator account called “vivek.singh2” and made him a group member of “RSIN_APP_octo_admin” group as well as
“octopus Administrators”.
**Second Error : Using user “vivek.singh2” **
System.ArgumentException: A principal identifiable by ‘Vivek.Singh2’ was not found in 'IND-DEL’
** at Octopus.Node.Extensibility.Authentication.DirectoryServices.DirectoryServices.DirectoryServicesCredentialValidator.GetOrCreateUser(String username, CancellationToken cancellationToken)**
** at Octopus.Node.Extensibility.Authentication.DirectoryServices.DirectoryServices.DirectoryServicesUserCreationFromPrincipal.GetOrCreateUser(IPrincipal principal, CancellationToken cancellationToken)**
** at System.Linq.Enumerable.WhereSelectArrayIterator2.MoveNext()** ** at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable
1 source, Func2 predicate)** ** at Octopus.Server.Web.Infrastructure.Authentication.ExternalPrincipalRequestAuthenticator.TryAuthenticateRequest(NancyContext context)** ** at System.Linq.Enumerable.WhereSelectArrayIterator
2.MoveNext()**
** at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable1 source, Func
2 predicate)**
** at Octopus.Server.Web.Infrastructure.Authentication.OctopusPrincipalEstablisher.EstablishPrincipalForRequest(NancyContext context)**
-
Most Important Part is, If I choose below Parameter’s then user is able to login and automatically a new user is created.
**Parameter** **Value**
Active Directory Container None
Authentication Scheme Ntlm
Allow Forms Authentication For Domain Users Enabled
Security Groups Enabled Enabled
Allow Auto User Creation Enabled
Is Enabled Enabled
Note: I hope i have given enough information to understand my requirement and problem.
If someone can help me out asap, that would be great.