DirContext adminCtx = getAdminContext();
DirContext adminCtx = getContextAsAdmin();
    public void addUserToGroup( String userUid, String groupCn ) throws NamingException    {        DirContext adminCtx = getAdminContext();        Attributes changes = new BasicAttributes( "uniqueMember",                "uid="+userUid+",ou=users,ou=system", true );        adminCtx.modifyAttributes( "cn="+groupCn+",ou=groups",                DirContext.ADD_ATTRIBUTE, changes );    }