chenge username/password in admin application

View: New views
14 Messages — Rating Filter:   Alert me  

chenge username/password in admin application

by Giusanny :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

Please,

anybody knows how to change user and password of the application “admin” ?

 

Thanks in advance

Giuseppe

 


_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org

Re: chenge username/password in admin application

by Mondain :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I think its "password", btw we made this app into a plugin which will be available with 0.9.0 RC2 within 30 days. I'll make a note to add change password functionality a bit simpler.

Paul

On Tue, Oct 13, 2009 at 7:22 AM, Giusanny <giusanny@...> wrote:

Please,

anybody knows how to change user and password of the application “admin” ?

 

Thanks in advance

Giuseppe

 


_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org




--
http://gregoire.org/
http://code.google.com/p/red5/
http://code.google.com/p/blue5/

_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org

R: chenge username/password in admin application

by Giusanny :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

Thanks Paul!

 

But how could I get into the db to change it?

Or it’s possible to change the db? In order to have a Single Sign On with other applications?

 

Giuseppe

 

Da: red5-bounces@... [mailto:red5-bounces@...] Per conto di Mondain
Inviato: martedì 13 ottobre 2009 21.44
A: red5@...
Oggetto: Re: [Red5] chenge username/password in admin application

 

I think its "password", btw we made this app into a plugin which will be available with 0.9.0 RC2 within 30 days. I'll make a note to add change password functionality a bit simpler.

 

Paul

On Tue, Oct 13, 2009 at 7:22 AM, Giusanny <giusanny@...> wrote:

Please,

anybody knows how to change user and password of the application “admin” ?

 

Thanks in advance

Giuseppe

 


_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org




--
http://gregoire.org/
http://code.google.com/p/red5/
http://code.google.com/p/blue5/


_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org

Re: R: chenge username/password in admin application

by Mondain :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Its a derby database, sometimes referred to as javadb so just lookup how to access the user table via derby using jdbc and you will be good to go.

Paul

On Wed, Oct 14, 2009 at 1:11 AM, Giusanny <giusanny@...> wrote:

Thanks Paul!

 

But how could I get into the db to change it?

Or it’s possible to change the db? In order to have a Single Sign On with other applications?

 

Giuseppe

 

Da: red5-bounces@... [mailto:red5-bounces@...] Per conto di Mondain
Inviato: martedì 13 ottobre 2009 21.44
A: red5@...
Oggetto: Re: [Red5] chenge username/password in admin application

 

I think its "password", btw we made this app into a plugin which will be available with 0.9.0 RC2 within 30 days. I'll make a note to add change password functionality a bit simpler.

 

Paul

On Tue, Oct 13, 2009 at 7:22 AM, Giusanny <giusanny@...> wrote:

Please,

anybody knows how to change user and password of the application “admin” ?

 

Thanks in advance

Giuseppe

 


_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org




--
http://gregoire.org/
http://code.google.com/p/red5/
http://code.google.com/p/blue5/


_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org




--
http://gregoire.org/
http://code.google.com/p/red5/
http://code.google.com/p/blue5/

_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org

Re: chenge username/password in admin application

by Mondain :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

FYI, I just heard about this application which you could use to access the derby db used by the admin application:

Paul

On Tue, Oct 13, 2009 at 12:43 PM, Mondain <mondain@...> wrote:
I think its "password", btw we made this app into a plugin which will be available with 0.9.0 RC2 within 30 days. I'll make a note to add change password functionality a bit simpler.

Paul

On Tue, Oct 13, 2009 at 7:22 AM, Giusanny <giusanny@...> wrote:

Please,

anybody knows how to change user and password of the application “admin” ?

 

Thanks in advance

Giuseppe

 


_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org




--
http://gregoire.org/
http://code.google.com/p/red5/
http://code.google.com/p/blue5/



--
http://gregoire.org/
http://code.google.com/p/red5/
http://code.google.com/p/blue5/

_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org

R: chenge username/password in admin application

by Giusanny :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

Thanks Paul, waiting for the feature in RC2 I post a simple jsp to change the pwd (made just in 5 minutes…)  just to participate a little to the red5 project :D and help someone else…

 

<%@ page language="java" import = "org.springframework.security.providers.encoding.*,org.apache.derby.jdbc.*,javax.sql.*,java.sql.*" %>  

<%

if(request.getParameter("cambia")!=null){

                               String prop = System.getenv("DERBY_HOME");

 

                               if (prop == null) {

                                               prop = System.getProperty("user.home");

                               }

                               System.setProperty("derby.system.home", prop);

                              

                               Connection conn = null;

                               Statement stmt = null;

                               try {

            // JDBC stuff

                                               DataSource ds = null;

                                               try {

                                                               Object o = null;

                                                               if (o == null) {

                                                                              EmbeddedDataSource eds = new EmbeddedDataSource();

                                                                              eds.setCreateDatabase("create");

                                                                              eds.setDatabaseName("Admin");

                                                                              eds.setPassword("APP");

                                                                              eds.setUser("APP");

 

                                                                              ds = eds;

                                                               } else {

                                                                              ds = (DataSource) o;

                                                               }

                                               } catch (Exception e) {

                                                               out.println("Context check for datasource " + e.getMessage() );

                                               }

                                              

                                               //create the db and get a connection

                                               conn = ds.getConnection();

                                               //make a statement

                                               stmt = conn.createStatement();

                                              

                                               String user = request.getParameter("username");

                                               String password = request.getParameter("password");

                                               String newPassword = request.getParameter("newPassword");

                                              

                                               Md5PasswordEncoder md5 = new Md5PasswordEncoder();

                                               password = md5.encodePassword(password, "seKret").toString();

                                               newPassword = md5.encodePassword(newPassword, "seKret").toString();

                                               //update

                                               stmt.execute("Update APPUSER set password = '"+newPassword+"' WHERE username='"+user+"' and password = '"+password+"'");

                               } catch (Exception e) {

                                               out.println("Error in db setup " + e.getMessage());

                               } finally {

                                               if (stmt != null) {

                                                               try {

                                                                              stmt.close();

                                                               } catch (SQLException e) {

                                                               }

                                               }

                                               if (conn != null) {

                                                               try {

                                                                              conn.close();

                                                               } catch (SQLException e) {

                                                               }

                                               }

                               }

}

%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">

<head>

  <title>Red5 Admin</title>

  <meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type" />

  <style type="text/css" media="screen">

html, body, #containerA, #containerB { height: 100%;

}

.formbg { background-color: rgb(238, 238, 238);

}

.formtable { border: 2px solid rgb(183, 186, 188);

}

 

.formtext { font-family: Arial,Helvetica,sans-serif;

    font-size: 12px;

    color: rgb(11, 51, 73);

}

 

body { margin: 0pt;

padding: 0pt;

overflow: hidden;

background-color: rgb(250, 250, 250);

}

.error {

                font-family: Arial,Helvetica,sans-serif;

                font-size: 12px;

                color: red;

}

  </style>

</head>

<body>

<table style="text-align: left; width: 100%; height: 100%;" border="0" cellpadding="0" cellspacing="10">

  <tbody>

    <tr>

      <td height="54"><img style="width: 136px; height: 54px;" alt="" src="assets/logo.png" /></td>

    </tr>

    <tr class="formbg">

      <td align="center" valign="middle">

      <table style="width: 400px;" class="formtable" border="0" cellpadding="0" cellspacing="2">

      <tr>

                <td class="formtext">&nbsp;<b>Register Admin User</b></td>

      </tr>

      <tr>

      <td>

      <form method="post" action="changePwd.jsp">

      <input type="hidden" name="cambia" value="vai" />

        <table style="width: 400px;"  border="0" cellpadding="0" cellspacing="5">

          <tbody>

            <tr>

              <td align="right" width="20%" class="formtext">Username:</td>

                                       <td width="20%">

                                           <input name="username" value="" />

                                       </td>

                                    </tr>

            <tr>

                                                 <td align="right" width="20%" class="formtext">Password:</td>

                                       <td width="20%">

                                         <input type="password" name="password" value="" />

                                       </td>

                                    </tr>

            <tr>

                                                 <td align="right" width="20%" class="formtext">new Password:</td>

                                       <td width="20%">

                                         <input type="newPassword" name="newPassword" value="" />

                                       </td>

                                    </tr>

            <tr>

              <td><input type="submit" value="Submit" /></td>

              <td></td>

              <td class="error">

              </td>

 

            </tr>

          </tbody>

        </table>

      </form>

      </td>

      </tr>

      </table>

      </td>

    </tr>

 

  </tbody>

</table>

<br />

</body>

</html>

 

p.s. just put the jsp in admin folder…

Giuseppe

 

Da: red5-bounces@... [mailto:red5-bounces@...] Per conto di Mondain
Inviato: giovedì 15 ottobre 2009 20.43
A: red5@...
Oggetto: Re: [Red5] chenge username/password in admin application

 

FYI, I just heard about this application which you could use to access the derby db used by the admin application:

 

Paul

On Tue, Oct 13, 2009 at 12:43 PM, Mondain <mondain@...> wrote:

I think its "password", btw we made this app into a plugin which will be available with 0.9.0 RC2 within 30 days. I'll make a note to add change password functionality a bit simpler.

 

Paul

On Tue, Oct 13, 2009 at 7:22 AM, Giusanny <giusanny@...> wrote:

Please,

anybody knows how to change user and password of the application “admin” ?

 

Thanks in advance

Giuseppe

 

 

_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org




--
http://gregoire.org/
http://code.google.com/p/red5/
http://code.google.com/p/blue5/




--
http://gregoire.org/
http://code.google.com/p/red5/
http://code.google.com/p/blue5/


_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org

Re: R: chenge username/password in admin application

by Dominick Accattato-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Maybe, you want to add that to the wiki? ;)

On Fri, Oct 16, 2009 at 4:19 AM, Giusanny <giusanny@...> wrote:

Thanks Paul, waiting for the feature in RC2 I post a simple jsp to change the pwd (made just in 5 minutes…)  just to participate a little to the red5 project :D and help someone else…

 

<%@ page language="java" import = "org.springframework.security.providers.encoding.*,org.apache.derby.jdbc.*,javax.sql.*,java.sql.*" %>  

<%

if(request.getParameter("cambia")!=null){

                               String prop = System.getenv("DERBY_HOME");

 

                               if (prop == null) {

                                               prop = System.getProperty("user.home");

                               }

                               System.setProperty("derby.system.home", prop);

                              

                               Connection conn = null;

                               Statement stmt = null;

                               try {

            // JDBC stuff

                                               DataSource ds = null;

                                               try {

                                                               Object o = null;

                                                               if (o == null) {

                                                                              EmbeddedDataSource eds = new EmbeddedDataSource();

                                                                              eds.setCreateDatabase("create");

                                                                              eds.setDatabaseName("Admin");

                                                                              eds.setPassword("APP");

                                                                              eds.setUser("APP");

 

                                                                              ds = eds;

                                                               } else {

                                                                              ds = (DataSource) o;

                                                               }

                                               } catch (Exception e) {

                                                               out.println("Context check for datasource " + e.getMessage() );

                                               }

                                              

                                               //create the db and get a connection

                                               conn = ds.getConnection();

                                               //make a statement

                                               stmt = conn.createStatement();

                                              

                                               String user = request.getParameter("username");

                                               String password = request.getParameter("password");

                                               String newPassword = request.getParameter("newPassword");

                                              

                                               Md5PasswordEncoder md5 = new Md5PasswordEncoder();

                                               password = md5.encodePassword(password, "seKret").toString();

                                               newPassword = md5.encodePassword(newPassword, "seKret").toString();

                                               //update

                                               stmt.execute("Update APPUSER set password = '"+newPassword+"' WHERE username='"+user+"' and password = '"+password+"'");

                               } catch (Exception e) {

                                               out.println("Error in db setup " + e.getMessage());

                               } finally {

                                               if (stmt != null) {

                                                               try {

                                                                              stmt.close();

                                                               } catch (SQLException e) {

                                                               }

                                               }

                                               if (conn != null) {

                                                               try {

                                                                              conn.close();

                                                               } catch (SQLException e) {

                                                               }

                                               }

                               }

}

%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">

<head>

  <title>Red5 Admin</title>

  <meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type" />

  <style type="text/css" media="screen">

html, body, #containerA, #containerB { height: 100%;

}

.formbg { background-color: rgb(238, 238, 238);

}

.formtable { border: 2px solid rgb(183, 186, 188);

}

 

.formtext { font-family: Arial,Helvetica,sans-serif;

    font-size: 12px;

    color: rgb(11, 51, 73);

}

 

body { margin: 0pt;

padding: 0pt;

overflow: hidden;

background-color: rgb(250, 250, 250);

}

.error {

                font-family: Arial,Helvetica,sans-serif;

                font-size: 12px;

                color: red;

}

  </style>

</head>

<body>

<table style="text-align: left; width: 100%; height: 100%;" border="0" cellpadding="0" cellspacing="10">

  <tbody>

    <tr>

      <td height="54"><img style="width: 136px; height: 54px;" alt="" src="assets/logo.png" /></td>

    </tr>

    <tr class="formbg">

      <td align="center" valign="middle">

      <table style="width: 400px;" class="formtable" border="0" cellpadding="0" cellspacing="2">

      <tr>

                <td class="formtext">&nbsp;<b>Register Admin User</b></td>

      </tr>

      <tr>

      <td>

      <form method="post" action="changePwd.jsp">

      <input type="hidden" name="cambia" value="vai" />

        <table style="width: 400px;"  border="0" cellpadding="0" cellspacing="5">

          <tbody>

            <tr>

              <td align="right" width="20%" class="formtext">Username:</td>

                                       <td width="20%">

                                           <input name="username" value="" />

                                       </td>

                                    </tr>

            <tr>

                                                 <td align="right" width="20%" class="formtext">Password:</td>

                                       <td width="20%">

                                         <input type="password" name="password" value="" />

                                       </td>

                                    </tr>

            <tr>

                                                 <td align="right" width="20%" class="formtext">new Password:</td>

                                       <td width="20%">

                                         <input type="newPassword" name="newPassword" value="" />

                                       </td>

                                    </tr>

            <tr>

              <td><input type="submit" value="Submit" /></td>

              <td></td>

              <td class="error">

              </td>

 

            </tr>

          </tbody>

        </table>

      </form>

      </td>

      </tr>

      </table>

      </td>

    </tr>

 

  </tbody>

</table>

<br />

</body>

</html>

 

p.s. just put the jsp in admin folder…

Giuseppe

 

Da: red5-bounces@... [mailto:red5-bounces@...] Per conto di Mondain
Inviato: giovedì 15 ottobre 2009 20.43


A: red5@...
Oggetto: Re: [Red5] chenge username/password in admin application

 

FYI, I just heard about this application which you could use to access the derby db used by the admin application:

 

Paul

On Tue, Oct 13, 2009 at 12:43 PM, Mondain <mondain@...> wrote:

I think its "password", btw we made this app into a plugin which will be available with 0.9.0 RC2 within 30 days. I'll make a note to add change password functionality a bit simpler.

 

Paul

On Tue, Oct 13, 2009 at 7:22 AM, Giusanny <giusanny@...> wrote:

Please,

anybody knows how to change user and password of the application “admin” ?

 

Thanks in advance

Giuseppe

 

 

_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org




--
http://gregoire.org/
http://code.google.com/p/red5/
http://code.google.com/p/blue5/




--
http://gregoire.org/
http://code.google.com/p/red5/
http://code.google.com/p/blue5/


_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org



_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org

R: R: chenge username/password in admin application

by Giusanny :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

Whic one? J

 

Da: red5-bounces@... [mailto:red5-bounces@...] Per conto di Dominick Accattato
Inviato: venerdì 16 ottobre 2009 15.30
A: red5@...
Oggetto: Re: [Red5] R: chenge username/password in admin application

 

Maybe, you want to add that to the wiki? ;)

On Fri, Oct 16, 2009 at 4:19 AM, Giusanny <giusanny@...> wrote:

Thanks Paul, waiting for the feature in RC2 I post a simple jsp to change the pwd (made just in 5 minutes…)  just to participate a little to the red5 project :D and help someone else…

 

<%@ page language="java" import = "org.springframework.security.providers.encoding.*,org.apache.derby.jdbc.*,javax.sql.*,java.sql.*" %>  

<%

if(request.getParameter("cambia")!=null){

                               String prop = System.getenv("DERBY_HOME");

 

                               if (prop == null) {

                                               prop = System.getProperty("user.home");

                               }

                               System.setProperty("derby.system.home", prop);

                              

                               Connection conn = null;

                               Statement stmt = null;

                               try {

            // JDBC stuff

                                               DataSource ds = null;

                                               try {

                                                               Object o = null;

                                                               if (o == null) {

                                                                              EmbeddedDataSource eds = new EmbeddedDataSource();

                                                                              eds.setCreateDatabase("create");

                                                                              eds.setDatabaseName("Admin");

                                                                              eds.setPassword("APP");

                                                                              eds.setUser("APP");

 

                                                                              ds = eds;

                                                               } else {

                                                                              ds = (DataSource) o;

                                                               }

                                               } catch (Exception e) {

                                                               out.println("Context check for datasource " + e.getMessage() );

                                               }

                                              

                                               //create the db and get a connection

                                               conn = ds.getConnection();

                                               //make a statement

                                               stmt = conn.createStatement();

                                              

                                               String user = request.getParameter("username");

                                               String password = request.getParameter("password");

                                               String newPassword = request.getParameter("newPassword");

                                              

                                               Md5PasswordEncoder md5 = new Md5PasswordEncoder();

                                               password = md5.encodePassword(password, "seKret").toString();

                                               newPassword = md5.encodePassword(newPassword, "seKret").toString();

                                               //update

                                               stmt.execute("Update APPUSER set password = '"+newPassword+"' WHERE username='"+user+"' and password = '"+password+"'");

                               } catch (Exception e) {

                                               out.println("Error in db setup " + e.getMessage());

                               } finally {

                                               if (stmt != null) {

                                                               try {

                                                                              stmt.close();

                                                               } catch (SQLException e) {

                                                               }

                                               }

                                               if (conn != null) {

                                                               try {

                                                                              conn.close();

                                                               } catch (SQLException e) {

                                                               }

                                               }

                               }

}

%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">

<head>

  <title>Red5 Admin</title>

  <meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type" />

  <style type="text/css" media="screen">

html, body, #containerA, #containerB { height: 100%;

}

.formbg { background-color: rgb(238, 238, 238);

}

.formtable { border: 2px solid rgb(183, 186, 188);

}

 

.formtext { font-family: Arial,Helvetica,sans-serif;

    font-size: 12px;

    color: rgb(11, 51, 73);

}

 

body { margin: 0pt;

padding: 0pt;

overflow: hidden;

background-color: rgb(250, 250, 250);

}

.error {

                font-family: Arial,Helvetica,sans-serif;

                font-size: 12px;

                color: red;

}

  </style>

</head>

<body>

<table style="text-align: left; width: 100%; height: 100%;" border="0" cellpadding="0" cellspacing="10">

  <tbody>

    <tr>

      <td height="54"><img style="width: 136px; height: 54px;" alt="" src="assets/logo.png" /></td>

    </tr>

    <tr class="formbg">

      <td align="center" valign="middle">

      <table style="width: 400px;" class="formtable" border="0" cellpadding="0" cellspacing="2">

      <tr>

                <td class="formtext">&nbsp;<b>Register Admin User</b></td>

      </tr>

      <tr>

      <td>

      <form method="post" action="changePwd.jsp">

      <input type="hidden" name="cambia" value="vai" />

        <table style="width: 400px;"  border="0" cellpadding="0" cellspacing="5">

          <tbody>

            <tr>

              <td align="right" width="20%" class="formtext">Username:</td>

                                       <td width="20%">

                                           <input name="username" value="" />

                                       </td>

                                    </tr>

            <tr>

                                                 <td align="right" width="20%" class="formtext">Password:</td>

                                       <td width="20%">

                                         <input type="password" name="password" value="" />

                                       </td>

                                    </tr>

            <tr>

                                                 <td align="right" width="20%" class="formtext">new Password:</td>

                                       <td width="20%">

                                         <input type="newPassword" name="newPassword" value="" />

                                       </td>

                                    </tr>

            <tr>

              <td><input type="submit" value="Submit" /></td>

              <td></td>

              <td class="error">

              </td>

 

            </tr>

          </tbody>

        </table>

      </form>

      </td>

      </tr>

      </table>

      </td>

    </tr>

 

  </tbody>

</table>

<br />

</body>

</html>

 

p.s. just put the jsp in admin folder…

Giuseppe

 

Da: red5-bounces@... [mailto:red5-bounces@...] Per conto di Mondain
Inviato: giovedì 15 ottobre 2009 20.43


A: red5@...
Oggetto: Re: [Red5] chenge username/password in admin application

 

FYI, I just heard about this application which you could use to access the derby db used by the admin application:

 

Paul

On Tue, Oct 13, 2009 at 12:43 PM, Mondain <mondain@...> wrote:

I think its "password", btw we made this app into a plugin which will be available with 0.9.0 RC2 within 30 days. I'll make a note to add change password functionality a bit simpler.

 

Paul

On Tue, Oct 13, 2009 at 7:22 AM, Giusanny <giusanny@...> wrote:

Please,

anybody knows how to change user and password of the application “admin” ?

 

Thanks in advance

Giuseppe

 

 

_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org




--
http://gregoire.org/
http://code.google.com/p/red5/
http://code.google.com/p/blue5/




--
http://gregoire.org/
http://code.google.com/p/red5/
http://code.google.com/p/blue5/


_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org

 


_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org

R: R: chenge username/password in admin application

by Giusanny :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

Did it! ;)

 

http://www.red5tutorials.net/index.php/Howtos:AdminWebApp

 

Da: red5-bounces@... [mailto:red5-bounces@...] Per conto di Dominick Accattato
Inviato: venerdì 16 ottobre 2009 15.30
A: red5@...
Oggetto: Re: [Red5] R: chenge username/password in admin application

 

Maybe, you want to add that to the wiki? ;)

On Fri, Oct 16, 2009 at 4:19 AM, Giusanny <giusanny@...> wrote:

Thanks Paul, waiting for the feature in RC2 I post a simple jsp to change the pwd (made just in 5 minutes…)  just to participate a little to the red5 project :D and help someone else…

 

<%@ page language="java" import = "org.springframework.security.providers.encoding.*,org.apache.derby.jdbc.*,javax.sql.*,java.sql.*" %>  

<%

if(request.getParameter("cambia")!=null){

                               String prop = System.getenv("DERBY_HOME");

 

                               if (prop == null) {

                                               prop = System.getProperty("user.home");

                               }

                               System.setProperty("derby.system.home", prop);

                              

                               Connection conn = null;

                               Statement stmt = null;

                               try {

            // JDBC stuff

                                               DataSource ds = null;

                                               try {

                                                               Object o = null;

                                                               if (o == null) {

                                                                              EmbeddedDataSource eds = new EmbeddedDataSource();

                                                                              eds.setCreateDatabase("create");

                                                                              eds.setDatabaseName("Admin");

                                                                              eds.setPassword("APP");

                                                                              eds.setUser("APP");

 

                                                                              ds = eds;

                                                               } else {

                                                                              ds = (DataSource) o;

                                                               }

                                               } catch (Exception e) {

                                                               out.println("Context check for datasource " + e.getMessage() );

                                               }

                                              

                                               //create the db and get a connection

                                               conn = ds.getConnection();

                                               //make a statement

                                               stmt = conn.createStatement();

                                              

                                               String user = request.getParameter("username");

                                               String password = request.getParameter("password");

                                               String newPassword = request.getParameter("newPassword");

                                              

                                               Md5PasswordEncoder md5 = new Md5PasswordEncoder();

                                               password = md5.encodePassword(password, "seKret").toString();

                                               newPassword = md5.encodePassword(newPassword, "seKret").toString();

                                               //update

                                               stmt.execute("Update APPUSER set password = '"+newPassword+"' WHERE username='"+user+"' and password = '"+password+"'");

                               } catch (Exception e) {

                                               out.println("Error in db setup " + e.getMessage());

                               } finally {

                                               if (stmt != null) {

                                                               try {

                                                                              stmt.close();

                                                               } catch (SQLException e) {

                                                               }

                                               }

                                               if (conn != null) {

                                                               try {

                                                                              conn.close();

                                                               } catch (SQLException e) {

                                                               }

                                               }

                               }

}

%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">

<head>

  <title>Red5 Admin</title>

  <meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type" />

  <style type="text/css" media="screen">

html, body, #containerA, #containerB { height: 100%;

}

.formbg { background-color: rgb(238, 238, 238);

}

.formtable { border: 2px solid rgb(183, 186, 188);

}

 

.formtext { font-family: Arial,Helvetica,sans-serif;

    font-size: 12px;

    color: rgb(11, 51, 73);

}

 

body { margin: 0pt;

padding: 0pt;

overflow: hidden;

background-color: rgb(250, 250, 250);

}

.error {

                font-family: Arial,Helvetica,sans-serif;

                font-size: 12px;

                color: red;

}

  </style>

</head>

<body>

<table style="text-align: left; width: 100%; height: 100%;" border="0" cellpadding="0" cellspacing="10">

  <tbody>

    <tr>

      <td height="54"><img style="width: 136px; height: 54px;" alt="" src="assets/logo.png" /></td>

    </tr>

    <tr class="formbg">

      <td align="center" valign="middle">

      <table style="width: 400px;" class="formtable" border="0" cellpadding="0" cellspacing="2">

      <tr>

                <td class="formtext">&nbsp;<b>Register Admin User</b></td>

      </tr>

      <tr>

      <td>

      <form method="post" action="changePwd.jsp">

      <input type="hidden" name="cambia" value="vai" />

        <table style="width: 400px;"  border="0" cellpadding="0" cellspacing="5">

          <tbody>

            <tr>

              <td align="right" width="20%" class="formtext">Username:</td>

                                       <td width="20%">

                                           <input name="username" value="" />

                                       </td>

                                    </tr>

            <tr>

                                                 <td align="right" width="20%" class="formtext">Password:</td>

                                       <td width="20%">

                                         <input type="password" name="password" value="" />

                                       </td>

                                    </tr>

            <tr>

                                                 <td align="right" width="20%" class="formtext">new Password:</td>

                                       <td width="20%">

                                         <input type="newPassword" name="newPassword" value="" />

                                       </td>

                                    </tr>

            <tr>

              <td><input type="submit" value="Submit" /></td>

              <td></td>

              <td class="error">

              </td>

 

            </tr>

          </tbody>

        </table>

      </form>

      </td>

      </tr>

      </table>

      </td>

    </tr>

 

  </tbody>

</table>

<br />

</body>

</html>

 

p.s. just put the jsp in admin folder…

Giuseppe

 

Da: red5-bounces@... [mailto:red5-bounces@...] Per conto di Mondain
Inviato: giovedì 15 ottobre 2009 20.43


A: red5@...
Oggetto: Re: [Red5] chenge username/password in admin application

 

FYI, I just heard about this application which you could use to access the derby db used by the admin application:

 

Paul

On Tue, Oct 13, 2009 at 12:43 PM, Mondain <mondain@...> wrote:

I think its "password", btw we made this app into a plugin which will be available with 0.9.0 RC2 within 30 days. I'll make a note to add change password functionality a bit simpler.

 

Paul

On Tue, Oct 13, 2009 at 7:22 AM, Giusanny <giusanny@...> wrote:

Please,

anybody knows how to change user and password of the application “admin” ?

 

Thanks in advance

Giuseppe

 

 

_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org




--
http://gregoire.org/
http://code.google.com/p/red5/
http://code.google.com/p/blue5/




--
http://gregoire.org/
http://code.google.com/p/red5/
http://code.google.com/p/blue5/


_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org

 


_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org

Re: R: R: chenge username/password in admin application

by Dominick Accattato-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

while,

I don't personally mind where you post your knowledge.  trac.red5.org is the official wiki.

On Fri, Oct 16, 2009 at 12:38 PM, Giusanny <giusanny@...> wrote:

Did it! ;)

 

http://www.red5tutorials.net/index.php/Howtos:AdminWebApp

 

Da: red5-bounces@... [mailto:red5-bounces@...] Per conto di Dominick Accattato
Inviato: venerdì 16 ottobre 2009 15.30
A: red5@...
Oggetto: Re: [Red5] R: chenge username/password in admin application

 

Maybe, you want to add that to the wiki? ;)

On Fri, Oct 16, 2009 at 4:19 AM, Giusanny <giusanny@...> wrote:

Thanks Paul, waiting for the feature in RC2 I post a simple jsp to change the pwd (made just in 5 minutes…)  just to participate a little to the red5 project :D and help someone else…

 

<%@ page language="java" import = "org.springframework.security.providers.encoding.*,org.apache.derby.jdbc.*,javax.sql.*,java.sql.*" %>  

<%

if(request.getParameter("cambia")!=null){

                               String prop = System.getenv("DERBY_HOME");

 

                               if (prop == null) {

                                               prop = System.getProperty("user.home");

                               }

                               System.setProperty("derby.system.home", prop);

                              

                               Connection conn = null;

                               Statement stmt = null;

                               try {

            // JDBC stuff

                                               DataSource ds = null;

                                               try {

                                                               Object o = null;

                                                               if (o == null) {

                                                                              EmbeddedDataSource eds = new EmbeddedDataSource();

                                                                              eds.setCreateDatabase("create");

                                                                              eds.setDatabaseName("Admin");

                                                                              eds.setPassword("APP");

                                                                              eds.setUser("APP");

 

                                                                              ds = eds;

                                                               } else {

                                                                              ds = (DataSource) o;

                                                               }

                                               } catch (Exception e) {

                                                               out.println("Context check for datasource " + e.getMessage() );

                                               }

                                              

                                               //create the db and get a connection

                                               conn = ds.getConnection();

                                               //make a statement

                                               stmt = conn.createStatement();

                                              

                                               String user = request.getParameter("username");

                                               String password = request.getParameter("password");

                                               String newPassword = request.getParameter("newPassword");

                                              

                                               Md5PasswordEncoder md5 = new Md5PasswordEncoder();

                                               password = md5.encodePassword(password, "seKret").toString();

                                               newPassword = md5.encodePassword(newPassword, "seKret").toString();

                                               //update

                                               stmt.execute("Update APPUSER set password = '"+newPassword+"' WHERE username='"+user+"' and password = '"+password+"'");

                               } catch (Exception e) {

                                               out.println("Error in db setup " + e.getMessage());

                               } finally {

                                               if (stmt != null) {

                                                               try {

                                                                              stmt.close();

                                                               } catch (SQLException e) {

                                                               }

                                               }

                                               if (conn != null) {

                                                               try {

                                                                              conn.close();

                                                               } catch (SQLException e) {

                                                               }

                                               }

                               }

}

%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">

<head>

  <title>Red5 Admin</title>

  <meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type" />

  <style type="text/css" media="screen">

html, body, #containerA, #containerB { height: 100%;

}

.formbg { background-color: rgb(238, 238, 238);

}

.formtable { border: 2px solid rgb(183, 186, 188);

}

 

.formtext { font-family: Arial,Helvetica,sans-serif;

    font-size: 12px;

    color: rgb(11, 51, 73);

}

 

body { margin: 0pt;

padding: 0pt;

overflow: hidden;

background-color: rgb(250, 250, 250);

}

.error {

                font-family: Arial,Helvetica,sans-serif;

                font-size: 12px;

                color: red;

}

  </style>

</head>

<body>

<table style="text-align: left; width: 100%; height: 100%;" border="0" cellpadding="0" cellspacing="10">

  <tbody>

    <tr>

      <td height="54"><img style="width: 136px; height: 54px;" alt="" src="assets/logo.png" /></td>

    </tr>

    <tr class="formbg">

      <td align="center" valign="middle">

      <table style="width: 400px;" class="formtable" border="0" cellpadding="0" cellspacing="2">

      <tr>

                <td class="formtext">&nbsp;<b>Register Admin User</b></td>

      </tr>

      <tr>

      <td>

      <form method="post" action="changePwd.jsp">

      <input type="hidden" name="cambia" value="vai" />

        <table style="width: 400px;"  border="0" cellpadding="0" cellspacing="5">

          <tbody>

            <tr>

              <td align="right" width="20%" class="formtext">Username:</td>

                                       <td width="20%">

                                           <input name="username" value="" />

                                       </td>

                                    </tr>

            <tr>

                                                 <td align="right" width="20%" class="formtext">Password:</td>

                                       <td width="20%">

                                         <input type="password" name="password" value="" />

                                       </td>

                                    </tr>

            <tr>

                                                 <td align="right" width="20%" class="formtext">new Password:</td>

                                       <td width="20%">

                                         <input type="newPassword" name="newPassword" value="" />

                                       </td>

                                    </tr>

            <tr>

              <td><input type="submit" value="Submit" /></td>

              <td></td>

              <td class="error">

              </td>

 

            </tr>

          </tbody>

        </table>

      </form>

      </td>

      </tr>

      </table>

      </td>

    </tr>

 

  </tbody>

</table>

<br />

</body>

</html>

 

p.s. just put the jsp in admin folder…

Giuseppe

 

Da: red5-bounces@... [mailto:red5-bounces@...] Per conto di Mondain
Inviato: giovedì 15 ottobre 2009 20.43


A: red5@...
Oggetto: Re: [Red5] chenge username/password in admin application

 

FYI, I just heard about this application which you could use to access the derby db used by the admin application:

 

Paul

On Tue, Oct 13, 2009 at 12:43 PM, Mondain <mondain@...> wrote:

I think its "password", btw we made this app into a plugin which will be available with 0.9.0 RC2 within 30 days. I'll make a note to add change password functionality a bit simpler.

 

Paul

On Tue, Oct 13, 2009 at 7:22 AM, Giusanny <giusanny@...> wrote:

Please,

anybody knows how to change user and password of the application “admin” ?

 

Thanks in advance

Giuseppe

 

 

_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org




--
http://gregoire.org/
http://code.google.com/p/red5/
http://code.google.com/p/blue5/




--
http://gregoire.org/
http://code.google.com/p/red5/
http://code.google.com/p/blue5/


_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org

 


_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org



_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org

R: R: R: chenge username/password in admin application

by Giusanny :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

I can’t register to the web site

 

Da: red5-bounces@... [mailto:red5-bounces@...] Per conto di Dominick Accattato
Inviato: venerdì 16 ottobre 2009 20.04
A: red5@...
Oggetto: Re: [Red5] R: R: chenge username/password in admin application

 

while,

I don't personally mind where you post your knowledge.  trac.red5.org is the official wiki.

On Fri, Oct 16, 2009 at 12:38 PM, Giusanny <giusanny@...> wrote:

Did it! ;)

 

http://www.red5tutorials.net/index.php/Howtos:AdminWebApp

 

Da: red5-bounces@... [mailto:red5-bounces@...] Per conto di Dominick Accattato
Inviato: venerdì 16 ottobre 2009 15.30
A: red5@...
Oggetto: Re: [Red5] R: chenge username/password in admin application

 

Maybe, you want to add that to the wiki? ;)

On Fri, Oct 16, 2009 at 4:19 AM, Giusanny <giusanny@...> wrote:

Thanks Paul, waiting for the feature in RC2 I post a simple jsp to change the pwd (made just in 5 minutes…)  just to participate a little to the red5 project :D and help someone else…

 

<%@ page language="java" import = "org.springframework.security.providers.encoding.*,org.apache.derby.jdbc.*,javax.sql.*,java.sql.*" %>  

<%

if(request.getParameter("cambia")!=null){

                               String prop = System.getenv("DERBY_HOME");

 

                               if (prop == null) {

                                               prop = System.getProperty("user.home");

                               }

                               System.setProperty("derby.system.home", prop);

                              

                               Connection conn = null;

                               Statement stmt = null;

                               try {

            // JDBC stuff

                                               DataSource ds = null;

                                               try {

                                                               Object o = null;

                                                               if (o == null) {

                                                                              EmbeddedDataSource eds = new EmbeddedDataSource();

                                                                              eds.setCreateDatabase("create");

                                                                              eds.setDatabaseName("Admin");

                                                                              eds.setPassword("APP");

                                                                              eds.setUser("APP");

 

                                                                              ds = eds;

                                                               } else {

                                                                              ds = (DataSource) o;

                                                               }

                                               } catch (Exception e) {

                                                               out.println("Context check for datasource " + e.getMessage() );

                                               }

                                              

                                               //create the db and get a connection

                                               conn = ds.getConnection();

                                               //make a statement

                                               stmt = conn.createStatement();

                                              

                                               String user = request.getParameter("username");

                                               String password = request.getParameter("password");

                                               String newPassword = request.getParameter("newPassword");

                                              

                                               Md5PasswordEncoder md5 = new Md5PasswordEncoder();

                                               password = md5.encodePassword(password, "seKret").toString();

                                               newPassword = md5.encodePassword(newPassword, "seKret").toString();

                                               //update

                                               stmt.execute("Update APPUSER set password = '"+newPassword+"' WHERE username='"+user+"' and password = '"+password+"'");

                               } catch (Exception e) {

                                               out.println("Error in db setup " + e.getMessage());

                               } finally {

                                               if (stmt != null) {

                                                               try {

                                                                              stmt.close();

                                                               } catch (SQLException e) {

                                                               }

                                               }

                                               if (conn != null) {

                                                               try {

                                                                              conn.close();

                                                               } catch (SQLException e) {

                                                               }

                                               }

                               }

}

%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">

<head>

  <title>Red5 Admin</title>

  <meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type" />

  <style type="text/css" media="screen">

html, body, #containerA, #containerB { height: 100%;

}

.formbg { background-color: rgb(238, 238, 238);

}

.formtable { border: 2px solid rgb(183, 186, 188);

}

 

.formtext { font-family: Arial,Helvetica,sans-serif;

    font-size: 12px;

    color: rgb(11, 51, 73);

}

 

body { margin: 0pt;

padding: 0pt;

overflow: hidden;

background-color: rgb(250, 250, 250);

}

.error {

                font-family: Arial,Helvetica,sans-serif;

                font-size: 12px;

                color: red;

}

  </style>

</head>

<body>

<table style="text-align: left; width: 100%; height: 100%;" border="0" cellpadding="0" cellspacing="10">

  <tbody>

    <tr>

      <td height="54"><img style="width: 136px; height: 54px;" alt="" src="assets/logo.png" /></td>

    </tr>

    <tr class="formbg">

      <td align="center" valign="middle">

      <table style="width: 400px;" class="formtable" border="0" cellpadding="0" cellspacing="2">

      <tr>

                <td class="formtext">&nbsp;<b>Register Admin User</b></td>

      </tr>

      <tr>

      <td>

      <form method="post" action="changePwd.jsp">

      <input type="hidden" name="cambia" value="vai" />

        <table style="width: 400px;"  border="0" cellpadding="0" cellspacing="5">

          <tbody>

            <tr>

              <td align="right" width="20%" class="formtext">Username:</td>

                                       <td width="20%">

                                           <input name="username" value="" />

                                       </td>

                                    </tr>

            <tr>

                                                 <td align="right" width="20%" class="formtext">Password:</td>

                                       <td width="20%">

                                         <input type="password" name="password" value="" />

                                       </td>

                                    </tr>

            <tr>

                                                 <td align="right" width="20%" class="formtext">new Password:</td>

                                       <td width="20%">

                                         <input type="newPassword" name="newPassword" value="" />

                                       </td>

                                    </tr>

            <tr>

              <td><input type="submit" value="Submit" /></td>

              <td></td>

              <td class="error">

              </td>

 

            </tr>

          </tbody>

        </table>

      </form>

      </td>

      </tr>

      </table>

      </td>

    </tr>

 

  </tbody>

</table>

<br />

</body>

</html>

 

p.s. just put the jsp in admin folder…

Giuseppe

 

Da: red5-bounces@... [mailto:red5-bounces@...] Per conto di Mondain
Inviato: giovedì 15 ottobre 2009 20.43


A: red5@...
Oggetto: Re: [Red5] chenge username/password in admin application

 

FYI, I just heard about this application which you could use to access the derby db used by the admin application:

 

Paul

On Tue, Oct 13, 2009 at 12:43 PM, Mondain <mondain@...> wrote:

I think its "password", btw we made this app into a plugin which will be available with 0.9.0 RC2 within 30 days. I'll make a note to add change password functionality a bit simpler.

 

Paul

On Tue, Oct 13, 2009 at 7:22 AM, Giusanny <giusanny@...> wrote:

Please,

anybody knows how to change user and password of the application “admin” ?

 

Thanks in advance

Giuseppe

 

 

_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org




--
http://gregoire.org/
http://code.google.com/p/red5/
http://code.google.com/p/blue5/




--
http://gregoire.org/
http://code.google.com/p/red5/
http://code.google.com/p/blue5/


_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org

 


_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org

 


_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org

Re: R: R: R: chenge username/password in admin application

by Dominick Accattato-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

does registering not works? http://red5.org/register

On Mon, Oct 19, 2009 at 4:13 AM, Giusanny <giusanny@...> wrote:

I can’t register to the web site

 

Da: red5-bounces@... [mailto:red5-bounces@...] Per conto di Dominick Accattato
Inviato: venerdì 16 ottobre 2009 20.04
A: red5@...
Oggetto: Re: [Red5] R: R: chenge username/password in admin application

 

while,

I don't personally mind where you post your knowledge.  trac.red5.org is the official wiki.

On Fri, Oct 16, 2009 at 12:38 PM, Giusanny <giusanny@...> wrote:

Did it! ;)

 

http://www.red5tutorials.net/index.php/Howtos:AdminWebApp

 

Da: red5-bounces@... [mailto:red5-bounces@...] Per conto di Dominick Accattato
Inviato: venerdì 16 ottobre 2009 15.30
A: red5@...
Oggetto: Re: [Red5] R: chenge username/password in admin application

 

Maybe, you want to add that to the wiki? ;)

On Fri, Oct 16, 2009 at 4:19 AM, Giusanny <giusanny@...> wrote:

Thanks Paul, waiting for the feature in RC2 I post a simple jsp to change the pwd (made just in 5 minutes…)  just to participate a little to the red5 project :D and help someone else…

 

<%@ page language="java" import = "org.springframework.security.providers.encoding.*,org.apache.derby.jdbc.*,javax.sql.*,java.sql.*" %>  

<%

if(request.getParameter("cambia")!=null){

                               String prop = System.getenv("DERBY_HOME");

 

                               if (prop == null) {

                                               prop = System.getProperty("user.home");

                               }

                               System.setProperty("derby.system.home", prop);

                              

                               Connection conn = null;

                               Statement stmt = null;

                               try {

            // JDBC stuff

                                               DataSource ds = null;

                                               try {

                                                               Object o = null;

                                                               if (o == null) {

                                                                              EmbeddedDataSource eds = new EmbeddedDataSource();

                                                                              eds.setCreateDatabase("create");

                                                                              eds.setDatabaseName("Admin");

                                                                              eds.setPassword("APP");

                                                                              eds.setUser("APP");

 

                                                                              ds = eds;

                                                               } else {

                                                                              ds = (DataSource) o;

                                                               }

                                               } catch (Exception e) {

                                                               out.println("Context check for datasource " + e.getMessage() );

                                               }

                                              

                                               //create the db and get a connection

                                               conn = ds.getConnection();

                                               //make a statement

                                               stmt = conn.createStatement();

                                              

                                               String user = request.getParameter("username");

                                               String password = request.getParameter("password");

                                               String newPassword = request.getParameter("newPassword");

                                              

                                               Md5PasswordEncoder md5 = new Md5PasswordEncoder();

                                               password = md5.encodePassword(password, "seKret").toString();

                                               newPassword = md5.encodePassword(newPassword, "seKret").toString();

                                               //update

                                               stmt.execute("Update APPUSER set password = '"+newPassword+"' WHERE username='"+user+"' and password = '"+password+"'");

                               } catch (Exception e) {

                                               out.println("Error in db setup " + e.getMessage());

                               } finally {

                                               if (stmt != null) {

                                                               try {

                                                                              stmt.close();

                                                               } catch (SQLException e) {

                                                               }

                                               }

                                               if (conn != null) {

                                                               try {

                                                                              conn.close();

                                                               } catch (SQLException e) {

                                                               }

                                               }

                               }

}

%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">

<head>

  <title>Red5 Admin</title>

  <meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type" />

  <style type="text/css" media="screen">

html, body, #containerA, #containerB { height: 100%;

}

.formbg { background-color: rgb(238, 238, 238);

}

.formtable { border: 2px solid rgb(183, 186, 188);

}

 

.formtext { font-family: Arial,Helvetica,sans-serif;

    font-size: 12px;

    color: rgb(11, 51, 73);

}

 

body { margin: 0pt;

padding: 0pt;

overflow: hidden;

background-color: rgb(250, 250, 250);

}

.error {

                font-family: Arial,Helvetica,sans-serif;

                font-size: 12px;

                color: red;

}

  </style>

</head>

<body>

<table style="text-align: left; width: 100%; height: 100%;" border="0" cellpadding="0" cellspacing="10">

  <tbody>

    <tr>

      <td height="54"><img style="width: 136px; height: 54px;" alt="" src="assets/logo.png" /></td>

    </tr>

    <tr class="formbg">

      <td align="center" valign="middle">

      <table style="width: 400px;" class="formtable" border="0" cellpadding="0" cellspacing="2">

      <tr>

                <td class="formtext">&nbsp;<b>Register Admin User</b></td>

      </tr>

      <tr>

      <td>

      <form method="post" action="changePwd.jsp">

      <input type="hidden" name="cambia" value="vai" />

        <table style="width: 400px;"  border="0" cellpadding="0" cellspacing="5">

          <tbody>

            <tr>

              <td align="right" width="20%" class="formtext">Username:</td>

                                       <td width="20%">

                                           <input name="username" value="" />

                                       </td>

                                    </tr>

            <tr>

                                                 <td align="right" width="20%" class="formtext">Password:</td>

                                       <td width="20%">

                                         <input type="password" name="password" value="" />

                                       </td>

                                    </tr>

            <tr>

                                                 <td align="right" width="20%" class="formtext">new Password:</td>

                                       <td width="20%">

                                         <input type="newPassword" name="newPassword" value="" />

                                       </td>

                                    </tr>

            <tr>

              <td><input type="submit" value="Submit" /></td>

              <td></td>

              <td class="error">

              </td>

 

            </tr>

          </tbody>

        </table>

      </form>

      </td>

      </tr>

      </table>

      </td>

    </tr>

 

  </tbody>

</table>

<br />

</body>

</html>

 

p.s. just put the jsp in admin folder…

Giuseppe

 

Da: red5-bounces@... [mailto:red5-bounces@...] Per conto di Mondain
Inviato: giovedì 15 ottobre 2009 20.43


A: red5@...
Oggetto: Re: [Red5] chenge username/password in admin application

 

FYI, I just heard about this application which you could use to access the derby db used by the admin application:

 

Paul

On Tue, Oct 13, 2009 at 12:43 PM, Mondain <mondain@...> wrote:

I think its "password", btw we made this app into a plugin which will be available with 0.9.0 RC2 within 30 days. I'll make a note to add change password functionality a bit simpler.

 

Paul

On Tue, Oct 13, 2009 at 7:22 AM, Giusanny <giusanny@...> wrote:

Please,

anybody knows how to change user and password of the application “admin” ?

 

Thanks in advance

Giuseppe

 

 

_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org




--
http://gregoire.org/
http://code.google.com/p/red5/
http://code.google.com/p/blue5/




--
http://gregoire.org/
http://code.google.com/p/red5/
http://code.google.com/p/blue5/


_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org

 


_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org

 


_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org



_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org

Re: R: R: R: chenge username/password in admin application

by Giusanny :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

I can’t register cause the captcha doesn’t work…

 

“This reCAPTCHA key isn't authorized for the given domain.”

 

Da: red5-bounces@... [mailto:red5-bounces@...] Per conto di Dominick Accattato
Inviato: giovedì 29 ottobre 2009 20.59
A: red5@...
Oggetto: Re: [Red5] R: R: R: chenge username/password in admin application

 

does registering not works? http://red5.org/register

On Mon, Oct 19, 2009 at 4:13 AM, Giusanny <giusanny@...> wrote:

I can’t register to the web site

 

Da: red5-bounces@... [mailto:red5-bounces@...] Per conto di Dominick Accattato
Inviato: venerdì 16 ottobre 2009 20.04
A: red5@...
Oggetto: Re: [Red5] R: R: chenge username/password in admin application

 

while,

I don't personally mind where you post your knowledge.  trac.red5.org is the official wiki.

On Fri, Oct 16, 2009 at 12:38 PM, Giusanny <giusanny@...> wrote:

Did it! ;)

 

http://www.red5tutorials.net/index.php/Howtos:AdminWebApp

 

Da: red5-bounces@... [mailto:red5-bounces@...] Per conto di Dominick Accattato
Inviato: venerdì 16 ottobre 2009 15.30
A: red5@...
Oggetto: Re: [Red5] R: chenge username/password in admin application

 

Maybe, you want to add that to the wiki? ;)

On Fri, Oct 16, 2009 at 4:19 AM, Giusanny <giusanny@...> wrote:

Thanks Paul, waiting for the feature in RC2 I post a simple jsp to change the pwd (made just in 5 minutes…)  just to participate a little to the red5 project :D and help someone else…

 

<%@ page language="java" import = "org.springframework.security.providers.encoding.*,org.apache.derby.jdbc.*,javax.sql.*,java.sql.*" %>  

<%

if(request.getParameter("cambia")!=null){

                               String prop = System.getenv("DERBY_HOME");

 

                               if (prop == null) {

                                               prop = System.getProperty("user.home");

                               }

                               System.setProperty("derby.system.home", prop);

                              

                               Connection conn = null;

                               Statement stmt = null;

                               try {

            // JDBC stuff

                                               DataSource ds = null;

                                               try {

                                                               Object o = null;

                                                               if (o == null) {

                                                                              EmbeddedDataSource eds = new EmbeddedDataSource();

                                                                              eds.setCreateDatabase("create");

                                                                              eds.setDatabaseName("Admin");

                                                                              eds.setPassword("APP");

                                                                              eds.setUser("APP");

 

                                                                              ds = eds;

                                                               } else {

                                                                              ds = (DataSource) o;

                                                               }

                                               } catch (Exception e) {

                                                               out.println("Context check for datasource " + e.getMessage() );

                                               }

                                              

                                               //create the db and get a connection

                                               conn = ds.getConnection();

                                               //make a statement

                                               stmt = conn.createStatement();

                                              

                                               String user = request.getParameter("username");

                                               String password = request.getParameter("password");

                                               String newPassword = request.getParameter("newPassword");

                                              

                                               Md5PasswordEncoder md5 = new Md5PasswordEncoder();

                                               password = md5.encodePassword(password, "seKret").toString();

                                               newPassword = md5.encodePassword(newPassword, "seKret").toString();

                                               //update

                                               stmt.execute("Update APPUSER set password = '"+newPassword+"' WHERE username='"+user+"' and password = '"+password+"'");

                               } catch (Exception e) {

                                               out.println("Error in db setup " + e.getMessage());

                               } finally {

                                               if (stmt != null) {

                                                               try {

                                                                              stmt.close();

                                                               } catch (SQLException e) {

                                                               }

                                               }

                                               if (conn != null) {

                                                               try {

                                                                              conn.close();

                                                               } catch (SQLException e) {

                                                               }

                                               }

                               }

}

%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">

<head>

  <title>Red5 Admin</title>

  <meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type" />

  <style type="text/css" media="screen">

html, body, #containerA, #containerB { height: 100%;

}

.formbg { background-color: rgb(238, 238, 238);

}

.formtable { border: 2px solid rgb(183, 186, 188);

}

 

.formtext { font-family: Arial,Helvetica,sans-serif;

    font-size: 12px;

    color: rgb(11, 51, 73);

}

 

body { margin: 0pt;

padding: 0pt;

overflow: hidden;

background-color: rgb(250, 250, 250);

}

.error {

                font-family: Arial,Helvetica,sans-serif;

                font-size: 12px;

                color: red;

}

  </style>

</head>

<body>

<table style="text-align: left; width: 100%; height: 100%;" border="0" cellpadding="0" cellspacing="10">

  <tbody>

    <tr>

      <td height="54"><img style="width: 136px; height: 54px;" alt="" src="assets/logo.png" /></td>

    </tr>

    <tr class="formbg">

      <td align="center" valign="middle">

      <table style="width: 400px;" class="formtable" border="0" cellpadding="0" cellspacing="2">

      <tr>

                <td class="formtext">&nbsp;<b>Register Admin User</b></td>

      </tr>

      <tr>

      <td>

      <form method="post" action="changePwd.jsp">

      <input type="hidden" name="cambia" value="vai" />

        <table style="width: 400px;"  border="0" cellpadding="0" cellspacing="5">

          <tbody>

            <tr>

              <td align="right" width="20%" class="formtext">Username:</td>

                                       <td width="20%">

                                           <input name="username" value="" />

                                       </td>

                                    </tr>

            <tr>

                                                 <td align="right" width="20%" class="formtext">Password:</td>

                                       <td width="20%">

                                         <input type="password" name="password" value="" />

                                       </td>

                                    </tr>

            <tr>

                                                 <td align="right" width="20%" class="formtext">new Password:</td>

                                       <td width="20%">

                                         <input type="newPassword" name="newPassword" value="" />

                                       </td>

                                    </tr>

            <tr>

              <td><input type="submit" value="Submit" /></td>

              <td></td>

              <td class="error">

              </td>

 

            </tr>

          </tbody>

        </table>

      </form>

      </td>

      </tr>

      </table>

      </td>

    </tr>

 

  </tbody>

</table>

<br />

</body>

</html>

 

p.s. just put the jsp in admin folder…

Giuseppe

 

Da: red5-bounces@... [mailto:red5-bounces@...] Per conto di Mondain
Inviato: giovedì 15 ottobre 2009 20.43


A: red5@...
Oggetto: Re: [Red5] chenge username/password in admin application

 

FYI, I just heard about this application which you could use to access the derby db used by the admin application:

 

Paul

On Tue, Oct 13, 2009 at 12:43 PM, Mondain <mondain@...> wrote:

I think its "password", btw we made this app into a plugin which will be available with 0.9.0 RC2 within 30 days. I'll make a note to add change password functionality a bit simpler.

 

Paul

On Tue, Oct 13, 2009 at 7:22 AM, Giusanny <giusanny@...> wrote:

Please,

anybody knows how to change user and password of the application “admin” ?

 

Thanks in advance

Giuseppe

 

 

_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org




--
http://gregoire.org/
http://code.google.com/p/red5/
http://code.google.com/p/blue5/




--
http://gregoire.org/
http://code.google.com/p/red5/
http://code.google.com/p/blue5/


_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org

 


_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org

 


_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org

 


_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org

Re: R: R: R: chenge username/password in admin application

by Dominick Accattato-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I'll punt this to Dan Rossi or Thijs.  I'll also hit them up offlist and get back to ya!

On Fri, Oct 30, 2009 at 5:03 AM, Giusanny <giusanny@...> wrote:

I can’t register cause the captcha doesn’t work…

 

“This reCAPTCHA key isn't authorized for the given domain.”

 

Da: red5-bounces@... [mailto:red5-bounces@...] Per conto di Dominick Accattato
Inviato: giovedì 29 ottobre 2009 20.59
A: red5@...
Oggetto: Re: [Red5] R: R: R: chenge username/password in admin application

 

does registering not works? http://red5.org/register

On Mon, Oct 19, 2009 at 4:13 AM, Giusanny <giusanny@...> wrote:

I can’t register to the web site

 

Da: red5-bounces@... [mailto:red5-bounces@...] Per conto di Dominick Accattato
Inviato: venerdì 16 ottobre 2009 20.04
A: red5@...
Oggetto: Re: [Red5] R: R: chenge username/password in admin application

 

while,

I don't personally mind where you post your knowledge.  trac.red5.org is the official wiki.

On Fri, Oct 16, 2009 at 12:38 PM, Giusanny <giusanny@...> wrote:

Did it! ;)

 

http://www.red5tutorials.net/index.php/Howtos:AdminWebApp

 

Da: red5-bounces@... [mailto:red5-bounces@...] Per conto di Dominick Accattato
Inviato: venerdì 16 ottobre 2009 15.30
A: red5@...
Oggetto: Re: [Red5] R: chenge username/password in admin application

 

Maybe, you want to add that to the wiki? ;)

On Fri, Oct 16, 2009 at 4:19 AM, Giusanny <giusanny@...> wrote:

Thanks Paul, waiting for the feature in RC2 I post a simple jsp to change the pwd (made just in 5 minutes…)  just to participate a little to the red5 project :D and help someone else…

 

<%@ page language="java" import = "org.springframework.security.providers.encoding.*,org.apache.derby.jdbc.*,javax.sql.*,java.sql.*" %>  

<%

if(request.getParameter("cambia")!=null){

                               String prop = System.getenv("DERBY_HOME");

 

                               if (prop == null) {

                                               prop = System.getProperty("user.home");

                               }

                               System.setProperty("derby.system.home", prop);

                              

                               Connection conn = null;

                               Statement stmt = null;

                               try {

            // JDBC stuff

                                               DataSource ds = null;

                                               try {

                                                               Object o = null;

                                                               if (o == null) {

                                                                              EmbeddedDataSource eds = new EmbeddedDataSource();

                                                                              eds.setCreateDatabase("create");

                                                                              eds.setDatabaseName("Admin");

                                                                              eds.setPassword("APP");

                                                                              eds.setUser("APP");

 

                                                                              ds = eds;

                                                               } else {

                                                                              ds = (DataSource) o;

                                                               }

                                               } catch (Exception e) {

                                                               out.println("Context check for datasource " + e.getMessage() );

                                               }

                                              

                                               //create the db and get a connection

                                               conn = ds.getConnection();

                                               //make a statement

                                               stmt = conn.createStatement();

                                              

                                               String user = request.getParameter("username");

                                               String password = request.getParameter("password");

                                               String newPassword = request.getParameter("newPassword");

                                              

                                               Md5PasswordEncoder md5 = new Md5PasswordEncoder();

                                               password = md5.encodePassword(password, "seKret").toString();

                                               newPassword = md5.encodePassword(newPassword, "seKret").toString();

                                               //update

                                               stmt.execute("Update APPUSER set password = '"+newPassword+"' WHERE username='"+user+"' and password = '"+password+"'");

                               } catch (Exception e) {

                                               out.println("Error in db setup " + e.getMessage());

                               } finally {

                                               if (stmt != null) {

                                                               try {

                                                                              stmt.close();

                                                               } catch (SQLException e) {

                                                               }

                                               }

                                               if (conn != null) {

                                                               try {

                                                                              conn.close();

                                                               } catch (SQLException e) {

                                                               }

                                               }

                               }

}

%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">

<head>

  <title>Red5 Admin</title>

  <meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type" />

  <style type="text/css" media="screen">

html, body, #containerA, #containerB { height: 100%;

}

.formbg { background-color: rgb(238, 238, 238);

}

.formtable { border: 2px solid rgb(183, 186, 188);

}

 

.formtext { font-family: Arial,Helvetica,sans-serif;

    font-size: 12px;

    color: rgb(11, 51, 73);

}

 

body { margin: 0pt;

padding: 0pt;

overflow: hidden;

background-color: rgb(250, 250, 250);

}

.error {

                font-family: Arial,Helvetica,sans-serif;

                font-size: 12px;

                color: red;

}

  </style>

</head>

<body>

<table style="text-align: left; width: 100%; height: 100%;" border="0" cellpadding="0" cellspacing="10">

  <tbody>

    <tr>

      <td height="54"><img style="width: 136px; height: 54px;" alt="" src="assets/logo.png" /></td>

    </tr>

    <tr class="formbg">

      <td align="center" valign="middle">

      <table style="width: 400px;" class="formtable" border="0" cellpadding="0" cellspacing="2">

      <tr>

                <td class="formtext">&nbsp;<b>Register Admin User</b></td>

      </tr>

      <tr>

      <td>

      <form method="post" action="changePwd.jsp">

      <input type="hidden" name="cambia" value="vai" />

        <table style="width: 400px;"  border="0" cellpadding="0" cellspacing="5">

          <tbody>

            <tr>

              <td align="right" width="20%" class="formtext">Username:</td>

                                       <td width="20%">

                                           <input name="username" value="" />

                                       </td>

                                    </tr>

            <tr>

                                                 <td align="right" width="20%" class="formtext">Password:</td>

                                       <td width="20%">

                                         <input type="password" name="password" value="" />

                                       </td>

                                    </tr>

            <tr>

                                                 <td align="right" width="20%" class="formtext">new Password:</td>

                                       <td width="20%">

                                         <input type="newPassword" name="newPassword" value="" />

                                       </td>

                                    </tr>

            <tr>

              <td><input type="submit" value="Submit" /></td>

              <td></td>

              <td class="error">

              </td>

 

            </tr>

          </tbody>

        </table>

      </form>

      </td>

      </tr>

      </table>

      </td>

    </tr>

 

  </tbody>

</table>

<br />

</body>

</html>

 

p.s. just put the jsp in admin folder…

Giuseppe

 

Da: red5-bounces@... [mailto:red5-bounces@...] Per conto di Mondain
Inviato: giovedì 15 ottobre 2009 20.43


A: red5@...
Oggetto: Re: [Red5] chenge username/password in admin application

 

FYI, I just heard about this application which you could use to access the derby db used by the admin application:

 

Paul

On Tue, Oct 13, 2009 at 12:43 PM, Mondain <mondain@...> wrote:

I think its "password", btw we made this app into a plugin which will be available with 0.9.0 RC2 within 30 days. I'll make a note to add change password functionality a bit simpler.

 

Paul

On Tue, Oct 13, 2009 at 7:22 AM, Giusanny <giusanny@...> wrote:

Please,

anybody knows how to change user and password of the application “admin” ?

 

Thanks in advance

Giuseppe

 

 

_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org




--
http://gregoire.org/
http://code.google.com/p/red5/
http://code.google.com/p/blue5/




--
http://gregoire.org/
http://code.google.com/p/red5/
http://code.google.com/p/blue5/


_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org

 


_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org

 


_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org

 


_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org



_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org