Package net.sf.ldaptemplate.support

Examples of net.sf.ldaptemplate.support.DistinguishedName


        attributes.put("telephoneNumber", dto.getPhone());
        attributes.put("userPassword", dto.getPasswd());

        log.info("FIO:" + fio);

        DistinguishedName webaccounts = new DistinguishedName();
        webaccounts.add("ou","webaccounts");
        webaccounts.add("cn", dto.getLogin());

        getLdapTemplate().bind(webaccounts, null, attributes);
    }
View Full Code Here


        this.ldapTemplate = ldapTemplate;
    }

   
    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.support.DistinguishedName

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.