Package com.novell.ldap

Examples of com.novell.ldap.LDAPConnection.connect()


    if (sPort2.matches("^\\d+$"))
      MY_PORT = Integer.parseInt(sPort2);
    LDAPConnection lc = null;
    try {
      lc = new LDAPConnection();
      lc.connect(MY_URL, MY_PORT);
      lc.bind(3, MY_USER, password.getBytes("UTF8"));
    } catch (UnsupportedEncodingException e1) {
      e1.printStackTrace();
    } catch (LDAPException e) {
      e.printStackTrace();
View Full Code Here


    final String ENTRYDN = "o=zephyr.com.cn";
    final String[] attrNames = { "sn", "mobile", "mail" };

    try {
      lc = new LDAPConnection();
      lc.connect(MY_HOST, MY_PORT);
      String password = "secret";
      try {
        lc.bind(3, "cn=Manager,o=zephyr.com.cn", password
            .getBytes("UTF8"));
      } catch (UnsupportedEncodingException e1) {
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.