Hot answers tagged

9

"Keyset does not exist" means you need to give your web application pool identity account access to your certificate. Do this in the Certificates Snap In.


6

You can try this if I understand you correct? Microsoft.SharePoint.SPContext.Current.Web.CurrentUser.LoginName; or HttpContext.Current.User.Identity.Name and Microsoft.SharePoint.SPContext.Current.Web.CurrentUser.ID; hope this helps :)


6

Take a look at http://spcurrentusers.codeplex.com which may serve as a starting point. It's my solution, in case you're wondering :-) .b


4

Log Parsing or web analytics in general will give you good historical info, but generally not good real-time information. Querying the content database should absolutely not be done. Microsoft says that doing so will void any warranty or support. Anyone that has poked around with SharePoint enough will know that trying it absolutely does create problems ...


4

Do I need to do any configuration at Central Administrator? If you want it just for your personal machine then you shouldn't touch CA. You need to perform some additional steps, e.g. creating a group policy and modifying IE Enhanced Security Configuration. Follow this article out, How do I make our SharePoint site stop asking me to login? – Part I How ...


4

The error message shows the external user hasn’t been authenticated successfully. You can do the following steps to check if the problem persists: Click Site settings > Site permissions > click on any group such as Members group. On the selected group page, note the URL, change the number after the “=” to a “0″, then hit enter. A screen displaying all ...


4

i think your URL is different then MSFT recommended. Please use the below mentioned URL then try it. http://testing:10020/_layouts/closeConnection.aspx?loginasanotheruser=true Read more about it over here


3

search cookieHandler in web.config of your webapplication, then add the persistentSessionLifetime property: <cookieHandler mode="Custom" path="/" persistentSessionLifetime="1.0:0:0"> http://msdn.microsoft.com/en-us/library/microsoft.identitymodel.web.configuration.cookiehandlerelement.persistentsessionlifetime.aspx it seams the property just have ...


3

In the end, I didn't use the ASP:Login control. I just designed my own login box with two textboxes. Username and password. My login box, and my change password box are in two panels on the page. One hidden the other not. The person logs in, checks with the database if it is valid and if they need to change their password, if so, hides the login box panel, ...


3

DisableLoopBackCheck Regedit -> HKLM->SYSTEM->CurrentControlSet->Control-> LSA Create a DWORD Entry and set the Value data "1" A loopback security check was introduced in Windows Server 2003 Service Pack 1 and it is also present in Windows Server 2008. The loopback security check feature prevents access to a web application using a fully qualified domain ...


3

I guess the most easiest way I know is to show it by JavaScript using SPServices. Look to SPServices documentation and examples for getting current user. This way allows to do that without extra server side codding. Sample: var thisUserName = $().SPServices.SPGetCurrentUser({ fieldName: "Title", debug: false }); Then put thisUserName where you need.


3

Hi I had the very same issue after restoring. The accepted solution by user879 to this question seems to help: I can't login to SharePoint 2010, what's wrong? (answer here). You can give it a try, but be aware that disabling the loopback could pose a threat as per the article posted by James in the comment - disable loopback check & sharepoint


3

This could work, but only for a given SPWeb: Get-SPUser -Web http://localhost | ForEach-Object { $_.Id }


3

Thought it wouldn't be advisable to have multiple people using the same login, there isn't any limits specifically to the number of concurrent connections per username. For capacity planning, treat each individual connection as unique when determining the number of users you need to support. So, if 3000 people are using the same account, plan for 3000 ...


3

To my knowledge there is no direct way to retrieve this easily. Enabling Audit logs is not a good call as it creates a lot of data for nothing, and particularly it is per Site Collection, which leaves the question : "do you enable this for all site collections?" - you are in for a tremendous amount of information - weight that carefully. In the past we've ...


3

I had faced the similar issue when i was working with STS. The reason you get the error is because there is no trust being established between the Sharepoint and STS . If i am not wrong you might be getting the error at the below lines of code :) This is definitely a certificate issue. SecurityTokenService sts = new ...


3

If you maintain MySites in another web application you need to know that pictures are stored in a library User photos in My sites Host, reason for which everywhere where User picture needs to appear (e.g. comments, notes) it makes a separate request to the other Web Application. if the site loading pictures is itself anonymous, you would need to enable ...


3

This can be done by specifying a Return URL in the form URL by providing a value to Source querystring. For example: http://<site>/Announcements/Forms/NewItem.aspx?Source=http://<site>/default.aspx Here when a user clicks on OK button in Announcements New form, the user is redirected to deafult.aspx page rather than the AllItems.aspx page of ...


3

You totally can do this, using external users in SharePoint Online, and there are no licensing fees involved, and it is totally supported by Microsoft. In your tenant administration site, hightlight a site collection and click the "sharing" icon. Then select the button reading "allow users who accept sharing invitations and sign in as authenticated users". ...


3

There is no way you'll ever get access to the users password. (In fact SharePoint don't know it, as Authentication is handles by other components. In fact even these hopefully don't know it, but only have some hash of it). To access anything in the host web you can use the cross-domain library. Login will be handlede automatically. See How to: Access ...


3

This should do the trick SPWeb theSite = Microsoft.SharePoint.WebControls.SPControl.GetContextWeb(Context); SPUser theUser = theSite.CurrentUser; string strUserName = theUser.LoginName.ToLower(); string strUserName = strUserName.IndexOf('|') > -1 ? strUserName.Split('|')[1] : strUserName


3

If you are accessing your site on your server and it is continuously prompting for log-in popup then It can be solved by disabling loopback check. Refer this link: http://www.c-sharpcorner.com/UploadFile/shyjumohan/disable-loop-back-check-in-windows-server-2012/ FYI, Microsoft has introduced a security feature in 2003 Server to prevent attacks on Windows ...


3

From a home/personal Office 365 stand point, yes it would be similar to any other internet service that if your password is compromised, then someone can get into your tenant. However, any business that is using Office 365 is highly likely to be synchronizing objects from local Active Directory to SharePoint, and therefore you are using auth credentials ...


3

You can use FancyBox modal popup that should be only shown one time for each user based on his session. function openFancybox() { setTimeout(function() { $('#yt').trigger('click'); }, 500); }; $(document).ready(function() { var visited = $.cookie('visited'); if (visited == 'yes') { return false; // second page load, cookie active } else { openFancybox();...


3

From my point, you should start with Azure AD application. Create a new app registration in Azure AD, give it permissions to SharePoint. Then go ahead with react-native-azure-ad and build an app, which gets access token for SharePoint. With access token, you can easily call SharePoint REST API. As far as I know, react native also supports OAuth implicit ...


2

I must confess is the 1st time i've heard that same account is used by the multiple people (except for Administratrive accounts) also because I'm not sure Microsoft would be happy with this model due to the CALs implications, not to mention the fact that this defeats the whole purpose of data security, permissions and overall you loose any sense of tracking ...


2

Check if your hardware meets the SharePoint requirements specified in the SharePoint Deployment Guide. Also a wake up script could reduce the load time for end users. There are various scripts available for free.


2

There is no out of the box solution for this thing. Microsoft is offering server based solutions not related to sharepoint at all. Look for Microsoft Lync 2013 http://lync.microsoft.com/en-us/Pages/unified-communications.aspx If installed and configured the precense of the user will lit up next to the people information of documents or contact webparts. ...


2

This is due to you having localSystem as a service account that accesses the database.. on the database in question add the user domain\machinename$ to the security group... I wouldn't recommend this because this is a highly priviledged account. it is best to create a new service account and change the service account sharepoint uses in central ...


2

People often ask about how to check the last date when a user logged on into a domain, and they very often try to get that information basing on lastLogon attribute. BUT...the lastLogon active directory attribute is not the best attribute to query for this information (IMO); you should use the lastLogontimeStamp. Microsoft's intended purpose of the ...


Only top voted, non community-wiki answers of a minimum length are eligible