.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

Tomcat Windows Integrated Authentication fails with More than 1 Web Application

Posted By:      Posted Date: April 14, 2011    Points: 0   Category :

Hi all,

I’m using Tomcat 5.5.23 on a Windows server 2003 (64 bit).

Tomcat runs as a window service, using an Active Directory account.

DB is configured to Windows Authentication mode alone.


Tomcat contains 2 web applications.

The DLL’s (sqljdbc_auth.dll) location is the value of Tomcat’s –Djava.library.path parameter.



The container loads, the first web application loads and successfully establishes a connection to the DB,

But the second web application fails to connect to DB, prompting:

 com.microsoft.sqlserver.jdbc.SQLServerException: This driver is not configured for integrated authentication.



When loading tomcat with only a single web application (either one), the web application successfully connect to the DB.

This is why I don’t think the reason is at web.xml.


Any idea?


Thanks, Itamar

View Complete Post

More Related Resource Links

Tomcat Windows Integrated Authentication fails with More than 1 Web Application


please check related topic in SqlDataAccess forum.


Thanks, Itamar

Possibility of Windows authentication in Windows application

Hi, I have developed Windows form application( C#). I need to authenticate user using Windows Authentication mode. i.e When a user tries to access the developed Windows form application , the windows authentication log on screen should pop up asking for the user credentials ( user name , user password, domain). Our requirement is to use the default windows logon screen which generally pops up to get the user credential instead of the custom developed logon screen.This is similar to Windows authentication in ASP.Net but for Windows form application , Is it possible to authenticate user using Windows authentication mode? If so how?

Using Windows Authentication for connecting sql server from web application using froms authenticati

Hi Experts, I have one web application which is configured to be use froms authentication. But, I don't want to use SQL Authentication to connect to SQL server, I want to use windows authentication. Can somebody plase give me detailed setps for how to implement this? Thanks for your help in advance. -Chintak. 

Integrated Windows Authentication

Hello,          I want to give access to one my web pages to only one User. That user is not entering his RACFID anywhere in dot net application.I want to get that RACFID and I want to validate that RACFID before entering to that web page.Can anyone help meTIA

Passing Credentials to IIS "Integrated Windows authentication" Protected Directory

Hello All,I have set up a directory on my IIS web server that is protected by "Integrated Windows authentication".  I want visitors to be required to enter a name and password to view files in the protected directory except if they are following a link to files in the protected directory from a certain page on my website.I am doing this to try to get better protection from search engine spidering than is provided by using a robots.text file. I am using ASP.NET 3.5 with VB.  I am wondering if there is a way to pass the log on credentials to the IIS server via a link, or if there is a way to fill in the name and password for the login screen automatically, or something else that would work.  It is OK if the login name and password are visible to the visitors.Any suggestions on how to do this would be appreciated or if there is a better way to accomplish what I am trying to do, I would like to know.Thanks 

Customize windows authentication for Web Application

Hi All, I am using Windows Integrated Authentication with impersonation for all my web applications (on IIS 7 and 7.5), and everything is perfect. Now I would like to enhance the authentication procedures bypassing the login prompt from IIS, and supplying a custom page to collect the Username + Password inputs from Users, but still mantaining the Windows Authentication support (I rely on the WindowsPrincipal in my application for many core activities). I just would like to replace the IIS popup with my custom authentication page. First of all I have tried to mix the WIA with Forms Authentication, but - even if I succeed in authenticating users against the Active Directory - the result is not what I was looking for, because I want to mantain Windows Authentication and not migrating the mechanism to Forms Authentication (even if implemented with the AD provider). The first step I am trying is to use the "LogonUser" function to create the correct WindowsPrincipal and then the "Impersonate" method, but after this step I have no idea about how to persist the authentication data and\or to pass the User information to the Windows Authentication. As a result, when I execute the first redirection to another page the information about the user manually logged are lost.   Any idea? Thank You very much in advance. Alberto

IIS 6 Windows Authentication + ASP.NET Impersonation when application resides on a UNC share

When the application resides on a local folder, the current user ((System.Threading.Thread.CurrentPrincipal.Identity.Name) is the windows authenticated user. OK. But..when the application resides on a UNC share, the current user is the windows user configured in IIS virtual directory to access the UNC share. This is not the desired behavior in my case, what I want is to have the same behavior as in the case where the application is in a local folder (current user matches the windows authenticated user)This is configurable in some way in IIS 6 or IIS 7?   thanks in advance,Alexander Wolff  

how to change the web application Database connection form Windows authentication to SQL Server acco

Hi, I have a web application created and Database connection authentication was given as Windows authentication. how can i change it to a SQL server account in MOSS 2007. Thanks in advance.

Enabling Windows Authentication to SQL Server using Application Pool Credentials

I have created a WCF Service (VS2008), an application pool account which has the access to the SQL Server(in remote machine). Configured the App Pool account to the Virtual Directory in IIS (Version 6.0). Once I browse through the SVC file, I can see the WSDL file. I have the "Windows Authentication" and the 'Anonymous authentication" Checked in the Properties for the Virtual Directory. But when I access service through Client, I get "The HTTP request is unauthorized with client authentication scheme 'Anonymous'. The authentication header received from the server was 'Negotiate,NTLM'.". Binding that is being used is HTTPBinding. I have set the Identity Impersonate to True as well. Bottom line is - I need to use the App Pool account to connect to the SQL Server. Could some one please help me in this?  

SQL Server 2008 Windows Authentication Mode fails for Database Engine, error 18456

I installed SQL Server 2008 Developer Edition (10.0.1600.22.080709-1414) on a Windows Vista 32-bit development machine with Windows Authentication Mode only (no SQL Server Authentication).   Since this is a development machine, I saw no need for Mixed Mode when I did the install.  The SQL Server Management Studio allows me to login to Analysis Services, Integration Services, Reporting Services, BUT NOT the Database Engine!Windows Authentication for the Database Engine gives the following error: EventID: 18456Login failed for user MYDOMAIN\MYLOGIN'. Reason: Token-based server access validation failed with an infrastructure error. Check for previous errors. [CLIENT: <local machine>]The 'fix' I have found online is to login as SA in SQL Server Authentication mode & add MYDOMAIN\MYLOGIN as a administrator for the Database Engine.  Unfortunately, I can't since I didn't install SQL Server Authentication mode (only Windows Authentication Mode).  It appears my only recourse is to uninstall, then reinstall in Mixed mode, then to login as SA in SQL Server Authentication mode & add MYDOMAIN\MYLOGIN as a administrator for the Database Engine. Before I do so, does anyone know of a better approach?Scott D Duncan

Authorization Manager (AzMan) as role provider with Windows integrated authentication in SharePoint


Hi all,

First I will describe my environment: Windows Server 2008 R2 x64, IIS 7, SQL Server 2008 and MOSS 2007 Enterprise Edition SP2 x64.

I am trying to setup SharePoint 2007 portal to use Windows integrated authentication with Authorization Manager (AzMan) as role provider.

I have set up an authorization store and defined a set of roles in there. Further I configured the web.configs of my SharePoint environment to use AzMan as role provider.

In IIS I see the roles appearing, but unfortunately those roles are not available in my SharePoint portal. I also see notification in IIS stating that Forms authentication has to be used

What should I do to configure it correctly? Is it even possible to use AzMan with Windows authentication in SharePoint 2007?

Thanks in advance.

With kind regards,




windows integrated authentication


I want to use windows integrated authentication but I'm a bit confused about how it works.

How do you refer to the logged in user in code when (for example) creating/editing records.
I currently use a session variable which I set to the users id in my Users table and then refer to it like this:

    <asp:SessionParameter SessionField="userID" Type=Int32

PreAuthenticate, 401's, Integrated windows authentication


In a .NET 2.0 web-service on IIS 6.0, does setting the client proxy's PreAuthenticate property to true when using Integrated security (Windows authentication) remove the 401 errors that cause multiple round trips ?


I've saw .NET 1.1 articles that said PreAuthenticate doesnt work with windows authentication:



but haven't found anything to say its fixed in .NET 2.0



Website Windows Authentication fails when enabling SQL Mixed Mode.


Hello all,

Just to describe the scenario. I have a website. This lives on a webserver. On that webserver is an SQL server. The website connects to this database using windows authentication. I have written a windows form application that connects to the SQL Server on the webserver. This application is being run from a location on out intranet. The Winform application use SQL authentication to connect to the database. The SQL Server didn't have mix mode authentication enabled. So I enabled it. The winform application could now connect to the SQL Server.

This is where it starts getting a little strange.

The Website that was already connecting find using integrated authentication starts failing with:

Login failed for user 'NT AUTHORITY\NETWORK SERVICE'

When you are enabling mixed mode authentication, you are adding another authentication method, why would the original Windows authentication fail?

Thanks for any suggestions and sorry if this is completely the wrong place to be asking this question,


Windows Integrated Authentication and Kerberos delegation.


I currently have 2 seperate domains.

Domain A

Domain B


No domain trust has been establish.


In this scenario, if user is connected to Domain A via its desktop. Is there a way to access to a SQL Server in Domain B without using SQL authentication.


I heard of kerberos but would that solve my issues ?




IIS 6.0 hosted WCF webHttpBinding endpoint and Integrated Windows Authentication


the intranet application that I'm developing uses REST WCF endpoints (webHttpBinding). The endpoints are called by the client webbrowser through javascript XHR requests.  The WFC service is hosted in a website running on IIS 6.0 (AD domain member). The webapplication runs within an AD domain and uses integrated Windows authentication.

I use the following setup/configuration:

- I disabled anonymous access for the website  and enabled Integrated Windows Authentication.
- I added an Access control entry (read/Execute) to the website root directory for the Authenticated 
  Users group.
- The WCF service is configured for ASP.NET compatibility mode because I need access to the session
- I enabled POST, DELETE, PUT and GET http methods for the .SVC file extension in IIS.
- I use the following webhttpbinding configuration:

        <binding name="TestWebHttpBindingConfiguration"  maxReceivedMessageSize="16777216">
          <readerQuotas maxArrayLength="16777216" maxStringContentLength="16777216"/>
          <security mode="TransportCredentialOnly">
            <transport clientCredentialType="Windows" proxyCredentialType="Windows"/>

Reg How to create a setup for windows application with integrated database (.mdf)


Hi All,

 How to generate the setup file for windows application (VS 2008) and how to install the SQL server (2005) at client system. Should i install complete SQL Server or anything else..? or Can i integrate the database file (.mdf) into setup file...   Before install these setup at client system, should i install .NET 3.5 framework..?

Please Help me....



Balaji Chandaka.

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend