0
votes

Let's assume we can not get password of the current user, only username and domain if necessary. Is it possible to get a session token or something similar to authenticate with remote service using LDAP authentication?

UPDATE

I am writing a c# app that would get info from a web service written in Python. Remote web service uses python LDAP module to manage LDAP users and authentication. I'd like to use logged in windows user identity info to log into remote service. I can modify the authentication logic in remote web service if "token based" or similar authentication is possible.

1

1 Answers

0
votes

You didn't say what type of application you're using, but the only way to do this is with Windows Authentication. For a web application, the web server (IIS, Apache, etc) would handle the authentication and give you the name of the authenticated user.

In ASP.NET, the implementation also depends on if you're using the .NET Framework or .NET Core.

To give you any more information, you will need to specify what type of application you're working on and on which OS.