Re: ASP.NET and LDAP Connection

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



On 22 oct, 20:17, Alexey Smirnov <alexey.smir...@xxxxxxxxx> wrote:
On Oct 22, 10:26 pm, schtroum...@xxxxxxxxxxx wrote:

Hi,
I have developed an internal application in ASP.NET 2.0/C# that is
using an LDAP connection. Basically, I am getting the LDAP users to
match some user’s roles and rights that I have in SQL 2005 tables.

When I am testing the application locally this is working perfectly. I
have place the application on an internal test server (inside the same
domain) and we found out that we needed to unchecked the “Enable
anonymous access” option in the Authentication Methods in IIS to make
it work. Otherwise, it was not loading the website.

The anonymous access option enabled the IIS do not perform any
authentication check and the token represents the anonymous user
IUSR_MACHINENAME (IUSR account on IIS7) which probably has no access
to LDAP.



My next step was to create a deployed the application in a production
environment using the same LDAP connection and SQL database with the
“enable anonymous access” unchecked. The application is working
perfectly except that we needed to add a port number to the alias name
created to make it works.

I.e.: Our NT Server name ishttp://AAA/BBB/234.aspxandthe DNS alias
name ishttp://Production/234.aspx.
But to make it work in that environment we need to created the alias
like thishttp://Production:555/234.aspx.

There are already 3 applications on that server and 2 of them need to
have the port number in the alias.

I think I am not really understand the problem. Do you mean that the
first server ishttp://productionand each new site has to have a port
number in the url? This can be solved by using host headers. Isn't it?



Anybody have an idea why we need to add that information to run the
website? And how could we resolved that minor problem?

Thanks in advance

Thanks for your answer but we finally find out what was our problem.
The LDAP was not communicating because some guys just unchecked the
enabled HTTP Keep-Alives Options in the Connections panel in the
Website properties of the website.
.



Relevant Pages

  • Any way to get LDAP parameters from Exchange?
    ... I recently got a Lexmark X642E printer and am trying to configure LDAP ... LDAP CONNECTION ATTEMPT: SUCCESS ... LDAP AUTHENTICATION SETTINGS ERROR: No results were found in the ... specified Object Classes with the specified Search Attributes. ...
    (microsoft.public.exchange.admin)
  • Re: [opensuse] nss_ldap: could not search LDAP server [solved]
    ... I used Yast LDAP Client to setup a LDAP connection ...
    (SuSE)
  • Re: Error No matching domain found for 5001 in sssd_nss.log
    ... ldap server has been an interesting experience. ... have it right since getent passwd does not display the ldap users but ... authenticate is 5001 so that must be coming back from the ldap server. ...
    (Fedora)
  • Re: Error No matching domain found for 5001 in sssd_nss.log
    ... ldap server has been an interesting experience. ... have it right since getent passwd does not display the ldap users but ... authenticate is 5001 so that must be coming back from the ldap server. ...
    (Fedora)
  • php ldap & sso
    ... i'd like to protect some parts of a website, using ldap to athenticate ... their individual rights on my website. ... store the whole userinformation in a session / a cookie? ...
    (php.general)