public void add(String dn,String attributes,String delimiter,String seperator) throws NamingException, PageException {
  DirContext ctx=new InitialDirContext(env);
  ctx.createSubcontext(dn,toAttributes(attributes,delimiter,seperator));
  ctx.close();
}

public void add ( String dn , String attributes , String delimiter , String seperator ) throws NamingException , PageException { DirContext ctx = new InitialDirContext ( env ) ; ctx . createSubcontext ( dn , toAttributes ( attributes , delimiter , seperator ) ) ; ctx . close ( ) ; }
adds ldap entries to ldap server
