Package javax.naming.directory

Examples of javax.naming.directory.InitialDirContext.lookup()


        env.put(Context.SECURITY_CREDENTIALS,
                bindPwd == null ? ldapConnConf.get("credentials").getValues().get(0) : bindPwd);

        try {
            final InitialDirContext ctx = new InitialDirContext(env);
            return ctx.lookup(objectDn);
        } catch (Exception e) {
            return null;
        }
    }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.