+ if (System.getProperty(KernelConstants.PROP_ARGEO_NODE_KRB5_KEYTAB) == null) {
+ System.setProperty(KernelConstants.PROP_ARGEO_NODE_KRB5_KEYTAB,
+ KernelUtils.getOsgiInstancePath(KernelConstants.NODE_KEY_TAB_PATH).toString());
+ }
+ Path kt = Paths.get(System.getProperty(KernelConstants.PROP_ARGEO_NODE_KRB5_KEYTAB));
+ if (nodeKeyTab != null) {
+ if (!nodeKeyTab.equals(kt))
+ throw new IllegalStateException("A node keytab is already set");
+ } else {
+ nodeKeyTab = kt;
+ }