title: How to access files in windows active directory with ruby
body: <p>I am trying to find out if there is a way for a ruby application to read files on a networked windows active directory folder.  This will need to be an automated process that authenticates and connects to the AD environment then reads files in a particular folder.  This is <strong>not</strong> a user browsing for a file and attaching it (e.g. using carrierwave or something similar).  </p>
  
  <p>I was thinking something along the lines of LDAP and have used the net-ldap gem to access active directory tree before (for querying user data via AD attributes, e.g. GivenName).  I guess this would need something similar.  </p>
  
  <p>I think it would be fair easier to write a script in windows script to do the same but wanted to be able to rule out being able to do this with ruby first.  </p>
  
  <p>Many thanks,</p>