Clear-SPDistributedCacheItem无法正常工作 [英] Clear-SPDistributedCacheItem not working

查看:62
本文介绍了Clear-SPDistributedCacheItem无法正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我正在本地SharePoint 2016上工作.

将用户添加到广告组不会影响权限,除非我等待24小时……据我所知,这是一个方面的行为.

清除  DistributedLogonTokenCache应该可以使事情正常工作,但事实并非如此,我尝试运行此命令时没有任何运气:

解决方案

主动目录安全组和基于SHAREPOINT声明的身份验证

 Add-PSSnapin Microsoft.SharePoint.PowerShell; 


CS = [Microsoft.SharePoint.Administration.SPWebService] :: ContentService; #TokenTimeout值

CS.TokenTimeout;


Hi all,

I'm working on a SharePoint 2016 on premises environment.

Adding users to AD Groups doesn't affect permission unless I wait 24 hours... as far as I know this is the aspected behaviour.

Clearing  DistributedLogonTokenCache should make things work but it doesn't, I've tried running this command without any luck:

Clear-SPDistributedCacheItem -ContainerType DistributedLogonTokenCache

This is definetly not working, the only thing I can do is IISRESET or decresing token expration timeout.

Is there an easier way to do that?

解决方案

Hi Maurizio Angeli,

SharePoint 2013/2016 Claim-based authentication using STS (security token service) to provide access tokens for server to server authentication. token life time is 10 hours by default and SharePoint cache the AD security details for 24 hours ( the default case you already talking about ). then you either wait until SharePoint do re-issue tokens using STS or execute power-script for reducing the token life time . the following script achieve your need .

Original Post ACTIVE DIRECTORY SECURITY GROUPS AND SHAREPOINT CLAIMS BASED AUTHENTICATION

Add-PSSnapin Microsoft.SharePoint.PowerShell;


CS = [Microsoft.SharePoint.Administration.SPWebService]::ContentService; #TokenTimeout value before


CS.TokenTimeout;


这篇关于Clear-SPDistributedCacheItem无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆