code: public static ChaiUser createUser( final String userDN, final String sn, final ChaiProvider provider )
              throws ChaiOperationException, ChaiUnavailableException
      {
          final Map<String, String> createAttributes = new HashMap<>();
  
          createAttributes.put( ChaiConstant.ATTR_LDAP_SURNAME, sn );
  
          provider.createEntry( userDN, ChaiConstant.OBJECTCLASS_BASE_LDAP_USER, createAttributes );
  
          //lets create a user object
          return provider.getEntryFactory().newChaiUser( userDN );
      }
docs: Creates a new user entry in the ldap directory.  A new "inetOrgPerson" object is created in the
  ldap directory.  Generally, calls to this method will typically be followed by a call to the returned
  {@link com.novell.ldapchai.ChaiUser}'s write methods to add additional data to the ldap user entry.
  
  @param userDN   the new userDN.
  @param sn       the last name of
  @param provider a ldap provider be used to create the group.
  @return an instance of the ChaiUser entry
  @throws com.novell.ldapchai.exception.ChaiOperationException   If there is an error during the operation
  @throws com.novell.ldapchai.exception.ChaiUnavailableException If the directory server(s) are unavailable