Regarding SharePoint2013 Hybrid Search

Hi Folks,
i have recently configured SharePoint Hybrid Search but i am getting this error while i am testing query in search result. i have followed this blog step by step to configure Hybrid Search Office
365-Configure Hybrid Search with Directory Synchronization –Password Sync   can any one help me out in this regards. i would be very thankful.
1¾System.Net.WebException: The remote server returned an error: (401) Unauthorized. at System.Net.HttpWebRequest.GetResponse() at Microsoft.SharePoint.Client.SPWebRequestExecutor.Execute() at Microsoft.SharePoint.Client.ClientContext.GetFormDigestInfoPrivate()
at Microsoft.SharePoint.Client.ClientContext.EnsureFormDigest() at Microsoft.SharePoint.Client.ClientContext.ExecuteQuery() at Microsoft.Office.Server.Search.RemoteSharepoint.RemoteSharepointEvaluator.RemoteSharepointProducer.RetrieveDataFromRemoteServer(Object
unused) at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback,
Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at Microsoft.Office.Server.Search.RemoteSharepoint.RemoteSharepointEvaluator.RemoteSharepointProducer.ProcessRecordCore(IRecord
record)
Correlation ID: 06a3779c-f118-a0fc-143a-cdd47c9408a0
BestRegards|SharePoint Techies

Hi,
According to your post, my understanding is that you got Error 401 (Unauthorized) when setting up Hybrid Search.
Please make sure that the site collection admin or the farm admin that is responsible for query rules have access to both on premise and office o365.
Here is a similar thread for you to take a look at:
http://social.technet.microsoft.com/Forums/en-US/a89bd19f-30fa-49d6-83cc-403d8af747cb/error-401-unauthorized-when-setting-up-hybrid-search?forum=sharepointsearch
Thanks,
Linda Li
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Linda Li
TechNet Community Support

Similar Messages

  • Hybrid Search with Office 365 from On Prem Search

    I have followed this post on Setting up Hybrid search of Office 365 from Sharepoint On premise:
    http://blogs.technet.com/b/wbaer/archive/2014/03/24/one-way-outbound-hybrid-search-step-by-step-and-onedrive-for-business.aspx#comments
    As well as tested all of the validation steps in the following Technet Article on setting up Identity Management.
    http://technet.microsoft.com/en-us/library/dn197169(v=office.15).aspx
    However the last validation step in each is to test the Result Source and I get the following error:
    Web error: System.Net.WebException: The request was aborted: The request was canceled. ---> Microsoft.SharePoint.IdentityModel.OAuth2.SPOAuth2ErrorResponseException: [invalid_client] ACS50027: JWT token is invalid.
    Trace ID: 375a7faa-be03-441e-be21-5b29
    I am really scratching my head here and My Google Foo is coming up empty on any variation of that error.

    Hi,
    According to your post, my understanding is that you wanted to configure Hybrid Search with Office 365 from On Prem Search.
    Please make sure you configure Hybrid Search correctly.
    For more information, you can refer to:
    Hybrid for SharePoint Server 2013
    Configure hybrid Search for SharePoint Server 2013
    The JWT token invalid error was due to an invalid date format for the STS certificate.
    I recommend to created search service application using Wizzard , then move the search roles across multiple boxes using the steps mentioned
    http://technet.microsoft.com/en-us/library/jj729803.aspx
    You can also rename the search databases.
    Renaming SharePoint 2013 Search databases
    Troubleshooting hybrid environments
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Configure one way outbound hybrid search

    I have been trying to configure one way outbound hybrid search but in the process getting no search results from SharePoint Online.
    I have created a SharePoint Farm on windows azure. I have installed Active Directory on one server which will act as my domain controller. I have one DB server and one SharePoint server. Besides this I have created another server which I have used for Synchronization
    purpose. I have used Azure Active Directory Connect to sync my users to SharePoint Online. 
    As far as the syncing part is concerned, I have been able to do the same. 
    Now, for configuring one way outbound search, I have followed the steps like
    1. Creating self signed certificate and replacing the STS certificate on my SharePoint server.
    2. Configured S2S authentication using PowerShell.
    3. Necessary services are up and running.
    4. Result Source and Query Rule for SPO.
    I can see the ACS trust established in the Central Admin. 
    Also I have verified that the UPN is same.
    When I create the Result Source, (used protocol as Remote with SPO url) I don't see the SPO results. Although if i test the connection, it comes as successful.
    I can just see SharePoint on-premise results.
    Below are the links that I have referred in setting up my environment
    http://blogs.msdn.com/b/spses/archive/2013/10/22/office-365-configure-hybrid-search-with-directory-synchronization.aspx
    http://blogs.technet.com/b/wbaer/archive/2014/03/24/one-way-outbound-hybrid-search-step-by-step-and-onedrive-for-business.aspx
    https://technet.microsoft.com/en-us/library/dn607305.aspx
    https://technet.microsoft.com/en-us/library/dn197169(v=office.15).aspx
    http://sharepointconnoisseur.blogspot.in/2015/01/ultimate-procedure-to-display.html
    Any inputs in this regards would be really helpful !Thanks,
    Geetanjali
    Geetanjali Arora | My blogs |

    Hi Geetanjali,
    Based on your description, I recommend to verify the things below:
    Check if the web application has configured to use Integrated Windows authentication using NTLM as authentication type in SharePoint server.
    Check if the testing account for doing search is a federated user account.
    https://technet.microsoft.com/en-us/library/dn607319.aspx
    Thanks,
    Victoria
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Victoria Xia
    TechNet Community Support

  • Hybrid Search not working from SharePoint 2013 Online to SharePoint On-premise

    Hi,
    I have setup a SharePoint 2013 Hybrid environment setup with the following –
    Windows Server 2012 R2
    SharePoint Server 2013 with April 2014 CU
    SQL Server 2014
    ADFS 3.0 using SSO with Web proxy and DirSync
    SharePoint 2013 Online tenant on Office 365 Enterprise Subscription
    I have configured the Hybrid following the article
    http://technet.microsoft.com/en-us/library/jj838715(v=office.15).aspx and configured Hybrid Search. The hybrid environment was working fine including Search both ways initially
    but after upgrade to April CU 2014 (along with upgrade to SQL 2014 from SQL 2012), now search from SharePoint online to SharePoint in-Premise is not working anymore.
    I am still able login with the federated IDs in both the environments and get results from SharePoint Online in SharePoint in-Premise environment.
    I have already tried most of the troubleshooting steps mentioned at
    http://technet.microsoft.com/en-us/library/dn518363(v=office.15).aspx
    Now every time, we perform a search in our SharePoint Online site, which is configured to show hybrid results from SharePoint in-premise, we don’t get results from in-premise and instead we see the following error logged in SharePoint
    In-premise Web Server –
    Error - An exception occurred when trying to issue security token: Exception of type 'System.ArgumentException' was thrown. Parameter name: value.
    And ULS log shows the following – Even though the message seems apparent that there could be duplicate users in user profile Application, but that’s not the case. There are just 2 unique users added there.
    06/04/2014 12:58:41.59 w3wp.exe (0x1C88)                       0x2494  SharePoint Portal Server     
            User Profiles                      ae0sx               
    Unexpected       Error trying to search in the UPA. The exception message is 'System.ArgumentException: Exception of type 'System.ArgumentException' was thrown.  Parameter name: value     at Microsoft.SharePoint.Administration.Claims.SPIdentityProviders.GetIdentityProviderType(String
    value)     at Microsoft.Office.Server.Security.UserProfileIdentityClaimMapper.SearchUsingNameIdOrThrow(UserProfileManager upManager, String nameId, String nameIdIssuer)     at Microsoft.Office.Server.Security.UserProfileIdentityClaimMapper.GetSingleUserProfileFromClaimsList(UserProfileManager
    upManager, IEnumerable`1 identityClaims)'  4c8b979c-f112-d050-9764-c834ee4cf36d
    06/04/2014 12:58:41.59 w3wp.exe (0x1C88)                       0x2494  SharePoint Foundation        
            Monitoring                         b4ly        Verbose                
    Leaving Monitored Scope (Executing the user mapping operation in GetMappedIdentityClaim()). Execution Time=1.4449                4c8b979c-f112-d050-9764-c834ee4cf36d
    06/04/2014 12:58:41.59 w3wp.exe (0x1C88)                       0x2494  SharePoint Portal Server     
            User Profiles                      ae0su    High       The set of claims
    could not be mapped to a single user identity. Exception Exception of type 'System.ArgumentException' was thrown.  Parameter name: value has occured.      4c8b979c-f112-d050-9764-c834ee4cf36d
    06/04/2014 12:58:41.59 w3wp.exe (0x1C88)                       0x2494  SharePoint Foundation      
              Monitoring                         b4ly        Verbose
                    Leaving Monitored Scope (Inside SPIdentityClaimMapperOperations.GetClaimFromExternalMapper(); calling the registered SPIdentityClaimMapper). Execution Time=1.5596            
    4c8b979c-f112-d050-9764-c834ee4cf36d
    06/04/2014 12:58:41.59 w3wp.exe (0x1C88)                       0x2494  SharePoint Foundation       
             Claims Authentication                    ae0tc               
    High       The registered mappered failed to resolve to one identity claim. Exception: System.InvalidOperationException: Exception of type 'System.ArgumentException' was thrown.  Parameter name: value ---> System.ArgumentException:
    Exception of type 'System.ArgumentException' was thrown.  Parameter name: value     at Microsoft.SharePoint.Administration.Claims.SPIdentityProviders.GetIdentityProviderType(String value)     at Microsoft.Office.Server.Security.UserProfileIdentityClaimMapper.SearchUsingNameIdOrThrow(UserProfileManager
    upManager, String nameId, String nameIdIssuer)     at Microsoft.Office.Server.Security.UserProfileIdentityClaimMapper.GetSingleUserProfileFromClaimsList(UserProfileManager upManager, IEnumerable`1 identityClaims)    
    --- End of inner exception stack trace ---     at Microsoft...            4c8b979c-f112-d050-9764-c834ee4cf36d
    06/04/2014 12:58:41.59*               w3wp.exe (0x1C88)                      
    0x2494  SharePoint Foundation                 Claims Authentication                        
    ae0tc     High                    ....Office.Server.Security.UserProfileIdentityClaimMapper.GetSingleUserProfileFromClaimsList(UserProfileManager
    upManager, IEnumerable`1 identityClaims)     at Microsoft.Office.Server.Security.UserProfileIdentityClaimMapper.<>c__DisplayClass2.<GetMappedIdentityClaim>b__0()     at Microsoft.SharePoint.SPSecurity.<>c__DisplayClass5.<RunWithElevatedPrivileges>b__3()    
    at Microsoft.SharePoint.Utilities.SecurityContext.RunAsProcess(CodeToRunElevated secureCode)     at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(WaitCallback secureCode, Object param)     at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(CodeToRunElevated
    secureCode)     at Microsoft.Office.Server.Security.UserProfileIdentityClaimMapper.GetMappedIdentityClaim(Uri context, IEnumerable`1 identityClaims)     ...           
    4c8b979c-f112-d050-9764-c834ee4cf36d
    06/04/2014 12:58:41.59 w3wp.exe (0x1C88)                       0x2494  SharePoint Foundation        
            Claims Authentication                    af3zp               
    Unexpected       STS Call Claims Saml: Problem getting output claims identity. Exception: 'System.InvalidOperationException: Exception of type 'System.ArgumentException' was thrown.  Parameter name: value ---> System.ArgumentException:
    Exception of type 'System.ArgumentException' was thrown.  Parameter name: value     at Microsoft.SharePoint.Administration.Claims.SPIdentityProviders.GetIdentityProviderType(String value)     at Microsoft.Office.Server.Security.UserProfileIdentityClaimMapper.SearchUsingNameIdOrThrow(UserProfileManager
    upManager, String nameId, String nameIdIssuer)     at Microsoft.Office.Server.Security.UserProfileIdentityClaimMapper.GetSingleUserProfileFromClaimsList(UserProfileManager upManager, IEnumerable`1 identityClaims)     ---
    End of inner exception stack trace ---     at Microsoft.O...       4c8b979c-f112-d050-9764-c834ee4cf36d
    06/04/2014 12:58:41.59 w3wp.exe (0x1C88)                       0x2494  SharePoint
    Foundation                 Claims Authentication                    fo1t               
    Monitorable       STS Call: Failed to issue new security token. Exception: System.InvalidOperationException: Exception of type 'System.ArgumentException' was thrown.  Parameter name: value ---> System.ArgumentException:
    Exception of type 'System.ArgumentException' was thrown.  Parameter name: value     at Microsoft.SharePoint.Administration.Claims.SPIdentityProviders.GetIdentityProviderType(String value)     at Microsoft.Office.Server.Security.UserProfileIdentityClaimMapper.SearchUsingNameIdOrThrow(UserProfileManager
    upManager, String nameId, String nameIdIssuer)     at Microsoft.Office.Server.Security.UserProfileIdentityClaimMapper.GetSingleUserProfileFromClaimsList(UserProfileManager upManager, IEnumerable`1 identityClaims)    
    --- End of inner exception stack trace ---     at Microsoft.Office.Server.Secu...    4c8b979c-f112-d050-9764-c834ee4cf36d
    06/04/2014 12:58:41.59*               w3wp.exe (0x1C88)                      
    0x2494  SharePoint Foundation                 Claims Authentication                   
    fo1t                Monitorable       ...rity.UserProfileIdentityClaimMapper.GetSingleUserProfileFromClaimsList(UserProfileManager upManager, IEnumerable`1
    identityClaims)     at Microsoft.Office.Server.Security.UserProfileIdentityClaimMapper.<>c__DisplayClass2.<GetMappedIdentityClaim>b__0()     at Microsoft.SharePoint.SPSecurity.<>c__DisplayClass5.<RunWithElevatedPrivileges>b__3()    
    at Microsoft.SharePoint.Utilities.SecurityContext.RunAsProcess(CodeToRunElevated secureCode)     at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(WaitCallback secureCode, Object param)     at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(CodeToRunElevated
    secureCode)     at Microsoft.Office.Server.Security.UserProfileIdentityClaimMapper.GetMappedIdentityClaim(Uri context, IEnumerable`1 identityClaims)     at Microsoft.ShareP...    4c8b979c-f112-d050-9764-c834ee4cf36d
    06/04/2014 12:58:41.59*               w3wp.exe (0x1C88)                      
    0x2494  SharePoint Foundation                 Claims Authentication                   
    fo1t                Monitorable       ...oint.IdentityModel.SPIdentityClaimMapperOperations.GetClaimFromExternalMapper(Uri contextUri, List`1 claims)    
    at Microsoft.SharePoint.IdentityModel.SPIdentityClaimMapperOperations.ResolveUserIdentityClaim(Uri contextUri, ClaimCollection inputClaims)     at Microsoft.SharePoint.IdentityModel.SPIdentityClaimMapperOperations.GetIdentityClaim(Uri contextUri,
    ClaimCollection inputClaims, SPCallingIdentityType callerType)     at Microsoft.SharePoint.IdentityModel.SPSecurityTokenService.GetLogonIdentityClaim(SPRequestInfo requestInfo, IClaimsIdentity inputIdentity, IClaimsIdentity outputIdentity,
    SPCallingIdentityType callerType)     at Microsoft.SharePoint.IdentityModel.SPSecurityTokenService.EnsureSharePointClaims(SPRequestInfo requestInfo, IClaimsIdentity outputIdentity, SPCallingIdentityTy...     4c8b979c-f112-d050-9764-c834ee4cf36d
    06/04/2014 12:58:41.59*               w3wp.exe (0x1C88)                      
    0x2494  SharePoint Foundation                 Claims Authentication                   
    fo1t                Monitorable       ...pe callerType)     at Microsoft.SharePoint.IdentityModel.SPSecurityTokenService.AugmentOutputIdentityForRequest(SPRequestInfo
    requestInfo, IClaimsIdentity outputIdentity)     at Microsoft.SharePoint.IdentityModel.SPSecurityTokenService.GetOutputClaimsIdentity(IClaimsPrincipal principal, RequestSecurityToken request, Scope scope)     at Microsoft.IdentityModel.SecurityTokenService.SecurityTokenService.Issue(IClaimsPrincipal
    principal, RequestSecurityToken request)     at Microsoft.SharePoint.IdentityModel.SPSecurityTokenService.Issue(IClaimsPrincipal principal, RequestSecurityToken request)              
    4c8b979c-f112-d050-9764-c834ee4cf36d
    06/04/2014 12:58:41.59 w3wp.exe (0x1C88)                       0x2494  SharePoint Foundation        
            Monitoring                         b4ly        Verbose                
    Leaving Monitored Scope (SPSecurityTokenService.Issue). Execution Time=6.3185          4c8b979c-f112-d050-9764-c834ee4cf36d
    06/04/2014 12:58:41.59 w3wp.exe (0x1C88)                       0x2494  SharePoint Foundation        
            Monitoring                         nass       Verbose                
    ____CPU Cycles=12774004          4c8b979c-f112-d050-9764-c834ee4cf36d
    06/04/2014 12:58:41.59 w3wp.exe (0x1C88)                       0x2494  SharePoint Foundation        
            Monitoring                         nass       Verbose                
    ____Execution Time=6.3185       4c8b979c-f112-d050-9764-c834ee4cf36d
    06/04/2014 12:58:41.59 w3wp.exe (0x1C88)                       0x2494  SharePoint Foundation        
            Monitoring                         nasq      Verbose                
    Entering monitored scope (CleanUpSecurityTokenServiceOperation). Parent ExecuteSecurityTokenServiceOperationServer                4c8b979c-f112-d050-9764-c834ee4cf36d
    06/04/2014 12:58:41.59 w3wp.exe (0x1C88)                       0x2494  SharePoint Foundation        
            Monitoring                         b4ly        Verbose                
    Leaving Monitored Scope (CleanUpSecurityTokenServiceOperation). Execution Time=0.0282     4c8b979c-f112-d050-9764-c834ee4cf36d
    06/04/2014 12:58:41.59 w3wp.exe (0x1C88)                       0x2494  SharePoint Foundation        
            Monitoring                         nass       Verbose                
    ____CPU Cycles=14832078          4c8b979c-f112-d050-9764-c834ee4cf36d
    06/04/2014 12:58:41.59 w3wp.exe (0x1C88)                       0x2494  SharePoint Foundation        
            Monitoring                         nass       Verbose                
    ____Execution Time=0.0282       4c8b979c-f112-d050-9764-c834ee4cf36d
    06/04/2014 12:58:41.59 w3wp.exe (0x1C88)                       0x2494  SharePoint Foundation        
            Monitoring                         b4ly        Medium                 
    Leaving Monitored Scope (ExecuteSecurityTokenServiceOperationServer). Execution Time=7.2841         4c8b979c-f112-d050-9764-c834ee4cf36d
    06/04/2014 12:58:41.59 w3wp.exe (0x1C88)                       0x2494  SharePoint Foundation        
            Monitoring                         nass       Verbose                
    ____WebPart Events Offsets=0                4c8b979c-f112-d050-9764-c834ee4cf36d
    06/04/2014 12:58:41.59 w3wp.exe (0x1C88)                        0x2494  SharePoint Foundation        
            Monitoring                         nass       Verbose                
    ____User Address=       4c8b979c-f112-d050-9764-c834ee4cf36d
    06/04/2014 12:58:41.59 w3wp.exe (0x1C88)                       0x2494  SharePoint Foundation     
               Monitoring                         nass       Verbose
                    ____=00000000-0000-0000-0000-000000000000 4c8b979c-f112-d050-9764-c834ee4cf36d
    06/04/2014 12:58:41.59 w3wp.exe (0x1C88)                       0x2494  SharePoint Foundation        
            Monitoring                         nass       Verbose                
    ____Log Correlation Id=4c8b979c-f112-d050-9764-c445282f9184               4c8b979c-f112-d050-9764-c834ee4cf36d
    06/04/2014 12:58:41.59 w3wp.exe (0x1C88)                       0x2494  SharePoint Foundation        
            Monitoring                         nass       Verbose                
    ____Service Calls=0        4c8b979c-f112-d050-9764-c834ee4cf36d
    06/04/2014 12:58:41.59 w3wp.exe (0x1C88)                       0x2494  SharePoint Foundation        
            Monitoring                         nass       Verbose                
    ____Claims Counter=0  4c8b979c-f112-d050-9764-c834ee4cf36d
    06/04/2014 12:58:41.59 w3wp.exe (0x1C88)                       0x2494  SharePoint Foundation        
            Monitoring                         nass       Verbose                
    ____Critical Events=0    4c8b979c-f112-d050-9764-c834ee4cf36d
    06/04/2014 12:58:41.59 w3wp.exe (0x1C88)                       0x2494  SharePoint Foundation        
            Monitoring                         nass       Verbose                
    ____ULS Large Gap=      4c8b979c-f112-d050-9764-c834ee4cf36d
    06/04/2014 12:58:41.59 w3wp.exe (0x1C88)                       0x2494  SharePoint Foundation        
            Monitoring                         nass       Verbose                
    ____Execution Time=7.2841       4c8b979c-f112-d050-9764-c834ee4cf36d
    06/04/2014 12:58:41.59 w3wp.exe (0x1C88)                       0x2494  SharePoint Foundation        
            Monitoring                         nass       Verbose                
    ____CPU Cycles=0          4c8b979c-f112-d050-9764-c834ee4cf36d
    06/04/2014 12:58:41.59 w3wp.exe (0x1C88)                       0x2494  SharePoint Foundation        
            Monitoring                         nass       Verbose                
    ____Current SharePoint Operations=0  4c8b979c-f112-d050-9764-c834ee4cf36d
    06/04/2014 12:58:41.59 w3wp.exe (0x1C88)                       0x2494  SharePoint Foundation        
            Monitoring                         nass       Verbose                
    ____SPRequest Objects=2          4c8b979c-f112-d050-9764-c834ee4cf36d
    06/04/2014 12:58:41.59 w3wp.exe (0x1C88)                       0x2494  SharePoint Foundation        
            Monitoring                         nass       Verbose                
    ____Distributed Cache=0            4c8b979c-f112-d050-9764-c834ee4cf36d
    06/04/2014 12:58:41.59 w3wp.exe (0x1C88)                        0x2494  SharePoint Foundation        
            Monitoring                         nass       Verbose                
    ____SQL Query Count=0              4c8b979c-f112-d050-9764-c834ee4cf36d
    06/04/2014 12:58:41.59 w3wp.exe (0x1C88)                       0x2494  SharePoint Foundation        
            Monitoring                         nass       Verbose                
    ____Current User=        4c8b979c-f112-d050-9764-c834ee4cf36d
    06/04/2014 12:58:41.59 w3wp.exe (0x1C88)                       0x2494  SharePoint Foundation        
            Monitoring                         nass       Verbose                
    ____Request Management=     4c8b979c-f112-d050-9764-c834ee4cf36d
    06/04/2014 12:58:41.59 w3wp.exe (0x1C88)                        0x2494  SharePoint Foundation        
            Monitoring                         nass       Verbose                
    ____Page Checkout Level=Published     4c8b979c-f112-d050-9764-c834ee4cf36d
    06/04/2014 12:58:41.59 w3wp.exe (0x1C88)                       0x2494  SharePoint Foundation        
            Logging Correlation Data               77a3                Verbose              
    Ending correlation. Transfer to 4c8b979c-f112-d050-9764-c834ee4cf36d 4c8b979c-f112-d050-9764-c834ee4cf36d
    06/04/2014 12:58:41.59 w3wp.exe (0x1C88)                       0x2494  SharePoint Foundation        
            Unified Logging Service                 cn4g                Verbose
                  Trace level override is turned off.             4c8b979c-f112-d050-9764-c834ee4cf36d
    06/04/2014 12:58:41.59 w3wp.exe (0x1C88)                       0x2494  SharePoint Foundation        
            Logging Correlation Data               77a3                Verbose              
    Ending correlation.          4c8b979c-f112-d050-9764-c834ee4cf36d
    06/04/2014 12:58:41.59 w3wp.exe (0x1EEC)                       0x26BC SharePoint Foundation        
            Monitoring                         nasq      Verbose                
    Entering monitored scope (CleanUpSecurityTokenServiceOperation). Parent ExecuteSecurityTokenServiceOperationCaller:http://docs.oasis-open.org/ws-sx/ws-trust/200512/RST/Issue     4c8b979c-f112-d050-9764-c834ee4cf36d
    06/04/2014 12:58:41.59 w3wp.exe (0x1EEC)                       0x26BC SharePoint Foundation        
            Monitoring                         b4ly        Verbose                
    Leaving Monitored Scope (CleanUpSecurityTokenServiceOperation). Execution Time=0.0257     4c8b979c-f112-d050-9764-c834ee4cf36d
    06/04/2014 12:58:41.59 w3wp.exe (0x1EEC)                        0x26BC SharePoint Foundation        
            Monitoring                         nass       Verbose                
    ____Execution Time=0.0257       4c8b979c-f112-d050-9764-c834ee4cf36d
    06/04/2014 12:58:41.59 w3wp.exe (0x1EEC)                       0x26BC SharePoint Foundation     
               Monitoring                         nass       Verbose
                    ____CPU Cycles=2377140            4c8b979c-f112-d050-9764-c834ee4cf36d
    06/04/2014 12:58:41.59 w3wp.exe (0x1EEC)                       0x26BC SharePoint Foundation        
            Monitoring                         b4ly        Verbose                
    Leaving Monitored Scope (ExecuteSecurityTokenServiceOperationCaller:http://docs.oasis-open.org/ws-sx/ws-trust/200512/RST/Issue). Execution Time=13.2855           4c8b979c-f112-d050-9764-c834ee4cf36d
    06/04/2014 12:58:41.59 w3wp.exe (0x1EEC)                       0x26BC SharePoint Foundation        
            Monitoring                         nass       Verbose                
    ____Execution Time=13.2855    4c8b979c-f112-d050-9764-c834ee4cf36d
    06/04/2014 12:58:41.59 w3wp.exe (0x1EEC)                       0x26BC SharePoint Foundation        
            Monitoring                         nass       Verbose                
    ____CPU Cycles=0          4c8b979c-f112-d050-9764-c834ee4cf36d
    06/04/2014 12:58:41.59 w3wp.exe (0x1EEC)                       0x26BC SharePoint Foundation        
            Claims Authentication                    fsq7               
    High       SPSecurityContext: Request for security token failed with exception: System.ServiceModel.FaultException`1[System.ServiceModel.ExceptionDetail]: Exception of type 'System.ArgumentException' was thrown.  Parameter name:
    value (Fault Detail is equal to An ExceptionDetail, likely created by IncludeExceptionDetailInFaults=true, whose value is: System.InvalidOperationException: Exception of type 'System.ArgumentException' was thrown.  Parameter name: value ----> System.ArgumentException:
    Exception of type 'System.ArgumentException' was thrown.  Parameter name: value    at Microsoft.SharePoint.Administration.Claims.SPIdentityProviders.GetIdentityProviderType(String value)     at Microsoft.Office.Server.Security.UserProfileIdentityClaimMapper.SearchUsingNameIdOrThrow(UserProfileManager
    upManager, ...                4c8b979c-f112-d050-9764-c834ee4cf36d
    06/04/2014 12:58:41.59*               w3wp.exe (0x1EEC)                      
    0x26BC SharePoint Foundation                 Claims Authentication                        
    fsq7       High       ...String nameId, String nameIdIssuer)     at Microsoft.Office.Server.Security.UserProfileIdentityClaimMapper.GetSingleUserProfileFromClaimsList(UserProfileManager
    upManager, IEnumerable`1 identityClaims)    --- End of inner ExceptionDetail stack trace ---    at Microsoft.Office.Server.Security.UserProfileIdentityClaimMapper.GetSingleUserProfileFromClaimsList(UserProfileManager upManager,
    IEnumerable`1 identityClaims)     at Microsoft.Office.Server.Security.UserProfileI...).       4c8b979c-f112-d050-9764-c834ee4cf36d
    06/04/2014 12:58:41.59 w3wp.exe (0x1EEC)                        0x26BC SharePoint Foundation        
            Claims Authentication                    8306               
    Critical   An exception occurred when trying to issue security token: Exception of type 'System.ArgumentException' was thrown.  Parameter name: value.               4c8b979c-f112-d050-9764-c834ee4cf36d
    06/04/2014 12:58:41.59 w3wp.exe (0x1EEC)                       0x26BC SharePoint Foundation        
            Monitoring                         b4ly        Verbose                
    Leaving Monitored Scope ([S2S] Getting token from STS and setting Thread Identity). Execution Time=16.83       4c8b979c-f112-d050-9764-c834ee4cf36d
    06/04/2014 12:58:41.59 w3wp.exe (0x1EEC)                       0x26BC SharePoint Foundation        
            Monitoring                         nass       Verbose                
    ____Execution Time=16.83         4c8b979c-f112-d050-9764-c834ee4cf36d
    06/04/2014 12:58:41.59 w3wp.exe (0x1EEC)                       0x26BC SharePoint Foundation        
            Monitoring                         nass       Verbose                
    ____CPU Cycles=7084490            4c8b979c-f112-d050-9764-c834ee4cf36d
    06/04/2014 12:58:41.59 w3wp.exe (0x1EEC)                       0x26BC SharePoint Foundation        
            Monitoring                         b4ly        Medium                 
    Leaving Monitored Scope (Application Authentication Pipeline). Execution Time=20.6415             4c8b979c-f112-d050-9764-c834ee4cf36d
    06/04/2014 12:58:41.59 w3wp.exe (0x1EEC)                       0x26BC SharePoint Foundation        
            Monitoring                         nass       Verbose                
    ____Execution Time=20.6415    4c8b979c-f112-d050-9764-c834ee4cf36d
    06/04/2014 12:58:41.59 w3wp.exe (0x1EEC)                       0x26BC SharePoint Foundation        
            Monitoring                         nass       Verbose                
    ____CPU Cycles=14789795          4c8b979c-f112-d050-9764-c834ee4cf36d
    06/04/2014 12:58:41.59 w3wp.exe (0x1EEC)                       0x26BC SharePoint Foundation        
            Application Authentication          ajezs                High       SPApplicationAuthenticationModule:
    Error authenticating request, Error details { Header: {0}, Body: {1} }.  Available parameters: 3001000;reason="There has been an error authenticating the request.";category="invalid_client" {"error_description":"Exception
    of type 'System.ArgumentException' was thrown.\u000d\u000aParameter name: value"} .       4c8b979c-f112-d050-9764-c834ee4cf36d
    06/04/2014 12:58:41.59 w3wp.exe (0x1EEC)                       0x26BC SharePoint Foundation    
                General                               
    8nca       Medium                  Application error when access /_vti_bin/sites.asmx, Error=Exception of type 'System.ArgumentException' was thrown. 
    Parameter name: value   at Microsoft.IdentityModel.Protocols.WSTrust.WSTrustChannel.ReadResponse(Message response)     at Microsoft.IdentityModel.Protocols.WSTrust.WSTrustChannel.Issue(RequestSecurityToken rst, RequestSecurityTokenResponse&
    rstr)     at Microsoft.IdentityModel.Protocols.WSTrust.WSTrustChannel.Issue(RequestSecurityToken rst)     at Microsoft.SharePoint.SPSecurityContext.SecurityTokenForContext(Uri context, Boolean bearerToken, SecurityToken
    onBehalfOf, SecurityToken actAs, SecurityToken delegateTo, SPRequestSecurityTokenProperties properties)     at Microsoft.SharePoint.SPSecurityContext.SecurityTokenForApplicationAuthentication(Uri context, SecurityToken onBe...           
    4c8b979c-f112-d050-9764-c834ee4cf36d
    06/04/2014 12:58:41.59*               w3wp.exe (0x1EEC)                      
    0x26BC SharePoint Foundation                 General                      
             8nca                Medium               ...halfOf)    
    at Microsoft.SharePoint.IdentityModel.SPApplicationAuthenticationModule.<>c__DisplayClass4.<GetLocallyIssuedToken>b__3()     at Microsoft.SharePoint.Utilities.SecurityContext.RunAsProcess(CodeToRunElevated secureCode)    
    at Microsoft.SharePoint.IdentityModel.SPApplicationAuthenticationModule.ConstructIClaimsPrincipalAndSetThreadIdentity(HttpApplication httpApplication, HttpContext httpContext, SPFederationAuthenticationModule fam)     at Microsoft.SharePoint.IdentityModel.SPApplicationAuthenticationModule.AuthenticateRequest(Object
    sender, EventArgs e)     at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()     at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)  
    4c8b979c-f112-d050-9764-c834ee4cf36d
    Any ideas?
    Anupam Shrivastava

    I am experiencing the same issue. Don't have the answer yet about what's wrong exactly. And my SSO works fine too.
    I know precisely what makes the SharePoint throw the ArgumentException, but I can't yet figure out how to influence this behavior. I will respond back if I find out, but I hope the following will create an "aha moment" for someone.
    So the SP Online issues an OAuth request to the on-prem SharePoint. If verbose logging is on for the Claims category, you may see how it reads these claims. One of them is this:
    Claim['nii':'urn:federation:microsoftonline']
    Using this claim and the nameid claim the profile mapping logic then reports the following immediately before the error (Set User Profiles to verbose to see this):
    Creating encoded sid for nameid '100300008b29cb02' and nameidissuer 'urn:federation:microsoftonline'
    Inspecting this logic with Reflector, I can see that it then attempts to infer the identity provider type from the nameidissuer, and throws the exception, because "federation" is not what it expects. It expects either "windows", "trusted" or "forms" for
    the provider type.
    So the user's actions to lead to this error were as follows:
    1. I connect to the Office 365 portal, and get redirected to my ADFS server (same domain for the ADFS server, on-prem SharePoint, and the user accounts).
    2. I log on, and from the SP Online portal I issue my search query using a result source configured as per the Hybrid TechNet guidance.
    So thanks in advance for any suggestions, on what it could be.

  • Error 401 (Unauthorized) when setting up Hybrid Search

    Hello,
    I am trying to set up Hybrid Search (one-way out-bound search) between a SharePoint 2013 on-premises farm I've got running on Windows Azure (IaaS) and a SharePoint Online trial tenant I have set up for the purpose.
    I have followed Manas Biswas' rather long guide (search for manas biswas hybrid search on Bing to find it) for setting it up and everything has gone fine -- including setting up my SharePoint 2013 farm in a demo lab on Azure, signing
    up for a SharePoint Online tenant, getting DirSync to work, etc. Actually, I hadn't bumped into any errors until the very end when I wanted to try out my setup.
    I had just set up SharePoint Online as a search result source on my SharePoint 2013 team site. I have also set up the search query rule with the result block for the SP Online results. Yet, when I try to use the Query Builder and I search for "*",
    I get the following error:
    System.Net.WebException: The remote server returned an error: (401) Unauthorized. at System.Net.HttpWebRequest.GetResponse() at Microsoft.SharePoint.Client.SPWebRequestExecutor.Execute() at Microsoft.SharePoint.Client.ClientContext.GetFormDigestInfoPrivate() at Microsoft.SharePoint.Client.ClientContext.EnsureFormDigest() at Microsoft.SharePoint.Client.ClientContext.ExecuteQuery() at Microsoft.Office.Server.Search.RemoteSharepoint.RemoteSharepointEvaluator.RemoteSharepointProducer.RetrieveDataFromRemoteServer(Object unused) at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at Microsoft.Office.Server.Search.RemoteSharepoint.RemoteSharepointEvaluator.RemoteSharepointProducer.ProcessRecordCore(IRecord record)
    Now, I don't know why this operation is rejected as "unauthorized." I am unsure of my certificates, which I have generated and set up in order for the connection to work. Out of all the steps in Biswas' guide, the certificates part is the one I
    have the least knowledge about. I am suspecting that there is something wrong in this area but I have no idea of how to troubleshoot it.
    To make it clear, I did not encounter any error messages while following the guide -- not even when firing off the fair amount of PowerShell scripts that Biswas has written.
    I would appreciate it if anybody could help me troubleshoot this problem. I am running out of ideas to try out so any suggestion will appreciated! :-)

    Hi Sebastian and Manas,
    I am trying to set up a hybrid environment and followed the blog posts. Everything was set up as per the guidelines mentioned but still I am not able to fetch any results from SharePoint Online inside my on-premise environment. 
    There are no errors coming as such. Its just that my on-premise is showing no results from SPO. However if the same user logs on into the Office 365 SPO site he is able to see SPO search results. That means there is no permission related issue specific to
    test user. 
    I am totally out of ideas now. In case you have faced similar issues while setting up the same then any pointers to troubleshoot would be very helpful.
    The link to my query that I have asked on the forums is
    https://social.msdn.microsoft.com/Forums/office/en-US/540d2629-ec6b-4905-b8e2-f6ba4e770d26/configure-one-way-outbound-hybrid-search?forum=sharepointgeneral
    Thanks,
    Geetanjali
    Geetanjali Arora | My blogs |

  • Regarding ADFbound tree search problem

    Hi
    I have done adf bound tree search after rendered using the following url
    http://www.oracle.com/technetwork/developer-tools/adf/learnmore/61search-in-rendered-trees-177577.pdf
    The search is happening as expected, but if i select manually any of the node and try for searching , then search is not happening at all .
    Can anybody having idea on this ????????
    Regards
    Senthil

    Dear Frank,
    The following is my steps
    1. First i did search using some 'X'
    2. it selected the node 'X' as expected
    3. if i just select a node manually using mouse for example 'Y' for drag and drop into another tree
    4. Again i do search with any text , This time search is not happening , and it doesnt happen forever until i log out
    manual selection using mouse stops the successive search, can not find the reason , please help me out
    Thanks & regards
    Senthil

  • Question Regarding a Java Search Script

    Hi Folks, Ive just signed up to see if you can help me in my delima.
    Im trying to implement a search engine into a friends website, as she does not have the experence to do it herself, I have the search engine set up and running but i didnt realise before i started (due to my habit of not reading instructions) that keywords have to be entered manually. And so this is not practical for this particular site, as it has around 50 ish pages (not including linked word or excel files, but these dont need to be search)
    Is there a way to crawl the website and generate a keyword file. I have found some online free crawlers (spiders) but the site is only accessable to public with a password, as its for a school teachers. I have to go but ill be back, any help would be much accepted. Thanks you all in advance.
    Regards Diablo2nd

    Thanks for the Reply/tip!

  • Regarding wild card search in oralce

    I am facing one problem,
    I am using wild card search based on LIKE condition, that search is got used for searching purpose through a user interface.
    the query is like below
    SELECT /*+driving_site(a)*/ A.ID,A.CO_ID,B.NAME,A.CITY,A.state FROM mv1 a,mv2 b WHERE a.id=b.id and nvl(b.name,'x') like '<variable>%' and nvl(a.city,'x') like'<variable>%'  and a.state like'%' ;
    where user can input any one or may two or three parameters for search.
    The problem is in response time because mv1 and mv2(materialized view) contains crores of records(around 3.5 crore )
    I am able to search it with city and state but when I am trying by name I am not not getting response for that query.
    Each where clause is indexed propely even functional index i put there and analyzed also , by explain plan i am able to reduce the cost but im not able to get proper response. I welcome all your suggestions as this is reallly a crucial for me to get that search faster....
    Thanks in Advance
    Edited by: user13104802 on Jul 31, 2010 6:31 AM
    Edited by: user13104802 on Jul 31, 2010 6:31 AM
    Edited by: user13104802 on Jul 31, 2010 6:33 AM

    I welcome all your suggestions as this is reallly a crucial for me to get that search faster....You might want to explore Oracle Text (Index).
    http://asktom.oracle.com/pls/apex/f?p=100:11:0::::P11_QUESTION_ID:415419367128
    http://www.oracle-base.com/articles/9i/FullTextIndexingUsingOracleText9i.php
    What is your database version? (the result of: select * from v$version; )
    That'll determine what other pointers we can give you.

  • Regarding Google Advanced Search, Firefox no longer saves my settings, such as 'number of results,' which I like to set to 100. The Google default is 10 and Firefox no longer saves my setting of 100.

    In Google Advanced Search, when I click on Search Settings, I go to the drop down box labelled 'Number of Results' and select 100, then click Save Preferences. Until recently Firefox saved my changed settings, but it no longer does so.

    This is caused by the new Google instant search feature. If you disable instant search and use the old style search Google should remember the preferences. The option to turn off instant search is to the right of the search box.

  • Regarding BP number search and deletion

    Hi Gurus,
    I have some doubts in BP.
    1) If I open BP and do start it only shows 100 nos max. Can I extend ti to all the bp available.
    2) I had created the ord model and this org also treated as a bp master data. I deleted the ord model and deleted the org BP no. But if I go to BP and search the BP as per the criteria organization again it shows the org bp also. How can I delete these org bps completely.
    3) Can any body tell me What is Account (BP GROUP) Hierarchy? How to configure it as per the account group exist in ECC. Any customization document on this plz send me to
    [email protected]
    Thanx
    Saravana

    Hi
    For 2) I had created the ord model and this org also treated as a bp master data. I deleted the ord model and deleted the org BP no. But if I go to BP and search the BP as per the criteria organization again it shows the org bp also. How can I delete these org bps completely.
    Ans: Note the BP no. and go to transaction bupa_del and delete the BP by specifyiing the BP no.
    Reward ppoints if helpful.
    Shridhar

  • Regarding Order Template search data ISA

    Hi,
    1)We are using ISA Frame work for E-commerce Project and we would like to know from where Order Template Search Results are coming. Whether it is coming from R3 System or some other Persistence Database.
    Steps:
    1)Go to Search Screen
    2)Select Order Template in Document Type drop down.
    3)Select other parameter and click on the go button.
    Search Result will be displayed below Search block.
    2)We added One extra text field called product id in the Search block and we want to search Order Template based on product id. How we can implement this functionality in the ISA Framework.

    Is there a XML file where I can configure the application to search for such orders which are in status "order template"
    Generic Search Framework was introduced from CRM 5.0 only. If you turn on the templates in the XCM configuration of the webshop, then you will most probably see them in the search.
    and how can I let them move from the template status to a open SO?
    Templates are never directly converted into Sales Orders. The templates make it easy for you to create a - say repetitive or periodic order. For example if month you order for several items to replenish your inventory - just an example. Every month filling the items in the order will be time consuming. So, we create a Template with all these items and save it for future use.
    These Templates always have the status order template.
    Now when you want to create Sales Order out of these templates, (a) ISA copies the template (2) creates a new order and (3) presents it to you for changes. You make changes to the template - such as quantities, dates, shipping address etc. and (4) Save the order.
    The template are left alone. The templates are never meant for one time use.Are you trying to use them as Quotations by any chance? If you don't want them in your system, you can always delete them.
    Well, to answer your question, follow the standard. Make a copy of the template and create a sales order.

  • Regarding FAST ESP Search

    Hi,
    We are using FAST ESP 3.0 serach engine at times we are getting this error
    "Error: [3] All partitions are down". When ever this happens the serach functioanity is not throwing an error. Can anyone please let me know what can be done to availd this.

    Hi,
    Thanks for the update. 
    If the master indexer becomes unavailable for any reason, the backup indexer could have taken over as master automatically. 
    You could check the indexer logs to see if this situation is logged. 
    Is ESP running on a Windows platform, I would suggest double checking the below items in case there are networking/communication problems causing this problem:
    Can you confirm that TCP offloading has been disabled on each Fast node, as outlined in the KB article
    http://support.microsoft.com/kb/2570111, including at the adapter and teaming configuration (if applicable)?
    Can you confirm that you have the %fastsearch% folder excluded from antivirus on your Fast node? Also, if on-access scanning occurs on these servers, we
    should confirm that all Fast processes have been configured as excluded in the antivirus exceptions, as outlined in
    http://technet.microsoft.com/en-us/library/ff381239.aspx in the section entitled “Configure anti-virus configuration”.   I would also suggest
    the %fastsearch% folders be excluded from any 3rd party utilities that traverse the disk, such as backup.
    If the above recommendations are already in place, I would want to see an infotool from this environment to view the indexing and search
    component logs, and it may be needed to enable debug on those components to get more information on the root cause for the partitions being down. 
    Due to the complexity that this problem commonly entails, I would suggest opening a service request with our Technical Support team, so we could further investigate, and help move this problem towards resolution.
    Thanks!
    Rob Vazzana | Sr Support Escalation Engineer | US Customer Service & Support
    Customer Service   & Support                         
      Microsoft| Services

  • Regarding Ranges : to search for a patter which starts with 0 and any no: 0

    HI,
    My requirement is to use ranges on LIFNR to select data from EKKO.
    Here, I need to give 000123 for a vendor 123. ie, I need to prefix zeros.
    The problem is I cannot use any pattern here.. like if I give 12*, the conversion exit will give a dump.
    Is there any pattern to specify <0(or any occurance of 0)>12.*
    Thanks in advance,
    Sreekanth
    Edited by: Sreekanth Krishnan on Dec 1, 2009 7:46 AM

    hai sreekanth,
    try given Below program, May be helpful For u.....
    TABLES LFA1.
    data : begin of ivendor OCCURS 10,
           lifnr like lfa1-lifnr,
           end of ivendor.
    data: iekko like ekko OCCURS 10 WITH HEADER LINE.
    SELECT-OPTIONS : VENDOR FOR LFA1-LIFNR.
    INITIALIZATION.
    VENDOR-LOW    =   1000.        " It specifies the range starting value.
    VENDOR-HIGH    =   2000.       " It specifies the range ending value.
    VENDOR-OPTION  =  'BT'.        " specifies ranges value is in between.
    VENDOR-SIGN      = 'I'.           "specifies both inclussive.
    APPEND VENDOR.
    shift vendor-low LEFT DELETING LEADING space.
    shift vendor-high LEFT DELETING LEADING space.
    ivendor-lifnr = vendor-low.
    CONCATENATE '000' ivendor-lifnr into ivendor-lifnr.
    append ivendor.
    loop at ivendor.
    if ivendor-lifnr+3(6) <> vendor-high.
    ivendor-lifnr = ivendor-lifnr + 1.
    shift ivendor-lifnr LEFT DELETING LEADING space.
    CONCATENATE '000' ivendor-lifnr into ivendor-lifnr.
    append ivendor.
    endif.
    endloop.
    select * from ekko into table iekko for all ENTRIES IN ivendor
                                      where lifnr = ivendor-lifnr.

  • ADFS SSO and SharePoint 2013 on-premise Hybrid outbound search results from SharePoint Online - does it work?

    Hi, 
    I want to setup an outpund hybrid search for SharePoint 2013 on-premise to SharePoint Online.
    But I'm not shure if this works with ADFS SSO.
    Has somebody experience with this setup?
    Here's my guide which I'm going to use for this installation:
    Introduction
    In this post I'll show you how to get search results from your SharePoint Online in your SharePoint 2013 on-premise search center.
    Requirements
    User synchronisation ActiveDirectory to Office 365 with DirSync
    DirSync password sync or ADFS SSO
    SharePoint Online
    SharePoint 2013 on-premise
    Enterprise Search service
    SharePoint Online Management Shell
    Instructions
    All configuration will be done either in the Search Administration of the Central Administration or in the PowerShell console of your on-premise SharePoint 2013 server.
    Set up Sever to Server Trust
    Export certificates
    To create a server to server trust we need two certificates.
    [certificate name].pfx: In order to replace the STS certificate, the certificate is needed in Personal Information Exchange (PFX) format including the private key.
    [certificate name].cer: In order to set up a trust with Office 365 and Windows Azure ACS, the certificate is needed in CER Base64 format.
    First launch the Internet Information Services (IIS) Manager
    Select your SharePoint web server and double-click Server Certificates
    In the Actions pane, click Create Self-Signed Certificate
    Enter a name for the certificate and save it with OK
    To export the new certificate in the Pfx format select it and click Export in the Actions pane
    Fill the fields and click OK Export to: C:\[certificate
    name].pfx Password: [password]
    Also we need to export the certificate in the CER Base64 format. For that purpose make a right-click on the certificate select it and click on View...
    Click the Details tab and then click Copy to File
    On the Welcome to the Certificate Export Wizard page, click Next
    On the Export Private Key page, click Next
    On the Export File Format page, click Base-64 encoded X.509 (.CER), and then click Next.
    As file name enter C:\[certificate
    name].cer and then click Next
    Finish the export
    Import the new STS (SharePoint Token Service) certificate
    Let's update the certificate on the STS. Configure and run the PowerShell script below on your SharePoint server.
    if(-not (Get-PSSnapin "Microsoft.SharePoint.PowerShell" -ErrorAction SilentlyContinue)){Add-PSSnapin "Microsoft.SharePoint.PowerShell"}
    # set the cerficates paths and password
    $PfxCertPath = "c:\[certificate name].pfx"
    $PfxCertPassword = "[password]"
    $X64CertPath = "c:\[certificate name].cer"
    # get the encrypted pfx certificate object
    $PfxCert = New-Object System.Security.Cryptography.X509Certificates.X509Certificate2 $PfxCertPath, $PfxCertPassword, 20
    # import it
    Set-SPSecurityTokenServiceConfig -ImportSigningCertificate $PfxCert
    Type Yes when prompted with the following message.
    You are about to change the signing certificate for the Security Token Service. Changing the certificate to an invalid, inaccessible or non-existent certificate will cause your SharePoint installation to stop functioning. Refer
    to the following article for instructions on how to change this certificate: http://go.microsoft.com/fwlink/?LinkID=178475. Are you
    sure, you want to continue?
    Restart IIS so STS picks up the new certificate.
    & iisreset
    & net stop SPTimerV4
    & net start SPTimerV4
    Now validate the certificate replacement by running several PowerShell commands and compare their outputs.
    # set the cerficates paths and password
    $PfxCertPath = "c:\[certificate name].pfx"
    $PfxCertPassword = "[password]"
    # get the encrypted pfx certificate object
    New-Object System.Security.Cryptography.X509Certificates.X509Certificate2 $PfxCertPath, $PfxCertPassword, 20
    # compare the output above with this output
    (Get-SPSecurityTokenServiceConfig).LocalLoginProvider.SigningCertificate
    [/code]
    ## Establish the server to server trust
    [code lang="ps"]
    if(-not (Get-PSSnapin "Microsoft.SharePoint.PowerShell" -ErrorAction SilentlyContinue)){Add-PSSnapin "Microsoft.SharePoint.PowerShell"}
    Import-Module MSOnline
    Import-Module MSOnlineExtended
    # set the cerficates paths and password
    $PfxCertPath = "c:\[certificate name].pfx"
    $PfxCertPassword = "[password]"
    $X64CertPath = "c:\[certificate name].cer"
    # set the onpremise domain that you added to Office 365
    $SPCN = "sharepoint.domain.com"
    # your onpremise SharePoint site url
    $SPSite="http://sharepoint"
    # don't change this value
    $SPOAppID="00000003-0000-0ff1-ce00-000000000000"
    # get the encrypted pfx certificate object
    $PfxCert = New-Object System.Security.Cryptography.X509Certificates.X509Certificate2 $PfxCertPath, $PfxCertPassword, 20
    # get the raw data
    $PfxCertBin = $PfxCert.GetRawCertData()
    # create a new certificate object
    $X64Cert = New-Object System.Security.Cryptography.X509Certificates.X509Certificate2
    # import the base 64 encoded certificate
    $X64Cert.Import($X64CertPath)
    # get the raw data
    $X64CertBin = $X64Cert.GetRawCertData()
    # save base 64 string in variable
    $CredValue = [System.Convert]::ToBase64String($X64CertBin)
    # connect to office 3656
    Connect-MsolService
    # register the on-premise STS as service principal in Office 365
    # add a new service principal
    New-MsolServicePrincipalCredential -AppPrincipalId $SPOAppID -Type asymmetric -Usage Verify -Value $CredValue
    $MsolServicePrincipal = Get-MsolServicePrincipal -AppPrincipalId $SPOAppID
    $SPServicePrincipalNames = $MsolServicePrincipal.ServicePrincipalNames
    $SPServicePrincipalNames.Add("$SPOAppID/$SPCN")
    Set-MsolServicePrincipal -AppPrincipalId $SPOAppID -ServicePrincipalNames $SPServicePrincipalNames
    # get the online name identifier
    $MsolCompanyInformationID = (Get-MsolCompanyInformation).ObjectID
    $MsolServicePrincipalID = (Get-MsolServicePrincipal -ServicePrincipalName $SPOAppID).ObjectID
    $MsolNameIdentifier = "$MsolServicePrincipalID@$MsolCompanyInformationID"
    # establish the trust from on-premise with ACS (Azure Control Service)
    # add a new authenticatio realm
    $SPSite = Get-SPSite $SPSite
    $SPAppPrincipal = Register-SPAppPrincipal -site $SPSite.rootweb -nameIdentifier $MsolNameIdentifier -displayName "SharePoint Online"
    Set-SPAuthenticationRealm -realm $MsolServicePrincipalID
    # register the ACS application proxy and token issuer
    New-SPAzureAccessControlServiceApplicationProxy -Name "ACS" -MetadataServiceEndpointUri "https://accounts.accesscontrol.windows.net/metadata/json/1/" -DefaultProxyGroup
    New-SPTrustedSecurityTokenIssuer -MetadataEndpoint "https://accounts.accesscontrol.windows.net/metadata/json/1/" -IsTrustBroker -Name "ACS"
    Add a new result source
    To get search results from SharePoint Online we have to add a new result source. Run the following script in a PowerShell ISE session on your SharePoint 2013 on-premise server. Don't forget to update the settings region
    if(-not (Get-PSSnapin "Microsoft.SharePoint.PowerShell" -ErrorAction SilentlyContinue)){Add-PSSnapin "Microsoft.SharePoint.PowerShell"}
    # region settings
    $RemoteSharePointUrl = "http://[example].sharepoint.com"
    $ResultSourceName = "SharePoint Online"
    $QueryTransform = "{searchTerms}"
    $Provier = "SharePoint-Remoteanbieter"
    # region settings end
    $SPEnterpriseSearchServiceApplication = Get-SPEnterpriseSearchServiceApplication
    $FederationManager = New-Object Microsoft.Office.Server.Search.Administration.Query.FederationManager($SPEnterpriseSearchServiceApplication)
    $SPEnterpriseSearchOwner = Get-SPEnterpriseSearchOwner -Level Ssa
    $ResultSource = $FederationManager.GetSourceByName($ResultSourceName, $SPEnterpriseSearchOwner)
    if(!$ResultSource){
    Write-Host "Result source does not exist. Creating..."
    $ResultSource = $FederationManager.CreateSource($SPEnterpriseSearchOwner)
    $ResultSource.Name = $ResultSourceName
    $ResultSource.ProviderId = $FederationManager.ListProviders()[$Provier].Id
    $ResultSource.ConnectionUrlTemplate = $RemoteSharePointUrl
    $ResultSource.CreateQueryTransform($QueryTransform)
    $ResultSource.Commit()
    Add a new query rule
    In the Search Administration click on Query Rules
    Select Local SharePoint as Result Source
    Click New Query Rule
    Enter a Rule name f.g. Search results from SharePoint Online
    Expand the Context section
    Under Query is performed on these sources click on Add Source
    Select your SharePoint Online result source
    In the Query Conditions section click on Remove Condition
    In the Actions section click on Add Result Block
    As title enter Results for "{subjectTerms}" from SharePoint Online
    In the Search this Source dropdown select your SharePoint Online result source
    Select 3 in the Items dropdown
    Expand the Settings section and select "More" link goes to the following URL
    In the box below enter this Url https://[example].sharepoint.com/search/pages/results.aspx?k={subjectTerms}
    Select This block is always shown above core results and click the OK button
    Save the new query rule

    Hi  Janik,
    According to your description, my understanding is that you want to display hybrid search results in SharePoint Server 2013.
    For achieving your demand, please have a look at the article:
    http://technet.microsoft.com/en-us/library/dn197173(v=office.15).aspx
    If you are using single sign-on (SSO) authentication, it is important to test hybrid Search functionality by using federated user accounts. Native Office 365 user accounts and Active Directory Domain Services
    (AD DS) accounts that are not federated are not recognized by both directory services. Therefore, they cannot authenticate using SSO, and cannot be granted permissions to resources in both deployments. For more information, see Accounts
    needed for hybrid configuration and testing.
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • AD FS 2012 R2 / Error when doing a search on Hybrid environment in sharepoint

    Hi All,
    We have an environment setup with Sharepoint Azure and Sharepiont online. Federation has been installed using Windows 2012 R2 ( ADFS 3.0). The trust between the Azure & Online was setup and hybrid search functionality was perfectly allright.
    Due to recent changes, we rebuild the Sharepoint Azure environment and the trust has been rebuild. Federation works fine, but when we logon to Sharepoint Online in o365 and do a search, it does not search the Azure platform sharepoint. We get Errors of
    - event id 325 (
    The Federation Service could not authorize token issuance for caller '<USERNAME>'. The caller is not authorized to request a token for the relying party 'urn:federation:MicrosoftOnline'. See event 501 with the same Instance ID for caller identity.
    -event id 1000 (An error occurred during processing of a token request. The data in this event may have the identity of the caller (application) that made this request
    another one is
    - event id 364 ( Encountered error during federation passive request. 
    I am not sure where we are going wrong now. here are few things we have checekd
    - we have rebuild the MSOL Federation using - Update-msolfederatedDomain 
    - Time sync between ADFS and proxy server verified.
    - service account has permissions on the cert private key
    - Issuance rules allows all users to access the federation. (two factor auth is setup and is working perfectly fine)
    Let me know what more i can check on this topic to get this up and running.
     

    Hi Prashant,
    Thank you for your posting!
    Since the issue is related to Azure, I suggest you refer to the experts on Azure forums to get more efficient support:
    Azure Active Directory Forum
    http://social.technet.microsoft.com/Forums/windowsazure/en-US/home?forum=windowsazureaditpro&filter=alltypes&sort=lastpostdesc
    Managing Services on Azure Forum
    http://social.technet.microsoft.com/Forums/windowsazure/en-US/home?forum=windowsazuremanagement
    Thank you for your understanding and support!
    Amy

Maybe you are looking for

  • Ipod will not sync with new Vista system

    I've downloaded Itunes to my new computer and cannot sync to my Ipod. Connections, diagnostics are all fine. I keep getting a message that Windows  cannot find the disk. I went to the sync center and cannot figure out how to sync the device. Any help

  • Ipod to stereo sound loss

    I've been searching a bit for this, but has anyone noticed some serious sound loss when connecting ipod to stereo or television and trying to play music? I've used it for TV and I didn't notice any major loss, but for music (using the standard headph

  • System performance

    hi. i have a problem . this program is taking so much time . can we reduce the execution time? pls help me. code is *& Report  ZTEST11 REPORT  ZTEST11 NO STANDARD PAGE HEADING LINE-SIZE 191                                        LINE-COUNT 65        

  • WAAS 4.1.1c and MAPI acceleration

    Hi, Have turned on everything which is possible, but MAPI acceleration monitor graphs are still empty. Does this mean that MAPI is not accelerated ? What are the prerequesites for MAPI to work correctly ?

  • Can't open after effects after renewal

    Don't know why after i renewd my plan for another month i'm not able to open AE. I waited more than 15 minutes as the window says and can't work now..... any advice??