+ if (spnegoToken == null) {
+ if (!sharedState.containsKey(CmsAuthUtils.SHARED_STATE_NAME)) {
+ // workaround: set shared state name to empty
+ // in order to avoid Krb5LoginModule printing to System.out
+ // TODO ask upstream to only log in debug mode
+ sharedState.put(CmsAuthUtils.SHARED_STATE_NAME, "");
+ }