# Logging in using current Windows user information

**URL:** <https://www.ruby-forum.com/t/logging-in-using-current-windows-user-information/174675>\
**Category:** Rails\
**Created:** [August 31, 2009, 11:11am UTC](https://www.ruby-forum.com/t/logging-in-using-current-windows-user-information/174675 "2009-08-31T11:11:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![wanyixue](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/958977/32.png) [@wanyixue](https://www.ruby-forum.com/u/wanyixue)\
**Post date:** [August 31, 2009, 11:11am UTC](https://www.ruby-forum.com/t/logging-in-using-current-windows-user-information/174675/1 "2009-08-31T11:11:58Z")

</div>

is it possible to fetch the current logged in window user information  
for authentication / log in purposes ?

---

<div class="post-metadata">

**Author:** ![wanyixue](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/958977/32.png) [@wanyixue](https://www.ruby-forum.com/u/wanyixue)\
**Post date:** [August 31, 2009, 9:22pm UTC](https://www.ruby-forum.com/t/logging-in-using-current-windows-user-information/174675/2 "2009-08-31T21:22:07Z")

</div>

Lin Wj wrote:

> is it possible to fetch the current logged in window user information  
> for authentication / log in purposes ?

What you are looking for is something like “integration with active  
directory”  
Here’s a couple of google results to get you started:

> **[Active Directory Authentication for Ruby on Rails](https://www.zorched.net/2007/06/04/active-directory-authentication-for-ruby-on-rails/)**

[http://xaop.com/blog/2008/06/17/simple-windows-active-directory-ldap-authentication-with-rails/](http://xaop.com/blog/2008/06/17/simple-windows-active-directory-ldap-authentication-with-rails/)

> **[Ruby On Rails Active Directory Authentication](https://isdepartment.wordpress.com/2007/05/30/ruby-on-rails-active-directory-authentication/)**
>
> During a conversation at work, the idea of using ruby on rails for future development projects came up.  One of the ‘hurdles’ that was discussed was integrating it with Active Directory…
