My main goal is to create a backdoor sign in by any user for admin.
I use core API and Active Directory auth and use LDAP.
services.AddLdap(Configuration);
app.UseLdapAuthentication(Configuration);
It works correctly.
Now I need to add the ability for admin to log-in by any user. Of course, admin doesn't know a password.
I do connect
_connection.Connect(_config.Url, LdapConnection.DEFAULT_PORT);
And bind where I have to know the password.
_connection.Bind(username, password);
I use cookie-based auth.
I can't find a way to do that.