The Connector Server fails to read Skype for Business attributes from Active Directory (AD). This issue typically manifests during account modification or creation when the system cannot establish a proper remote shell session with the Skype for Business server.
Symptoms
JNDI: [LDAP: error code 1 - Unable to get Skype for Business attributes: System.Management.Automation.Remoting.PSRemotingTransportException: Starting a command on remote server failed... The request for the Windows Remote Shell with ShellId XXXXXXX failed because the shell was not found on the server.]Unable to determine Skype for Business User Enabled status: No management object found for identityAll Identity Suite
The ADS_LYNC_SESSION_PERSISTS system environment variable is not defined on the Connector Server machine. Without this variable set to 0, the session management for PowerShell remoting fails to correctly recycle or identify the remote shell, leading to JNDI/LDAP communication errors.
To resolve this issue, you must disable Lync session persistence by adding a system environment variable:
ADS_LYNC_SESSION_PERSISTS0