Create Attributes object, fill it with attributes and call createSubcontext() method of the DirContext object
Adding entries is an administrative tasks and should be done via LDAP server backend
Retrieve Attributes object by calling createSubcontext() method of the DirContext object and call addAttribute() method to add attributes
Create Attributes object, fill it with attributes and call createSubcontext() method of the LdapSession object
Retrieve Attributes object by calling addSubcontext() method of the DirContext object and fill it with attributes
Pass a string of the form "cn=NewUser,sn=Smith,mail=newuser@foo.com" to the addEntry() method of the DirContext object
|