Environment
Novell ZENworks 11 Configuration Management Support Pack 1 - ZCM 11 SP1
Situation
Logging into ZENworks fails.
ERROR:
User Authentication failed during a refresh.
User applications will not be available.
User applications will not be available.
ERROR (from zmd-messages.log):
[ObtainAuthToken took exception: -939589631 System.Exception: -939589631
at Novell.Casa.Client.Auth.Authtoken.ObtainAuthToken(String sService, String sHost, WinLuid luid, String()& extraData)]
at Novell.Casa.Client.Auth.Authtoken.ObtainAuthToken(String sService, String sHost, WinLuid luid, String()& extraData)]
...
[registerUser returned -34]
Resolution
In this case the webapps directory had only partial file listing for the CasaAuthTokenSvc folder. Stopping the ZENworks services, moving the folder share/tomcat/webapps/CasaAuthTokenSvc to a folder outside of ZENworks for backup and restarting the ZENworks services rebuilt the folder correctly. NOTE: The CasaAuthTokenSvc.war file is server specific due to the presence of the casa_crypto.properties key that is customized per server. This war/directory cannot be copied from one server to another.
Additional Information
Typically the error -939589631 indicates an agent configuration problem (see https://support.microfocus.com/kb/doc.php?id=7006427) but in this case it represented a condition of using a stale auth token against a server where the CASA web service was broken.