I know almost nothing about Active Directory so pardon me if this question seems silly. I have been hired as a remote developer for a project. The application on which I suppose to work relies on Active Directory authentication.
As I am not part of their domain, I can't get logged in through normal channels and getting LDAP server is not available exception.
The code that is throwing this error is
var context = new PrincipalContext(ContextType.Domain);
var user = UserPrincipal(context, "some user name");
I need to know if there is a way I could mock this behavior only to get past this code, of course, I won't commit it but only to work on other screens. It is a WinForms application.
They have added me to domain, given me credentials and I create a new user in my windows 10 with those credentials using azure devops. Also got config for vpn from them and got connected to it. Still same error that LDAP server is not available.
Any suggestions to make it work in a correct way or dirty way.