Windows authentication on every ajax call MVC

I've created an MVC project with windows authentication.
From my views, I use Jquery to retrieve data from the controller asynchronously in order to provide a better user experience and reduce loading times.
These functions look like
public JsonResult someFunction(string parameter)
return Json(result, JsonRequestBehavior.AllowGet);
Everythings works as I want in Chrome, where it prompts me for login when I open the page and no more for the duration of that session. However, in IE, it prompts me for login when I open the page, and on every single ajax call...
Why is this happening and how can I avoid it?
I need to use windows authentication and IE, I can't change that...

Hello,
In order to get your issue solved more efficiently and since this is a MVC issue, I would recommend you post this issue in
http://forums.asp.net/1146.aspx/1?MVC forum to get supports.
Thanks for your understanding.
Regards,
Carl
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.

Similar Messages

  • Calling Stored Procedure with Windows Authentication SSIS 2012

    We are upgrading to SQL Server 2012 and our SSIS Packages are failing with: "The operation cannot be started by an account that uses SQL Server Authentication. Start the operation with an account that uses Windows Authentication. Error on line 215:
    (SQR 3913) Could not EXECUTE stored procedure."
    I understand that we need to change over to Windows Authentication but not sure how to authenticate with windows. Our stored procedures are called from an SQR (
    Structured Query Reporter)
    Here is the code:
    begin-procedure Download-Data
    EXECUTE DO=LT_REPORT_SSIS_MSG
    LT_INTERFACE..LT_AR_CUSTOMER_SSIS $business_unit
    INTO &SSIS_MSG char(120)
    end-procedure Download-Data
    Any help would be greatly appreciated!

    The question is how SQR allows it. Thus it becomes not SSIS related
    Arthur My Blog

  • Ajax call returns 200 in IE but 0 in firefox 3.6.8

    firefox gets a xmlHttpRequest status 0 for the ajax call for which IE6 get a 200 . The code runs perfectly under IE6. fails (xmlhttprequest==200) in ajax
    == This happened ==
    Every time Firefox opened
    == testing ajax code

    I got the same issue, but with Firefox 12. I use this code to call my COMET server:
    function getXmlHttpRequestObject() {
    if (window.XMLHttpRequest) {
    //document.getElementById("_receivedMsgLabel").innerHTML += "Non-microsoft xmlHttpRequest object created.<br/>";
    alert("Non-microsoft xmlHttpRequest object created.");
    return new XMLHttpRequest();
    else if (window.ActiveXObject) {
    //document.getElementById("_receivedMsgLabel").innerHTML += "Microsoft xmlHttpRequest object created.<br/>";
    alert("Microsoft xmlHttpRequest object created.");
    return new ActiveXObject("Microsoft.XMLHTTP");
    else {
    alert("Status: Could not create XmlHttpRequest Object. Consider upgrading your browser.");
    //document.getElementById("_receivedMsgLabel").innerHTML += "Status: Could not create XmlHttpRequest Object. Consider upgrading your browser.<br/>";
    var sendReq = getXmlHttpRequestObject();
    var receiveReq = getXmlHttpRequestObject();
    var lastMessage;
    var mTimer;
    //Gets the server response:
    function getResponse() {
    document.getElementById("_receivedMsgLabel").innerHTML += "getResponse() called.<br/>";
    if (receiveReq.readyState == 4 || receiveReq.readyState == 0) {
    //if (receiveReq.readyState == 0) {
    //receiveReq.open("POST", 'http://tardis:1802', true, "server", "server123");
    //receiveReq.open("POST", 'http://localhost:1802', true, "server", "server123");
    //receiveReq.open("POST", 'http://holit109:1802', true, "server", "server123");
    //receiveReq.open("POST", "http://localhost:1802", true, "server", "server123");
    receiveReq.open("POST", "http://L45723:1802", true, "server", "server123"); //must use this URL at work.
    receiveReq.onreadystatechange = handleReceiveMessage;
    alert("handleReceiveMessage assigned to onreadystatechange event.");
    receiveReq.setRequestHeader("Content-Type", "text/x-json");
    receiveReq.timeout = 0;
    var currentDate = new Date();
    var sendMessage = JSON.stringify({
    SendTimestamp: currentDate,
    Message: "Message 1",
    Browser: navigator.appName
    //receiveReq.send("<?xml version='1.0'?><Request><Command>Queue</Command><User>user1</User><Message>Message 1</Message><Message>Message 2</Message><Message>Message 3</Message></Request>");
    alert("JSON message created. About to send...");
    receiveReq.send(sendMessage);
    alert("Message sent.");
    //function for handling the return message from Comet
    function handleReceiveMessage() {
    if (receiveReq.readyState == 4) {
    document.getElementById("_receivedMsgLabel").innerHTML += "Message received!<br/>";
    var status = receiveReq.status;
    //document.getElementById("_receivedMsgLabel").innerHTML += "Status received!<br/>";
    var txt = receiveReq.responseText;
    var receivedMsg = JSON.parse(txt);
    document.getElementById("_receivedMsgLabel").innerHTML += receivedMsg.Message + "<br/>";
    //var receivedTime = new Date();
    //alert("Got current date.");
    //alert(receivedTime);
    //var receivedTime_ms = receivedTime.getTime();
    //alert("Got time message received in ms.");
    //alert(receiveReq.SendTimestamp);
    //var sentTime_ms = getDateFromFormat(receiveReq.SendTimestamp, "dd/MM/yyyy HH:mm:ss");
    //var sentTime = new Date(receiveReq.SendTimestamp);
    //alert("Got time message sent in ms.");
    //var sentTime_ms = sentTime.getTime();
    //var difference_ms = receivedTime_ms - sentTime_ms;
    //document.getElementById("_receivedMsgLabel").innerHTML += "Comet took " + difference_ms + " ms.<br/>";
    mTimer = setTimeout("getResponse();", 0);
    getResponse();
    The handleReceiveMessage() event handler is called, but there is no data returned in the responseText property of the xmlHttpRequest object.
    Why?
    This works fine in IE9.

  • How to handle jquery and ajax call in single page application using coded ui

    Hi,
    I am facing a very tricky situation while using coded ui. My application interact with ajax and I was facing the issue to handle the ajax in the login page and other pages. I went through the post : http://stackoverflow.com/questions/17849074/jquery-ajax-success-not-getting-triggered-with-coded-ui-test-project 
    and got solution for my problem. Now when ever a ajax is getting called in the page its getting handle with app config file. However the issue I am facing right now is. 
    When i click on a button a window will appear which is actually a "div tag". Please see the image below. In  the that window when I have to select a item from drop down, the ajax will get called, however it will get called only for the window,
    it wont be called for the entire page.. i.e. it will update only the window. I am not able to handle this ajax call, script gets stuck in refresh state. I will request you guys to provide a work around for it.
    I would like to add more details - Visual studio version - 2013 update 3, IE11. 
    Application details: Its a single page application which uses bootstrap framework. All the ajax call are dynamic.
    Thanks in advance.

    Thanks for the reply.
    The window is not exactly a pop up window. Its a div tag in the same page. As this is my first time to work on  a single page application I am not sure how it works. For the entire page I am able to handle the ajax call however the action performed
    in the div tag is not getting handled.
    Code for the window, I am not sure to what extend will it be helpful.
    <div class="modal-content"><div class="modal-header"><div class="bootstrap-dialog-header"><div class="bootstrap-dialog-close-button" style="display: none;"><button class="close">×</button></div><div
    class="bootstrap-dialog-title">Move Item to different task [FocusAudit]</div></div></div><div class="modal-body"><div class="bootstrap-dialog-body"><div class="bootstrap-dialog-message"><div><div
    id="dashboard">
      <table class="TFtable">
        <tbody><tr>
          <td colspan="2">
                You are about to move the  24 selected item item to a different task. Select the task to which to move this item, (Optionally) enter notes about the task change, and click 'Change' to continue.
              </td>
        </tr>
        <tr>
          <td>Select New WorkFlow:</td>
          <td><select class="form-control" id="MA_workflow" onchange="ChangeWorkFlow()"><option value="647446014">Batches<option value="647446007">Claim<option value="647446065"
    selected="">Workflow1</option></select></td>
        </tr>
        <tr>
          <td>Select New Task:</td>
          <td><select class="form-control" id="MA_actions"><option value="647446025">BatchRebuild</option><option value="647446054">Complete</option><option value="647446039">DataIntegrityCheck</option><option
    value="647446038">FocusAudit</option><option value="647446053">FocusAuditMiner</option><option value="647446037">FocusAuditSelect</option><option value="647446055">LocationRouter</option><option
    value="647446029">MineForSBT</option><option value="647446022">OCRtoWebDE</option><option value="647446024">OnePass</option><option value="647446049">OnePassRouter</option><option
    value="647446050">OnePassUS</option><option value="647446060">QAuditImporter</option><option value="647446045">QIAutoAuditGrader</option><option value="647446058">QIAutoAuditInjector</option><option
    value="647446048">QIMiner</option><option value="647446040">QISampler</option><option value="647446056">QIVerify</option><option value="647446059">QIVerifyGrader</option><option
    value="647446047">QIVerifyUS</option><option value="647446021">RecoRules</option><option value="647446082">Review</option><option value="647446042">Router</option><option
    value="647446023">Validate</option><option value="647446081">Verify</option><option value="647446080">WebDEFileCreator</option></select></td>
        </tr>
        <tr>
          <td>Select New Status:</td>
          <td>
            <select class="form-control" id="MA_status">
              <option value="ready">Ready</option>
              <option value="reject">Rejected</option>
              <option value="hold">Held</option>
              <option value="ready">Keep Status From Original Task</option>
            </select>
          </td>
        </tr>
        <tr>
          <td colspan="2">Notes:</td>
        </tr>
        <tr>
          <td colspan="2">
            <textarea name="MA_statusnote" class="form-control" id="MA_statusnote" maxlength="250" rows="5" cols="40"></textarea>
          </td>
        </tr>
        <tr>
          <td style="text-align: right;" colspan="2">
            <input class="btn btn-default list-inline" id="btnSubmit" onclick="prepareData_MoveToAction();" type="button" value="Change">
            <input class="btn btn-cancel" id="btnCancel" style="padding-left: 5px;" onclick=" dialogInstance2.close();" type="button" value="Cancel">
          </td>
        </tr>
      </tbody></table>
      <div id="overlayDialog" style="display: none;">
        <div style="width: 100%; text-align: center;">
          <h1>Processing...</h1>
          <img src="Images/ajax-loader.gif">
        </div>
      </div>
      <div id="dData_MoveToAction" style="display: none;" data-itemcount="24" data-oldactionidno="647446079" data-oldstatus="ready" data-oldactionname="FocusAudit" data-fnparent="PS"></div>
    </div>
    <script id="scrpd" language="text/javascript">
      <!--
      var cworkflow =$('#MA_workflow option:selected').text();
       function initMoveToAction()
         function ChangeWorkFlow(){
           $('#overlayDialog').show(300);
        var _newworkflowname=$('#MA_workflow option:selected').text(); 
        if(cworkflow!=_newworkflowname)
         getItemType();
         cworkflow = _newworkflowname;
       function getItemType()
          var _workflowid=$('#MA_workflow option:selected').text();
           var formData = { workflowid: _workflowid}
            var sPage = './Handlers/GenericFn.ashx?action=getitemtype';
           $.ajax({
                    url: sPage,
                    type: "POST",
                    data: formData,
                    datatype: JSON,
                    success: function (data, textStatus, jqXHR) {
                    var newItemActions = jQuery.parseJSON(data);
                      $('#MA_actions').empty();
                      $.each(newItemActions, function(i, option) {
                   $('#MA_actions').append($('<option></option>').attr("value", option.Value).text(option.Key));
                         $('#overlayDialog').hide(300);
                    error: function (data) {
                      var error = jQuery.parseJSON(data.responseText)
                       SetProdSummary();
                       dialogInstance2.close();
                        ErrorMessage(error.ErrorCaption, error.ErrorDescription, error.IsCloseWindow);
            function prepareData_MoveToAction()
                 var ma_oldstatus, ma_oldactionname, ma_actionidno,ma_oldactionid, ma_statusNote,ma_itemNewStatus,ma_itemtotalno, ma_newworkflowname,ma_fnparen;
                    ma_itemNewStatus = $('#MA_status option:selected' ).val();
                    ma_actionidno=$('#MA_actions option:selected').val();
                    ma_newworkflowname=$('#MA_workflow option:selected').text();
                    ma_statusNote = $("#MA_statusnote").val();
                var params = $("#dData_MoveToAction");
                if (params.data("oldstatus"))
                    ma_oldstatus = params.data("oldstatus");
                if (params.data("oldactionname"))
                    ma_oldactionname = params.data("oldactionname");
                if (params.data("oldactionidno"))
                    ma_oldactionid = params.data("oldactionidno");
                 if (params.data("itemcount"))
                    ma_itemtotalno = params.data("itemcount");
                 if (params.data("fnparent"))
                    ma_fnparen = params.data("fnparent");
                var formData = { currentstatus: ma_oldstatus, oldactionid:ma_oldactionid,newstatus: ma_itemNewStatus, actionid: ma_actionidno, oldactionName:ma_oldactionname, statusnote: ma_statusNote,totalno:ma_itemtotalno,  newworkflowname:
    ma_newworkflowname,fnparent:ma_fnparen};            
                var sPage = './Handlers/ItemAction_MoveToAction.ashx?action=movetoaction';
                 $('#overlayDialog').show(300);
                  $('#btnSubmit').attr('disabled',true);
                  $('#btnCancel').attr('disabled',true);
                $.ajax({
                    url: sPage,
                    type: "POST",
                    data: formData,
                    datatype: JSON,
                    success: function (data, textStatus, jqXHR) {
                        SetProdSummary();
                        $('#overlayDialog').hide(300);
                       dialogInstance2.close();
                    error: function (data) {
                      var error = jQuery.parseJSON(data.responseText)
                       SetProdSummary();
                       dialogInstance2.close();
                        ErrorMessage(error.ErrorCaption, error.ErrorDescription, error.IsCloseWindow);
          -->
    </script></div></div></div></div><div class="modal-footer" style="display: none;"><div class="bootstrap-dialog-footer"></div></div></div>
    I agree the point the UI has to be active or else the script will have issue during the playback. In my scenario I have to work on that window. I have to perform action on it. Now when the window(div thing) comes up the page in the background goes disable
    till the action is performed on the window or the window is closed. I have to perform action on it then only I can proceed with the TC automation. Please let me know any option to solve this problem.
    Thanks 
    Ahetejazahmad Khan.

  • Error 18452 "Login failed. The login is from an untrusted domain and cannot be used with Windows authentication" on SQL Server 2008 R2 Enterprise Edition 64-bit SP2 clustered instance

    Hi there,
    I have a Windows 2008 R2 Enterprise x64 SP2 cluster which has 2 SQL Server 2008 R2 Enterprise Edition x64 SP2
    instances.
    A domain account "Domain\Login" is administrator on both physcial nodes and "sysadmin" on both SQL Server instances.
    Currently both instances are running on same node.
    While logging on to SQL Server instance 2 thru "Domain\Login" using "IP2,port2", I get error 18452 "Login failed. The login is from an untrusted domain and cannot be used with Windows authentication". This happened in the past
    as well but issue resolved post insatllation of SQL Server 2008R2 SP2. This has re-occurred now. But it connects using 'SQLVirtual2\Instance2' without issue.
    Same login with same rights is able to access Instance 1 on both 'SQLVirtual1\Instance1' and "IP1,port1" without any issue.
    Please help resolve the issue.
    Thanks,
    AY

    Hello,
    I Confirm that I encountred the same problem when the first domain controller was dow !!
    During a restarting of the first domain controller, i tried to failover my SQL Server instance to a second node, after that I will be able to authenticate SQL Server Login but Windows Login returns Error 18452 !
    When the firts DC restart finishied restarting every thing was Ok !
    The Question here : Why the cluster instance does'nt used the second DC ???
    Best Regards     
    J.K

  • Windows authentication failure on SharePoint 2013 zone

    I am attempting to set up a Windows authentication zone in a SharePoint 2013 installation for use by the search crawler.  The zone has been configured to use NTLM in order to eliminate Kerberos from the equation.  The result of my
    attempts to access the Windows authentication zone is a 403 error.  Central Administration is working on the same server, and of course is using Windows authentication.
    I know about the issue of using Windows authentication to localhost, and have configured the backconnectionhostnames entry in the registry.  To prove that I can use Windows authentication using the intended host name for the SharePoint zone, I have
    set up a test IIS site that binds to the host name used by the zone, and successfully authenticated using Windows authentication.
    From monitoring the ULS logs it's obvious that I'm actually successfully completing Windows authentication, and getting a SharePoint claim, but from that point I'm being denied by SharePoint.  I do know that my Windows credentials has site collection
    administrator privileges.  The most interesting failure in the ULS log appears to be:
    SPApplicationAuthenticationModule: Authorization header doesn't contain Bearer, can't try to perform application authentication.
    Another odd thing is that after the ULS indicates I have failed authentication, I'm redirected to /_layouts/AccessDenied.aspx instead of the login page defined in web.config.  I have tried many things, including enabling Kernel-mode authentication. 
    Below is an excerpt from my ULS logs:
    SPApplicationAuthenticationModule: There is no Authorization header, can't try to perform application authentication.
    Non-OAuth request. IsAuthenticated=False, UserIdentityName=, ClaimsCount=0
    [Forced due to logging gap, cached @ 12/01/2014 15:48:32.53, Original Level: Verbose] Value for isAnonymousAllowed is : {0}
    [Forced due to logging gap, Original Level: Verbose] Value for checkAuthenticationCookie is : {0}
    Claims Windows Sign-In: Sending 401 for request 'https://crawler.my.host/' because the user is not authenticated and resource requires authentication.
    [Forced due to logging gap, cached @ 12/01/2014 15:48:32.56, Original Level: VerboseEx] Sending HTTP response {0} - {1}:{2}.
    [Forced due to logging gap, Original Level: Verbose] SPRequestModule.PreSendRequestHeaders
    Leaving Monitored Scope (Request (GET:https://crawler.my.host:443/)). Execution Time=5320.19544383434
    Name=Timer Job SchedulingApproval
    Leaving Monitored Scope (Timer Job SchedulingApproval). Execution Time=16.4101862108173
    Name=Timer Job SchedulingApproval
    Leaving Monitored Scope (Timer Job SchedulingApproval). Execution Time=14.9021733209109
    Name=Timer Job SchedulingApproval
    [Forced due to logging gap, cached @ 12/01/2014 15:48:32.95, Original Level: Verbose] Completed deserializing the type named {0} and with id {1}.
    [Forced due to logging gap, Original Level: VerboseEx] SPFederationAuthenticationModule.OnEndRequest: Start
    SPFederationAuthenticationModule.OnEndRequest: User was being redirected to authenticate.
    Leaving Monitored Scope (Timer Job SchedulingApproval). Execution Time=17.2175513927049
    Claims Windows Sign-In: Sending 401 for request 'https://crawler.my.host/' because the user is not authenticated and resource requires authentication.
    Name=Request (GET:https://crawler.my.host:443/)
    Micro Trace Tags: 0 nasq
    Leaving Monitored Scope (Request (GET:https://crawler.my.host:443/)). Execution Time=9.54646470431298
    Name=Request (GET:https://crawler.my.host:443/)
    SPTokenCache.ReadTokenXml: Successfully read token XML 'mydomain\myuser'.
    Token Cache: Failed to get token from distributed cache for '0).w|s-0-0-0-0-0-0-1234'.(This is expected during the process warm up or if data cache Initialization is getting done by some other thread).
    Token Cache: Reverting to local cache to get the token for '0).w|s-0-0-0-0-0-0-1234'.
    Token Cache: Entry missing for user 'mydomain\myuser'.
    Token Cache: Failed to get token from distributed cache for '0).w|s-0-0-0-0-0-0-1234'.(This is expected during the process warm up or if data cache Initialization is getting done by some other thread).
    Token Cache: Reverting to local cache to get the token for '0).w|s-0-0-0-0-0-0-1234'.
    Claims Windows Sign-In: User 'mydomain\myuser' for request url 'https://crawler.my.host/' does not have a cached SessionSecurityToken.
    [Forced due to logging gap, cached @ 12/01/2014 15:48:33.24, Original Level: VerboseEx] We are in claims windows only mode for for request url '{0}'.
    [Forced due to logging gap, Original Level: VerboseEx] Reverting to process identity
    [Forced due to logging gap, cached @ 12/01/2014 15:48:33.71, Original Level: Verbose] Completed deserializing the type named {0} and with id {1}.
    SPSecurityContext: Added JsonWebSecurityTokenHandler to trust channel factory
    SPSecurityContext: Replaced WSTrustRequestSerializer with SPTrust13RequestSerializer
    SPSecurityContext: The SecurityTokenServiceBehavior is attached to the TrustChannel.
    SecurityTokenServiceSendRequest: RemoteAddress: 'http://localhost:32843/SecurityTokenServiceApplication/securitytoken.svc' Channel: 'Microsoft.IdentityModel.Protocols.WSTrust.IWSTrustChannelContract' Action: 'http://docs.oasis-open.org/ws-sx/ws-trust/200512/RST/Issue'
    MessageId: 'urn:uuid:f175f6ef-a93d-4efe-9173-1fba74b1eed2'
    SecurityTokenServiceReceiveRequest: LocalAddress: 'http://servername:32843/SecurityTokenServiceApplication/securitytoken.svc' Channel: 'System.ServiceModel.Channels.ServiceChannel' Action: 'http://docs.oasis-open.org/ws-sx/ws-trust/200512/RST/Issue' MessageId:
    'urn:uuid:f175f6ef-a93d-4efe-9173-1fba74b1eed2'
    Entering monitored scope (ExecuteSecurityTokenServiceOperationServer). Parent No
    STS Call: Issuing new security token.
    SPSecurityTokenServiceManager!EnsureSharePointLogonRequestClaims: Found primary sid claim. Value: 's-0-0-0-0-0-0-1234'.
    Using claim provider 'System' for operation because it is default and it is visible.
    Excluding claim provider 'AD' for operation because it is not default and .
    Using claim provider 'AllUsers' for operation because it is default and it is visible.
    Excluding claim provider 'Forms' for operation because it is not default and .
    Using claim provider 'User Profile Claim Provider' for operation because it is default and it is visible.
    STS Call Claims Windows: Setting cookie lifetime to: Microsoft.IdentityModel.Protocols.WSTrust.Lifetime
    STS Call Claims Windows: Successfully requested sign-in claim identity for user 'mydomain\myuser'.
    STS Call: Successfully issued new security token.
    Leaving Monitored Scope (ExecuteSecurityTokenServiceOperationServer). Execution Time=13.187150880908
    [Forced due to logging gap, cached @ 12/01/2014 15:48:34.87, Original Level: Verbose] The SecurityTokenServiceHeaderInfo including the correlation ID was added.
    Leaving Monitored Scope (ExecuteSecurityTokenServiceOperationCaller:http://docs.oasis-open.org/ws-sx/ws-trust/200512/RST/Issue). Execution Time=719.713539011243
    [Forced due to logging gap, cached @ 12/01/2014 15:48:35.60, Original Level: Verbose] ____{0}={1}
    Claims Windows Sign-In: Siginging in the the user 'mydomain\myuser' for request url 'https://crawler.my.host/'.
    Updating X.509 certificate validation policy
    [Forced due to logging gap, cached @ 12/01/2014 15:48:36.26, Original Level: Verbose] Completed deserializing the type named {0} and with id {1}.
    Adding X.509 certificate thumbprint '493E6806F4178EDD685BE5EA0AAF79ED30FB4A90' to root authority trust
    SPLocalLoginProvider: Initializing and creating S2S Claim Mappings
    SPLocalLoginProvider: Initialized S2S Claim Mappings.
    [Forced due to logging gap, cached @ 12/01/2014 15:48:36.37, Original Level: Verbose] Completed deserializing the type named {0} and with id {1}.
    [Forced due to logging gap, Original Level: Verbose] Deserializing the type named {0} and with id {1}.
    [Forced due to logging gap, cached @ 12/01/2014 15:48:37.17, Original Level: Verbose] Completed deserializing the type named {0} and with id {1}.
    [Forced due to logging gap, Original Level: Verbose] Deserializing the type named {0} and with id {1}.
    [Forced due to logging gap, cached @ 12/01/2014 15:48:37.96, Original Level: Verbose] Completed deserializing the type named {0} and with id {1}.
    [Forced due to logging gap, Original Level: VerboseEx] SPFederationAuthenticationModule.OnSessionSecurityTokenCreated: Start
    [Forced due to logging gap, cached @ 12/01/2014 15:48:38.10, Original Level: VerboseEx] SPSam.SetPrincipalFromSessionToken: End
    [Forced due to logging gap, Original Level: Verbose] Looking up {0} site {1} in the farm {2}
    Token Cache: Failed to add token from distributed cache for '0).w|s-0-0-0-0-0-0-1234'.(This is expected during the process warm up or if data cache Initialization is getting done by some other thread).
    Token Cache: Reverting to local cache to Add the token for '0).w|s-0-0-0-0-0-0-1234'.
    Token Cache: Successfully added token to cache for '0).w|s-0-0-0-0-0-0-1234'.
    SPTokenCache.ReadTokenXml: Successfully read token XML '0).w|s-0-0-0-0-0-0-1234,0#.w|mydomain\myuser,123456789012345,True,dpoRtB/hPcjVrEaJtqVWxhY8Pbfm++oHwWQ5TCB9jBlLx5n2Ky5OqGXM7ntfLB0kqIJNDUkeQrl4wL7xW2m4r0rV1TiOUf+e2mpHq8WOgN67puRViZbCxCkwmmxUpE/1OVNcDFXRCh26tvVFieK99LKZn8BJUtmP8RqxtwtwqBolNjCyZ3rfSSmtFyM3pdWjphdj312R9Lcp9/EhTpvvV1J2lFCig901ZGaPo7zOw3pFyXl1eDs+gF2Bcbc7/mMZw67/gEccsFaekBVH1TK0d9qqr6P/ISeEgzhlK4DChV94ntsw8m8Pb255yTL8WrbTykMFV3jC7R2MvqCmiKGK+g==,https://crawler.my.host/'.
    Claims Windows Sign-In: Not writing a cookie for request 'https://crawler.my.host/'.
    Claims Windows Sign-In: Successfully signed-in the the user 'mydomain\myuser' for request url 'https://crawler.my.host/'.
    Updating header 'LOGON_USER' with value '0#.w|mydomain\myuser' for the request url 'https://crawler.my.host/'.
    Leaving Monitored Scope (SPClaimsCounterScope). Execution Time=4957.74267399907
    SPApplicationAuthenticationModule: Authorization header doesn't contain Bearer, can't try to perform application authentication.
    Non-OAuth request. IsAuthenticated=True, UserIdentityName=0#.w|mydomain\myuser, ClaimsCount=27
    Leaving Monitored Scope (PostAuthenticateRequestHandler). Execution Time=31.2877754016223
    Micro Trace Tags: 0 nasq,69 air4a,1 air4b,22 air4a,0 air4b,1641 aeayb,732 b4ly,654 erv2,58 erv3,1814 air36,0 air37,42 b4ly,5 agb9s,39 b4ly
    Leaving Monitored Scope (Request (GET:https://crawler.my.host:443/)). Execution Time=5101.04328902137
    SPFederationAuthenticationModule.OnEndRequest: User was being redirected to authenticate.
    [Forced due to logging gap, cached @ 12/01/2014 15:48:38.24, Original Level: Verbose] {0}
    [Forced due to logging gap, Original Level: VerboseEx] SPRequestParameters: AppPrincipal={0}, UserName={1}, UserKye={2}, RoleCount={3}, Roles={4}
    Site=/
    [Forced due to logging gap, cached @ 12/01/2014 15:48:38.37, Original Level: Verbose] {0}
    [Forced due to logging gap, Original Level: VerboseEx] Reverting to process identity
    [Forced due to logging gap, cached @ 12/01/2014 15:48:38.40, Original Level: VerboseEx] No SPAggregateResourceTally associated with thread.
    [Forced due to logging gap, Original Level: VerboseEx] Reverting to process identity
    [Forced due to logging gap, cached @ 12/01/2014 15:48:38.48, Original Level: VerboseEx] No SPAggregateResourceTally associated with thread.
    [Forced due to logging gap, Original Level: VerboseEx] Reverting to process identity
    Access Denied for /. StackTrace:    at Microsoft.SharePoint.Utilities.SPUtility.HandleAccessDenied(HttpContext context)     at Microsoft.SharePoint.IdentityModel.SPFederationAuthenticationModule.OnEndRequest(Object sender,
    EventArgs eventArgs)     at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()     at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)    
    at System.Web.HttpApplication.PipelineStepManager.ResumeSteps(Exception error)     at System.Web.HttpApplication.BeginProcessRequestNotification(HttpContext context, AsyncCallback cb)     at System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest
    wr, HttpContext context)     at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)     at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr
    rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)     at System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion(IntPtr pHandler, RequestNotificationStatus& notificationStatus)    
    at System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion(IntPtr pHandler, RequestNotificationStatus& notificationStatus)     at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr rootedObjectsPointer, IntPtr
    nativeRequestContext, IntPtr moduleData, Int32 flags)     at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)
    Leaving Monitored Scope (SPFederationAuthenticationModule.OnEndRequest). Execution Time=351.625416079418
    Entering monitored scope (Request (GET:https://crawler.my.host:443/_layouts/AccessDenied.aspx?Source=https%3A%2F%2Fcrawler%2Emy%2Ehost)). Parent No
     

    I'm extending an existing claims based web application.  The way I'm testing authentication is by attempting to log in to the Windows authentication zone using the browser and an account with site collection administrator privileges.  I've also
    tried using the intended crawler service account, but that also fails authentication.
    With regard to the default zone issue, I've already experimented with using both the default zone and another zone, but neither works.
    BTW, I already have this working in a SharePoint 2013 development environment, and a similar configuration has been in a SharePoint 2010 production environment for over a year, which makes this a particularly maddening problem.
    I have enabled Failed Request Tracing, and get a 401.1, 401.2, then a 403 (which says it was caused by the 401.2).  I'm not sure of the significance, but the 403 trace shows the module for the 401.2 to be UrlAuthorizationModule, while the module for
    the 403 error is FederatedAuthentication.
    Per my ULS trace included in my original post, it appears that I'm actually getting a SharePoint claim.

  • Call Audio On and Off with every other call

    My wife both have the Samsung Intensity 3. We like the phones but every since getting them the call sound only comes on every other call whether going out or receiving. Even just yesterday I was stuck in the desert with limited reception and had to call 911 and the call sound wasn't on which was awful when I would only have sporatic 30 second windows of service.
    This is my second new Samsung Intensity II after they replaced it 2 weeks ago and I don't know what the problem is. As I said, my wife has the exact same issue. And it happens everywhere we go not just at home.
    I don't know what to do other than get another phone model.

    No the sound comes back on. On the second attempt at calling the sound would be on. My previous device did not have this issue.
    Since this problem was constant and we couldn’t any longer to resolve the issue we opted to get a different device. We switched to the LG Extravert and now the issue does not occur at all. The phone works exactly like it should.
    So I don’t know why the Samsung Intensity III was having so many issues, especially after getting another new Intensity after the first one did the same thing.

  • Problem with multiple Ajax calls to the same Servlet

    Hi,
    I am new to AJAX. I have a requirement where in, i have to make ajax calls to the same servlet in an infinite loop and check for an application context attribute to refresh the contents in the JSP.I am using the following script in JSP. The problem is i am not able to invoke the servlet more than one time.But I am able to go through the script at specific time interval using setInterval() function of Javascript and able to get alerts.But the problem is with xmlhttp.open("Get", url, true);. Its not getting called more than one time, even though i make multiple calls to the function.
    *<script type="text/javascript">*
    var xmlhttp
    var resp
    function fAjax()
    alert("Here");
    xmlhttp=null;
    resp=null;
    // code for Mozilla, etc.
    if (window.XMLHttpRequest)
    xmlhttp=new XMLHttpRequest();
    // code for IE
    else if (window.ActiveXObject)
    xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
    if (xmlhttp!=null)
    xmlhttp.onreadystatechange=state_Change;
    xmlhttp.open("GET","/PSAPBackOffice/TestServlet",true);
    xmlhttp.send(null);
    else
    alert("Your browser does not support XMLHTTP.")
    function state_Change()
    // if xmlhttp shows "loaded"
    if (xmlhttp.readyState==4)
    // if "OK"
    if (xmlhttp.status==200)
         resp=xmlhttp.responseText;
         //alert(resp);
         if (resp=="CALL"){
         form.method="GET";
         form.action="/Project/Details.jsp          
    form.submit();
    else
    alert("Problem retrieving XML data")
    function callTimer(){
         setInterval("fAjax()",5000);
    *</script>*
    *Code for Servlet here:*
    public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException
    ServletContext objContext= getServletContext();
         String value;
         synchronized (objContext) {
                   value=(String) objContext.getAttribute("Flag");
                        if(value==null){
                        else if(value.equals("Done")){
                             response.setContentType(CONTENT_TYPE);
                             PrintWriter out = null;
                                  try {
                                       out = response.getWriter();
                                  } catch (IOException e) {
                                       // TODO Auto-generated catch block
                                       e.printStackTrace();
                                                                } catch (NullPointerException npe) {
                                       // TODO Auto-generated catch block
                                       npe.printStackTrace();
                             objContext.setAttribute("Flag","No");
                             out.println("CALL");
    Can someone figureout the problem or mistake and help me out.Its urgent and please help me in this regard.Thanks in Advance !

    I'm not sure I'm following you. The mapping from URL to servlet can contain anything you want. So you could have the URL /blah/blah/blah that, with a mapping something like /blah/* would pass all requests with that URL pattern to your servlet - no one has to know it is a servlet. Your servlet could then parse the URL to see what it has to do or you could pass parameters as part of the URL or as hidden fields.

  • How to use windows authentication to MSSQL2008 from oim running in Linux

    Hi All,
    We have developed the code (in eclipse) in local windows machine to call sample stored procedures in MSSQL.The code works fine from client and are able to create, update users in MSSQL from windows.
    We have OIM 11g R2 installed in Linux 6 on local VM. The question is while building the jar from the code and placing it in Java task directory of OIM, calling thr Code we need sql.dll file to implement the windows authentication(no user name & pwd) to connect to MSSQL, but this is not possible in Linux since the jar don't support.
    Can any one please give suggestions on this to implement windows authentication from Linux through OIM server.
    Edited by: 970422 on Nov 8, 2012 11:39 PM

    I have no idea, but you might find it helpful to read Redhat's documentation concerning this subject:
    http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/5/html/Deployment_Guide/ch-ldap.html

  • AJAX Call make SP to show the "Are you sure you want to leave this page" dialog box

    Hi all,
    I have a problem while editing properties of a Page. We have a custom Content Types which includes a field with a custom type (and custom control). The Custom control includes an UpdatePanel. The control is a tree view, so each time we expand a node, there
    is an AJAX call.
    The control is displayed on the page on Edit Mode. When we use the control from Edit Mode, expanding each node result in displaying the dialog box to ask the user if he wants to leave or stay on the page. 
    When using the same control from the "Edit Properties" form, expending the nods works perfectly.
    Also I couldn't reproduce the problem on FireFox, it only happens on IE.
    Using fiddler I could see a difference between the Post requests depending on the above scenarios.
    When using the custom Tree View from the Edit Page mode which result into the error, the POST request does not include the
    x-microsoftajax: Delta=true
    in the request header.
    When using FF or the Tree View from the Edit Properties window, the above header is present and the dialog box is not shown.
    Does anyone have an idea why I'm not having the the correct header with IE when using the control from Edit Mode?
    Cheers,
    Séb
    

    Hi,
    According to your post, an error occurred when you used Ajax in SharePoint.
    Please do as follows:
    1. Try to uncheck the Enable native XMLHTTP support option in IE's advanced options.
    Go to Tool->Internet Options->Advanced and disable “Enable native XMLHTTP support”.
    2. Use jQuery Ajax to call.
    https://api.jquery.com/jQuery.ajax/
    Best Regards
    Dennis Guo
    TechNet Community Support

  • How do you uncheck the "enable integrated windows authentication" in Mozilla Firefox?

    Every time i want to access a site mozilla uses the windowslogin to authenticate through proxy.

    Hope it helps:
    http://markmonica.com/2007/11/20/firefox-and-integrated-windows-authentication/

  • Database access using windows authentication

    We are updating our Applications to use single sign on and are running into a problem with database access. We are using CF11 Enterprise and SQL Server 2008 on IIS 7.5.
    We have set up the ColdFusion Application Service to run under an AD service account and have created the data sources in CFAdmin leaving the username and password blank. The data sources verify and all seems good. The problem comes when running a query. The credential passed to the database is the service account and not the windows authenticated user. As such the query fails. What are we missing to get CF to pass the Windows Authenticated user credential instead of the service account?
    Thanks
    Tim

    ColdFusion does not pass user's credentials to the database connections by default, and cannot pass Windows Authentication credentials that way.  It only sends the service account's credentials (if you leave username/password blank as you have done).  The only way to pass user credentials is to put them into the individual query calls themselves, and even then you can't pass Windows Authentication credentials.  You would have to use SQL Server Logins, and create accounts for each user.
    I think most people are using either a dedicated SQL Server login for ColdFusion and run all queries under that account, or they do as you have already done and use Windows Authentication along with the ColdFusion service account.  If you need an audit trail, then pass usernames into the insert/update queries and store them manually along with the other data you are inserting/updating.
    -Carl V.

  • Integrated Windows Authentication with a WebSphere Cliente

    Hi all,
    I need to write a web service client that connects to a .NET Web Service that is configured to use Integrated Windows Authentication (NTLM).
    I'm using the IBM WebSphere Runtime environment for the client and using the web service client wizard in the RSD 6.0.1.
    When I try to call a method in the .NET web service, I get the error shown below. If I configure the .NET web service to permit Anonymous Access, my client works fine.
    Does anybody know if the WebSphere web services engine supports Integrated Windows Authentication? If so, how can I configure my cliente to pass my credentials? Do people use this type of authentication if the web service will be called by non Windows clientes or is it better to use Basic Authentication with HTTPS or digital certificates?
    I've read that Apache Axis can be configured to use integrated windows authentication (http://people.etango.com/~markm/archives/2005/11/21/using_apache_axis_with_integrated_windows_security.html) by using a different HTTP transport class (CommonsHTTPSender).
    Thanks in advance!
    Craig
    [14/06/06 10:06:56:805 GMT-03:00] 00000031 enterprise I WSWS3243I: Info: Mapping Exception to WebServicesFault.
    [14/06/06 10:06:56:821 GMT-03:00] 00000031 enterprise I TRAS0014I: The following exception was logged WebServicesFault
    faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException
    faultString: java.lang.StringIndexOutOfBoundsException
    faultActor: null
    faultDetail:
    java.lang.StringIndexOutOfBoundsException
         at com.ibm.ws.webservices.engine.WebServicesFault.makeFault(WebServicesFault.java:179)
         at com.ibm.ws.webservices.engine.transport.http.HTTPSender.invoke(HTTPSender.java:490)
         at com.ibm.ws.webservices.engine.PivotHandlerWrapper.invoke(PivotHandlerWrapper.java:218)
         at com.ibm.ws.webservices.engine.PivotHandlerWrapper.invoke(PivotHandlerWrapper.java:218)
         at com.ibm.ws.webservices.engine.WebServicesEngine.invoke(WebServicesEngine.java:274)
         at com.ibm.ws.webservices.engine.client.Connection.invokeEngine

    Here's a project ( [http://spnego.sourceforge.net/protected_soap_service.html|http://spnego.sourceforge.net/protected_soap_service.html] ) that shows how to write a soap client that can connect to a soap web service with integrated windows authentication turned on.

  • Storing SELECT list definition after AJAX call

    Hi all
    I redefine the options in the SELECT item via AJAX call. The application process returns string similar to <option>x1</option><option>x2</option>, which is set as SELECT item innerHTML content. Everything works fine.
    The problem is that I need to switch to another page and than return back. The original page is re-rendered and the redefinition of the SELECT item options is obviously lost.
    Any recommentation how to solve it simply and robustly?
    Thanks
    Roman

    I think i should do a Modal window, like described there:
    http://oracleapexbynandinithakur.blogspot.com/2011/02/modal-form-in-apex.html
    And after inserting a new record in Modal window user closes the Modal window with a button there, and i somehow then repopulate the underlying page's Select List component.

  • Retain Windows authentication but allow re-login as another user

    I have been reading all about Login as a different user being disabled, the use of loginasanotheruser and how this is not recommended for later browser.  Here is my situation that I am at a loss to resolve. 
    All of our users connect to SharePoint using Windows authentication. This needs to remain.  However in our board room we have a number of computers all logged in with a common windows user account.  Executive meetings are confidential and
    we do not want to allow access to their site by the common Windows user - they must user their own login.  Normal browsing is to retain the Windows authentication however when they come to the executive SharePoint site we need to present a login before
    they progress. 
    I have seen comments on using "runas.exe" or the "Run as" option on shift-right click.  The trouble is that we do not know which participant will sit at a particular seat/computer in the room.  Our executive want everying by
    minimal clicks and complexity.  The expectation is that they enter the room and the site login page is already displayed as they arrive.
    So any ideas?  This one has me stumped.

    You could have a little batch file that asks for username and password then runs the 'runas.exe' with those details. That does the same thing as leaving a login page lying around.

Maybe you are looking for

  • Tree component problem

    The follow Exception is threw if I put a Tree component in any page in one of my project : java.net.MalformedURLException: no protocol: /layout/layout.dtd stack trace: java.net.MalformedURLException: no protocol: /layout/layout.dtd      at com.sun.ra

  • ESS/MSS configuration on HR side

    Hi Friends, Can any one of u give me the document or steps to be taken to configure ESS/MSS on HR side. I have already configured ESS/MSS at the Enteprise portal point of view, but i coun't able to see the data from the backend system on the iviews.

  • [solved]UT2004 game library problem

    Hello ! So I tried to install my old ut2004 game (native with linux), install went smooth except some errors I can barely see in the console installer because it bugs graphically... When I try to launch the game, I get : ./ut2004-bin: error while loa

  • NEF format imports into iPhoto but not Photoshop??

    Hello! I'm currently using a Nikon D70S, shooting in RAW format. The .NEF files import just fine into iPhoto, but for some reason, if I try to edit them in Photoshop CS, it gives me this error message: "Could not complete your request because it is n

  • New macbook, Leopard and iLife 08 but iMovie crashes at launch

    Hi everyone, I just purchased a new Macbook with Leopard, iLife 08 etc - works like a dream. No problems networking or running applications - except for iMovie. Out of the box iMovie has never worked on my Macbook. It launches and shows the initial s