<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"Segoe UI";
        panose-1:2 11 5 2 4 2 4 2 2 3;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
        {mso-style-priority:99;
        mso-style-link:"Plain Text Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Segoe UI","sans-serif";
        mso-fareast-language:EN-US;}
span.PlainTextChar
        {mso-style-name:"Plain Text Char";
        mso-style-priority:99;
        mso-style-link:"Plain Text";
        font-family:"Segoe UI","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-IN" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoPlainText">Thanks Peter for guiding me, it’s a great help, but no logs are generated for this in Tomcat.
<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">I have done the below steps, please let me know if I have done something wrong. Please note that I am trying to connect to SQL server rather than MYSQL.<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoNormal">1. Copied source from <span style="font-size:10.0pt;font-family:"Segoe UI","sans-serif"">
https://vcs.ics.muni.cz/repos/shibboleth<o:p></o:p></span></p>
<p class="MsoPlainText">2. Created tagishauth.jar as per instructions given in "Makefile.txt"<o:p></o:p></p>
<p class="MsoPlainText">3. Copied this file into Shib2IdP\lib folder<o:p></o:p></p>
<p class="MsoPlainText">4. Rebuilt war file by executing install.bat again<o:p></o:p></p>
<p class="MsoPlainText">5. Downloaded SQL data provider and copied sqljdbc4.jar to CaptiveTomcat 6.0\lib folder<o:p></o:p></p>
<p class="MsoPlainText">6. Done following changes in the login.xml file<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">ShibUserPassAuth {<o:p></o:p></p>
<p class="MsoPlainText"> com.tagish.auth.DBLogin required debug=true <o:p>
</o:p></p>
<p class="MsoPlainText"> dbDriver="com.microsoft.sqlserver.jdbc.SQLServerDriver"
<o:p></o:p></p>
<p class="MsoPlainText"> dbURL="jdbc:sqlserver://<db server ip>;user=<UserName>;password=<Password>;database=<DBName> "
<o:p></o:p></p>
<p class="MsoPlainText"> userTable="Users" <o:p></o:p></p>
<p class="MsoPlainText"> userColumn="userName" userPasswd="userPassword";<o:p></o:p></p>
<p class="MsoPlainText"> <o:p></o:p></p>
<p class="MsoPlainText">};<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">7. Created table named "Users" in SQL server with 2 columns userName & userPassword and entered recor with password in plain text format.<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">Thanks,<o:p></o:p></p>
<p class="MsoPlainText">Priyanka<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText"><span lang="EN-US" style="mso-fareast-language:EN-IN">-----Original Message-----<br>
From: users-bounces@shibboleth.net [mailto:users-bounces@shibboleth.net] On Behalf Of Peter Schober<br>
Sent: 11 November 2013 18:33<br>
To: users@shibboleth.net<br>
Subject: Re: How to setup Shibboleth authentication using database</span></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">* Priyanka W Dhoble <<a href="mailto:Priyanka.Dhoble@bitwiseglobal.com"><span style="color:windowtext;text-decoration:none">Priyanka.Dhoble@bitwiseglobal.com</span></a>> [2013-11-11 13:44]:<o:p></o:p></p>
<p class="MsoPlainText">> Thanks Peter. But somehow its not working and I am not able to debug
<o:p></o:p></p>
<p class="MsoPlainText">> it as no logs are created. Can you please let me know debugging steps
<o:p></o:p></p>
<p class="MsoPlainText">> for this.<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">Getting logs from the servlet container are probably your best bet.<o:p></o:p></p>
<p class="MsoPlainText">-peter<o:p></o:p></p>
<p class="MsoPlainText">--<o:p></o:p></p>
<p class="MsoPlainText">To unsubscribe from this list send an email to <a href="mailto:users-unsubscribe@shibboleth.net">
<span style="color:windowtext;text-decoration:none">users-unsubscribe@shibboleth.net</span></a><o:p></o:p></p>
</div>
</body>
</html>