[Mono-devel-list] authentication mode "Windows"

Kolanowski, Jawan kolanowski at dresearch.de
Wed Jul 27 06:28:45 EDT 2005


Hi,

I try to migrate a web application (asp.net) from iis to mod_mono 1.0.6
with apache 2.0.53. The web application uses 'Context.User.Identity'.
The authentication was performed by the iis (ntlm) against a active
directory. On the apache i've configured digest authentication with
ldap.

apache configuration extract:
  ...
  <Location /WebApplication>
    SetHandler mono

    AuthType Basic
    AuthName "WebApplication"
    AuthLDAPURL
ldap://dc.somewhere.org:389/OU=User,DC=somewhere,DC=org?sAMAccountName?s
ub?
    AuthLDAPBindDN "ldapquery at somewhere.org"
    AuthLDAPBindPassword "****"
    require valid-user
  </Location>
  ...

web.config extract:
  ...
  <authentication mode="Windows" />
  <identity impersonate="false" />
  ...

The authentication with the apache works fine but the web application
gets no authenticated 'Identity' object ('Identity.IsAuthenticated ==
false && Identity.Name == ""'). At least I need the name of the
authenticated account ('Identity.Name'). What's wrong?

Thanks





More information about the Mono-devel-list mailing list