Package com.novell.ldap

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


      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


    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) {
        e1.printStackTrace();
      }
      rs = lc.search(ENTRYDN, LDAPConnection.SCOPE_SUB, "sn=" + user,
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.