Package edu.monash.merc.dto

Examples of edu.monash.merc.dto.LDAPProperty


        this.appSettings = appSettings;
    }

    @PostConstruct
    public void ldapEnvInit() {
        LDAPProperty ldapProp = new LDAPProperty();
        ldapProp.setLdapFactory(appSettings.getPropValue(AppPropSettings.LDAP_FACTORY));
        ldapProp.setLdapServer(appSettings.getPropValue(AppPropSettings.LDAP_SERVER_URL));
        ldapProp.setProtocol(appSettings.getPropValue(AppPropSettings.LDAP_SECURITY_PROTOCOL));
        ldapProp.setAuthentication(appSettings.getPropValue(AppPropSettings.LDAP_AUTHENTICATION));
        ldapProp.setBaseDN(appSettings.getPropValue(AppPropSettings.LDAP_BASE_DN));
        ldapProp.setAttUID(appSettings.getPropValue(AppPropSettings.LDAP_UID_ATTR_NAME));
        ldapProp.setAttMail(appSettings.getPropValue(AppPropSettings.LDAP_MAIL_ATTR_NAME));
        ldapProp.setAttGender(appSettings.getPropValue(AppPropSettings.LDAP_GENDER_ATTR_NAME));
        ldapProp.setAttCN(appSettings.getPropValue(AppPropSettings.LDAP_CN_ATTR_NAME));
        ldapProp.setAttSn(appSettings.getPropValue(AppPropSettings.LDAP_SN_ATTR_NAME));
        ldapProp.setAttGivenname(appSettings.getPropValue(AppPropSettings.LDAP_GIVENNAME_ATTR_NAME));
        ldapProp.setAttPersonalTitle(appSettings.getPropValue(AppPropSettings.LDAP_PERSONAL_TITLE_ATTR_NAME));
        this.ldapUtil.initEnv(ldapProp);
    }
View Full Code Here


        String givennameAttrName = "givenname";

        String snAttrName = "sn";
        LDAPUtil ldap = new LDAPUtil();

        LDAPProperty ldapProp = new LDAPProperty();
        ldapProp.setLdapFactory(factory);
        ldapProp.setLdapServer(serverUrl);
        ldapProp.setProtocol(protocol);
        ldapProp.setAuthentication(authentication);
        ldapProp.setBaseDN(baseDn);
        ldapProp.setAttUID(uidAttrName);
        ldapProp.setAttMail(mailAttrName);
        ldapProp.setAttGender(genderAttrName);
        ldapProp.setAttCN(cnAttrName);
        ldapProp.setAttSn(snAttrName);
        ldapProp.setAttGivenname(givennameAttrName);
        ldapProp.setAttPersonalTitle(personalTitleAttrName);

        ldap.initEnv(ldapProp);

        String usrdn = ldap.findUserDn("xiyu");
        System.out.println("user dn: " + usrdn);
View Full Code Here

TOP

Related Classes of edu.monash.merc.dto.LDAPProperty

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.