Sharepoint starts throwing error on login after a couple weeks with ldapcp installed

May 27, 2015 at 3:38 PM
We have ldapcp installed and configured with a Trusted Identity token issuer and ADLDS. There are other authentication mechanisms available in the web application, but ldapcp is only associated with one trusted identity token issuer. Everything will work great for a few weeks, then we start getting errors on login. The errors are having to do with super user and super reader accounts not having access. I run the following script on the web app and then all is fine again.

$wa = Get-SPWebApplication -Identity "https://xyz.com"
$wa.Properties.Remove("portalsuperuseraccount")
$wa.Update()
$wa.Properties.Remove("portalsuperreaderaccount")
$wa.Update()

Then a few weeks later this happens again. Any ideas on a permanent fix for this.

Thanks,

Ken