Hi,

I am not Bill, and I don't know much about the .Net CAS Client, but 
using HTTPS with localhost is usually problematic.  Create 
certificate(s) with actual hostnames and make sure that they are trusted.

Adam

Ganjoo, Vishal wrote:
>
> Hi Bill,
>
>  
>
> I have installed Clearpass Extension and the 
> http://github.com/wgthom/CasOwa
>
> client on IIS server successfully.
>
> Also followed the step in the wiki page by 'Francisco Estanqueiro'
>
> http://www.ja-sig.org/wiki/pages/viewpage.action?pageId=29133913
>
>  
>
> Also, I am using IIS 7. So I have installed ClearPass on Tomcat (443), 
> CASOWA
>
> Client on IIS7 and Outlook owa on the same localhost. I have also 
> created a SSL
>
> certificate for localhost and added in JVM for tomcat and in the IIS 7 
> server.
>
>  
>
>  
>
> Now, I am trying to do the following step, when I try:
>
>  
>
> https://localhost/coa/auth
>
>  
>
> it redirects me to (which is correct)
>
>  
>
> https://localhost:8443/cas/login?service=https%3a%2f%2flocalhost%2fcoa%2fauth
>
>  
>
> After I login, Here is the error I get:
>
>  
>
> HttpContext.Current.User is null.  Check that the DotNetCasClient is 
> mapped and
>
> configured correctly in <web.conf>
>
> Description: An unhandled exception occurred during the execution of the
>
> current web request. Please review the stack trace for more 
> information about
>
> the error and where it originated in the code.
>
>  
>
> Exception Details: System.Web.HttpException: HttpContext.Current.User 
> is null. 
>
> Check that the DotNetCasClient is mapped and configured correctly in 
> <web.conf>
>
>  
>
> Source Error:
>
> Line 139:
>
> Line 140:            // Retrieve a Proxy Ticket for ClearPass
>
> Line 141:            var proxyTicket = 
> user.GetProxyTicketFor(ClearPassUri);
>
>  
>
>  
>
>  
>
> HEre is my web.config settings...
>
>  
>
> <?xml version="1.0" encoding="UTF-8"?>
>
> <configuration>
>
> <configSections>
>
>   <section name="casClientConfig"
>
> type="DotNetCasClient.Configuration.CasClientConfiguration, 
> DotNetCasClient" />
>
> ...
>
> ...
>
> ..
>
> <appSettings>
>
>   <add key="CasOwa.ClearPassUrl"
>
> value="https://localhost:8443/cas/clearPass"; />
>
>   <add key="CasOwa.OwaUrl" value="https://localhost/owa"; />
>
>   <add key="CasOwa.skipOwaUrlCertificateValidation" value="true" />
>
>   </appSettings>
>
>  
>
> ...
>
> ..
>
> ...
>
>  
>
> <casClientConfig casServerLoginUrl="https://localhost:8443/cas/login";
>
> serverName="https://localhost"; secureUriRegex="(?i)/auth"
>
> casServerUrlPrefix="https://localhost:8443/cas/";
>
> redirectAfterValidation="false" useSession="true" gateway="false" 
> renew="false"
>
> ticketValidatorName="Cas20" ticketTimeTolerance="5000" 
> singleSignOut="false"
>
> proxyGrantingTicketReceptor="true"
>
> proxyCallbackUrl="https://localhost/coa/proxyCallback";
>
> proxyReceptorUrl="/coa/proxyCallback" />
>
>  
>
> ...
>
> ...
>
> ...
>
> ..
>
>  
>
>   <authentication mode="None" />  
>
> <httpHandlers>
>
>   <remove verb="*" path="*.asmx" />
>
>   <add verb="*" path="*.asmx" validate="false"
>
> type="System.Web.Script.Services.ScriptHandlerFactory, 
> System.Web.Extensions,
>
> Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
>
>   <add verb="*" path="*_AppService.axd" validate="false"
>
> type="System.Web.Script.Services.ScriptHandlerFactory, 
> System.Web.Extensions,
>
> Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
>
>   <add verb="GET,HEAD" path="ScriptResource.axd"
>
> type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions,
>
> Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
>
> validate="false" />
>
>  </httpHandlers>
>
> ...
>
> ...
>
> httpModules>
>
>   <add name="ScriptModule" type="System.Web.Handlers.ScriptModule,
>
> System.Web.Extensions, Version=3.5.0.0, Culture=neutral,
>
> PublicKeyToken=31BF3856AD364E35" />
>
> </httpModules>
>
> ...
>
> ..
>
> ..
>
>  <modules>
>
>    <remove name="ScriptModule" />
>
>   <add name="ScriptModule" preCondition="managedHandler"
>
> type="System.Web.Handlers.ScriptModule, System.Web.Extensions, 
> Version=3.5.0.0,
>
> Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
>
>   <remove name="DotNetCasClient" />
>
>   <add name="DotNetCasClient"
>
> type="DotNetCasClient.CasAlternateAuthModule,DotNetCasClient" />
>
>   </modules>
>
>  ...
>
> ..
>
> ..
>
> ..
>
> .
>
> <handlers>
>
>                 <remove name="WebServiceHandlerFactory-Integrated" />
>
>                 <remove name="ScriptHandlerFactory" />
>
>                 <remove name="ScriptHandlerFactoryAppServices" />
>
>                 <remove name="ScriptResource" />
>
>  
>
>    <add name="Auth_Handler" path="auth" verb="*"
>
> type="CasOwa.CasOwaAuthHandler" modules="ManagedPipelineHandler"
>
> scriptProcessor="" resourceType="Unspecified" requireAccess="Script"
>
> allowPathInfo="false" preCondition="" responseBufferLimit="4194304" />
>
>     <add name="DotNetCasProxyCallback" path="proxyCallback" verb="*"
>
> type="CasOwa.CasOwaAuthHandler" modules="ManagedPipelineHandler"
>
> scriptProcessor="" resourceType="Unspecified" requireAccess="Script"
>
> allowPathInfo="false" preCondition="integratedMode"
>
> responseBufferLimit="4194304" />
>
>                 <add name="ScriptHandlerFactory" verb="*" path="*.asmx"
>
> preCondition="integratedMode"
>
> type="System.Web.Script.Services.ScriptHandlerFactory, 
> System.Web.Extensions,
>
> Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
>
>                 <add name="ScriptHandlerFactoryAppServices" verb="*"
>
> path="*_AppService.axd" preCondition="integratedMode"
>
> type="System.Web.Script.Services.ScriptHandlerFactory, 
> System.Web.Extensions,
>
> Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
>
>                 <add name="ScriptResource" verb="GET,HEAD" 
> path="ScriptResource.axd"
>
> preCondition="integratedMode" 
> type="System.Web.Handlers.ScriptResourceHandler,
>
> System.Web.Extensions, Version=3.5.0.0, Culture=neutral,
>
> PublicKeyToken=31BF3856AD364E35" />
>
>  </handlers>
>
> ....
>
> ..
>
>  
>
>  
>
> Can you please Help!!! and let me know what I am missing.
>
>  
>
>
> DISCLAIMER Important! This message is intended for the above named 
> person(s) only and is CONFIDENTIAL AND PROPRIETARY. If you are not the 
> intended recipient of this e-mail and have received it in error, 
> please immediately notify the sender by return email and then delete 
> it from your mailbox. This message may be protected by the 
> attorney-client privilege and/or work product doctrine. Accessing, 
> copying, disseminating or re-using any of the information contained in 
> this e-mail by anyone other than the intended recipient is strictly 
> prohibited. Finally, you should check this email and any attachments 
> for the presence of viruses, as the sender accepts no liability for 
> any damage caused by any virus transmitted by this email. Thank you.
> -- 
> You are currently subscribed to [email protected] as: 
> [email protected]
> To unsubscribe, change settings or access archives, see 
> http://www.ja-sig.org/wiki/display/JSG/cas-user

-- 
You are currently subscribed to [email protected] as: 
[email protected]
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-user

<<attachment: arybicki.vcf>>

Reply via email to