Ruby on Rails Tuesday, December 27, 2011

On Dec 26, 7:55 am, venkata reddy <venkatareddy...@gmail.com> wrote:
> The exact requirement is, the rails app will be hosted in the lan
> itself. And when the user/employee opens the home page of the
> application, an action should be triggered and it should fetch the
> logged in user name(here logged name means the user who is using the
> machine), and the same thing(saying so and so user logged in) should
> be noticed to the admin.
>
> One idea i am having is if it is a linux machine i have to use the
> 'who' command and parse the output. but what for windows system? And
> what are the ways to execute the linux commands in a rails app?
>
> Anybody come across this sort of situation already?

If your users are all on Windows, apparently it's possible to tie into
NTLM authentication:

http://blog.rayapps.com/2008/12/02/ntlm-windows-domain-authentication-for-rails-application/

Never tried this, but it may work. Once you've got a username, you may
want to use something like ActiveLDAP to grab more info from your
Active Directory server.

--Matt Jones

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment