// conn.authenticate("cn=Manager,dc=example,dc=com", "secret");
conn.bind(ldapVersion, ROOT_DN, ROOT_PASSWORD.getBytes("utf-8"));
System.out.println("========> create ldap entry " + EXO_DEVELOPER_DN);
LDAPAttributeSet attributeSet = new LDAPAttributeSet();
attributeSet.add(new LDAPAttribute("objectClass", "person"));
attributeSet.add(new LDAPAttribute("cn", "exo"));
attributeSet.add(new LDAPAttribute("sn", "platform"));
attributeSet.add(new LDAPAttribute("telephonenumber", "0989654990"));
LDAPEntry newEntry = new LDAPEntry(EXO_DEVELOPER_DN, attributeSet);
conn.add(newEntry);
System.out.println("<======Added object: " + EXO_DEVELOPER_DN + " successfully.");
System.out.println("\nAdded object: " + EXO_DEVELOPER_DN + " successfully.");