# IIS and ActiveDirectory integration

**URL:** <https://www.ruby-forum.com/t/iis-and-activedirectory-integration/144503>\
**Category:** Rails\
**Created:** [July 30, 2008, 1:12pm UTC](https://www.ruby-forum.com/t/iis-and-activedirectory-integration/144503 "2008-07-30T13:12:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![acras](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/f4b2a3/32.png) [@acras](https://www.ruby-forum.com/u/acras)\
**Post date:** [July 30, 2008, 1:12pm UTC](https://www.ruby-forum.com/t/iis-and-activedirectory-integration/144503/1 "2008-07-30T13:12:48Z")

</div>

Hi,

Does anyone has experienced or know something about RoR running under  
IIS  
with Active Directory authentication?

Thanks

Ricardo A.  
removed\_email\_address@domain.invalid  
Acras Sistemas  
+55+41-3232-6404  
[www.acras.net](http://www.acras.net)

---

<div class="post-metadata">

**Author:** ![acras](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/f4b2a3/32.png) [@acras](https://www.ruby-forum.com/u/acras)\
**Post date:** [July 30, 2008, 1:18pm UTC](https://www.ruby-forum.com/t/iis-and-activedirectory-integration/144503/2 "2008-07-30T13:18:42Z")

</div>

On Wed, Jul 30, 2008 at 9:11 PM, Ricardo A. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> Does anyone has experienced or know something about RoR running under IIS  
> with Active Directory authentication?

Yes, it works.

But it is two different problems.

If you want your rails app to authenticate via AD, then you are best  
to use the LDAP active directory interface through the ruby net/ldap  
library. This works well with only a few gotchas, the biggest one is  
that you have to reformat the password into a quoted unicode value.  
There are writeups on how to authenticate with AD through ruby’s  
net/ldap, so I won’ go into it here.

On the IIS integration, do a google and find the IIS Rails write ups,.  
I followed that to get it working. But believe me, you will have  
more joy with Apache and Mongrel’s on Windows. I found it a lot  
easier and on the one place where I had to use IIS, ended up getting  
agreement to switch to mongrels and apache and get rid of IIS.

Regards

Mikel

–

> **[Mikel Lindsaar](https://lindsaar.net/)**
>
> Internet Home for Mikel Lindsaar

Rails, RSpec and Life blog…

---

<div class="post-metadata">

**Author:** ![acras](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/f4b2a3/32.png) [@acras](https://www.ruby-forum.com/u/acras)\
**Post date:** [July 30, 2008, 2:26pm UTC](https://www.ruby-forum.com/t/iis-and-activedirectory-integration/144503/3 "2008-07-30T14:26:08Z")

</div>

IIS and Rails is discussed in the book “Deploying Rails Applications”.  
Don’t bother. Instead, use Apache + Mongrels. You can then proxy  
requests  
through ISA server or through IIS using ISAPI\_Rewrite.
