gheeres / node-activedirectory

ActiveDirectory is an Node.js ldapjs client for authN (authentication) and authZ (authorization) for Microsoft Active Directory with range retrieval support for large Active Directory installations.
MIT License
534 stars 146 forks source link

question: current user #158

Open yosiasz opened 7 years ago

yosiasz commented 7 years ago

Greetings,

Users in our environment do not want to be prompted for a login so is there a way to find current user's username from app running on windows server? I have dreaded doing authentication but seems like might have to dive in. Thanks!

mikinho commented 7 years ago

What type of application is it? If web based you'll need to add Windows Authentication to your app via SSPI

kspearrin commented 6 years ago

I am trying to authenticate/bind as the current system user rather than providing a dn/password. Not sure if that's the same thing @yosiasz was trying to figure out or not but I can't seem to get that working.

yosiasz commented 6 years ago

mine is an angularjs application and I went with this following npm modules express-ntlm https://www.npmjs.com/package/express-ntlm