#!/bin/bash ( set -e set -u export CLASSPATH=.:`echo lib/server/*.jar | sed 's/ /:/g'` cat > ldap.xml < Sets the keystore and truststore System properties on start-up EOF cat > ldap.java < results = (List) template.search("", config.usernameFilter(USER).encode(), new ContextMapper(){ public Object mapFromContext(Object arg0) { DirContextAdapter ctx = (DirContextAdapter) arg0; System.out.println(ctx.getNameInNamespace()); return ctx.getNameInNamespace(); }}); if (results == null || results.size() == 0) { System.out.println("Nothing found!"); } } } EOF cat > ldap.properties <