LDAP getting the previous dn less than 1 minute read public static String getPreviousDN(String dn) { String retString = null; try { DirContext DirCtx = DriverLocator.getInstance().getDirectory(); NameParser parser = DirCtx.getNameParser(""); Name resultdn = parser.parse(dn); resultdn = resultdn.getPrefix(resultdn.size()-1); retString = resultdn.toString(); DirCtx.close(); } catch (Exception e) { //forget errors //e.printStackTrace(); System.err.println("DAOHelper getPreviousDN unable to parse dn " + dn); } //debugging //System.out.println("nameparsertest dn(size-2) = " + retString); return retString; } Twitter Facebook LinkedIn Previous Next Comments
Spring Boot Different ways to start an application less than 1 minute read Spring Boot - Different ways to start an application
Tracing PWA new content refresh event less than 1 minute read I was using this wrapper around PWA(Progress Web Apps) APIs register-service-worker and was wondering how does it detect when there is a new build and the pa...
Comments