[Rails] Re: Check if Active Directory user account disabled

2014-10-06 Thread ZBoT ZBoT
Thanks Jason! I ended up using net-ldap and just querying for userAccountControl and comparing against this list: http://www.netvision.com/ad_useraccountcontrol.php def new_ldap_connection Net::LDAP.new( host: ENV['ad_host'], port: ENV['ad_port'], encryption: :simple_tls,

[Rails] Check if Active Directory user account disabled

2014-09-24 Thread ZBoT ZBoT
Hi all, I am new to Rails and in my app I need to check if a user account is disabled in Active Directory. I am not using AD for Rails authentication. I've searched around and I'm getting overwhelmed with the answers. What would be the easiest way to go about this? Should I just do some type o