Package net.sf.ldaptemplate

Examples of net.sf.ldaptemplate.AttributesMapper


   
    public String checkAlreadyExists(String login) {
        DistinguishedName webaccounts = new DistinguishedName();
        webaccounts.add("ou","webaccounts");

        List lst = getLdapTemplate().search(webaccounts, "cn=" + login, new AttributesMapper() {
            @Override
            public Object mapFromAttributes(Attributes attrs) throws NamingException {
               return attrs.get("cn").get();
            }
         });
View Full Code Here

TOP

Related Classes of net.sf.ldaptemplate.AttributesMapper

Copyright © 2018 www.massapicom. 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.