X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;f=org.argeo.cms%2Fsrc%2Forg%2Fargeo%2Fcms%2Finternal%2Fkernel%2FNodeSecurity.java;h=13ecac4b09c1c599248420b2df2699114b1b3330;hb=d8b62960ec3c9d991840348c63dc0c8ce980233e;hp=83216d0484a96a896d6c4f95e1473bcce3ce1efe;hpb=08fac35eeedb151c2fd1cc85ed4a36adf66e02fc;p=lgpl%2Fargeo-commons.git diff --git a/org.argeo.cms/src/org/argeo/cms/internal/kernel/NodeSecurity.java b/org.argeo.cms/src/org/argeo/cms/internal/kernel/NodeSecurity.java index 83216d048..13ecac4b0 100644 --- a/org.argeo.cms/src/org/argeo/cms/internal/kernel/NodeSecurity.java +++ b/org.argeo.cms/src/org/argeo/cms/internal/kernel/NodeSecurity.java @@ -86,7 +86,7 @@ class NodeSecurity implements AuthenticationManager { File osgiInstanceDir = KernelUtils.getOsgiInstanceDir(); File homeDir = new File(osgiInstanceDir, "node"); - String baseNodeRoleDn = KernelConstants.ROLES_BASEDN; + String baseNodeRoleDn = KernelHeader.ROLES_BASEDN; File nodeRolesFile = new File(homeDir, baseNodeRoleDn + ".ldif"); try { FileUtils.copyInputStreamToFile( @@ -131,6 +131,8 @@ class NodeSecurity implements AuthenticationManager { @Override public Authentication authenticate(Authentication authentication) throws AuthenticationException { +// throw new UnsupportedOperationException( +// "Authentication manager is deprectaed and should not be used."); Authentication auth = null; if (authentication instanceof InternalAuthentication) auth = internalAuth.authenticate(authentication);