You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stratos.apache.org by Rob Harrison <ro...@chillidrop.com> on 2014/06/30 20:04:28 UTC
Default admin password change
Hi
Is this the only way to change the default admin password when using MySQL?
https://cwiki.apache.org/confluence/display/STRATOS/4.0.0+Changing+User+Passwords+in+the+Database
./chpasswd.sh --db-driver com.mysql.jdbc.Driver --db-username root --db-password mysql --username admin --new-password abc123 --db-url jdbc:mysql://10.134.130.126:3306/userstore
Thanks
Rob
[chillidrop]
Rob Harrison
+44 7835973695
rob@chillidrop.com
The information contained in this e-mail is confidential and may be privileged. It is intended for the addressee only. If you are not the intended recipient, please delete this e-mail immediately. The contents of this e-mail must not be disclosed or copied without the sender's consent.
We cannot accept any responsibility for viruses, so please scan all attachments. Statements and opinions expressed in this message are those of the author and do not necessarily reflect those of the company.
Re: Default admin password change
Posted by Imesh Gunaratne <im...@apache.org>.
Hi Rob,
The default admin password is set in
<stratos-home>/repository/conf/user-mgt.xml file:
<UserManager>
<Realm>
<Configuration>
<AddAdmin>true</AddAdmin>
<AdminRole>admin</AdminRole>
<AdminUser>
<UserName>admin</UserName>
<Password>admin</Password>
</AdminUser>
...
</Configuration>
</Realm>
</UserManager>
If it is a fresh installation you could change the admin password here.
On Mon, Jun 30, 2014 at 3:06 PM, chris snow <ch...@gmail.com> wrote:
> Hi Rob, is there a problem with the chpasswd.sh script?
>
>
> On Mon, Jun 30, 2014 at 7:04 PM, Rob Harrison <ro...@chillidrop.com> wrote:
>
>> Hi
>>
>>
>>
>> Is this the only way to change the default admin password when using
>> MySQL?
>>
>>
>>
>>
>> https://cwiki.apache.org/confluence/display/STRATOS/4.0.0+Changing+User+Passwords+in+the+Database
>>
>>
>>
>> ./chpasswd.sh --db-driver com.mysql.jdbc.Driver --db-username root
>> --db-password mysql --username admin --new-password abc123 --db-url
>> jdbc:mysql://10.134.130.126:3306/userstore
>>
>>
>>
>> Thanks
>>
>>
>>
>> Rob
>>
>>
>>
>>
>> [image: chillidrop]
>>
>> *Rob Harrison*
>>
>>
>> +44 7835973695
>>
>>
>> rob@chillidrop.com
>>
>> The information contained in this e-mail is confidential and may
>> be privileged. It is intended for the addressee only. If you are not the
>> intended recipient, please delete this e-mail immediately. The contents of
>> this e-mail must not be disclosed or copied without the sender's consent.
>>
>> We cannot accept any responsibility for viruses, so please scan all
>> attachments. Statements and opinions expressed in this message are those of
>> the author and do not necessarily reflect those of the company.
>>
>
>
--
Imesh Gunaratne
Technical Lead, WSO2
Committer & PPMC Member, Apache Stratos
RE: Default admin password change
Posted by Rob Harrison <ro...@chillidrop.com>.
Hi Chris
I did, there are a couple of places that could do with an INFO/Note item.
I will put them together.
Thanks
Rob
From: chris snow [mailto:chsnow123@gmail.com]
Sent: 02 July 2014 13:46
To: dev@stratos.apache.org
Subject: RE: Default admin password change
Hi Rob, did you follow the prerequisite steps on the wiki page? If you did, would you mind adding a JIRA issue for this against Documentation?
On Jul 2, 2014 1:10 PM, "Rob Harrison" <ro...@chillidrop.com>> wrote:
Hi Chris
When I run it I get:
BUILD SUCCESSFUL
Total time: 2 seconds
Database driver [com.mysql.jdbc.Driver] not found in classpath.
So it doesn’t set the password, the connector jar is set correctly in the setup.conf file as I can currently login etc with default password.
Where do I need to set this classpath in order for the script to work? I’ve searched around and tried a few things but no luck so far.
Thanks
Rob
From: chris snow [mailto:chsnow123@gmail.com<ma...@gmail.com>]
Sent: 30 June 2014 20:06
To: dev
Subject: Re: Default admin password change
Hi Rob, is there a problem with the chpasswd.sh script?
On Mon, Jun 30, 2014 at 7:04 PM, Rob Harrison <ro...@chillidrop.com>> wrote:
Hi
Is this the only way to change the default admin password when using MySQL?
https://cwiki.apache.org/confluence/display/STRATOS/4.0.0+Changing+User+Passwords+in+the+Database
./chpasswd.sh --db-driver com.mysql.jdbc.Driver --db-username root --db-password mysql --username admin --new-password abc123 --db-url jdbc:mysql://10.134.130.126:3306/userstore<http://10.134.130.126:3306/userstore>
Thanks
Rob
[Image removed by sender. chillidrop]
Rob Harrison
+44 7835973695<tel:%2B44%207835973695>
rob@chillidrop.com<ma...@chillidrop.com>
The information contained in this e-mail is confidential and may be privileged. It is intended for the addressee only. If you are not the intended recipient, please delete this e-mail immediately. The contents of this e-mail must not be disclosed or copied without the sender's consent.
We cannot accept any responsibility for viruses, so please scan all attachments. Statements and opinions expressed in this message are those of the author and do not necessarily reflect those of the company.
[Image removed by sender. chillidrop]
Rob Harrison
+44 7835973695<tel:%2B44%207835973695>
rob@chillidrop.com<ma...@chillidrop.com>
The information contained in this e-mail is confidential and may be privileged. It is intended for the addressee only. If you are not the intended recipient, please delete this e-mail immediately. The contents of this e-mail must not be disclosed or copied without the sender's consent.
We cannot accept any responsibility for viruses, so please scan all attachments. Statements and opinions expressed in this message are those of the author and do not necessarily reflect those of the company.
[chillidrop]
Rob Harrison
+44 7835973695
rob@chillidrop.com
The information contained in this e-mail is confidential and may be privileged. It is intended for the addressee only. If you are not the intended recipient, please delete this e-mail immediately. The contents of this e-mail must not be disclosed or copied without the sender's consent.
We cannot accept any responsibility for viruses, so please scan all attachments. Statements and opinions expressed in this message are those of the author and do not necessarily reflect those of the company.
RE: Default admin password change
Posted by chris snow <ch...@gmail.com>.
Hi Rob, did you follow the prerequisite steps on the wiki page? If you
did, would you mind adding a JIRA issue for this against Documentation?
On Jul 2, 2014 1:10 PM, "Rob Harrison" <ro...@chillidrop.com> wrote:
> Hi Chris
>
>
>
> When I run it I get:
>
> BUILD SUCCESSFUL
>
> Total time: 2 seconds
>
> Database driver [com.mysql.jdbc.Driver] not found in classpath.
>
>
>
> So it doesn’t set the password, the connector jar is set correctly in the setup.conf file as I can currently login etc with default password.
>
>
>
> Where do I need to set this classpath in order for the script to work? I’ve searched around and tried a few things but no luck so far.
>
>
>
> Thanks
>
>
>
> Rob
>
>
>
>
>
> *From:* chris snow [mailto:chsnow123@gmail.com]
> *Sent:* 30 June 2014 20:06
> *To:* dev
> *Subject:* Re: Default admin password change
>
>
>
> Hi Rob, is there a problem with the chpasswd.sh script?
>
>
>
> On Mon, Jun 30, 2014 at 7:04 PM, Rob Harrison <ro...@chillidrop.com> wrote:
>
> Hi
>
>
>
> Is this the only way to change the default admin password when using
> MySQL?
>
>
>
>
> https://cwiki.apache.org/confluence/display/STRATOS/4.0.0+Changing+User+Passwords+in+the+Database
>
>
>
> ./chpasswd.sh --db-driver com.mysql.jdbc.Driver --db-username root
> --db-password mysql --username admin --new-password abc123 --db-url
> jdbc:mysql://10.134.130.126:3306/userstore
>
>
>
> Thanks
>
>
>
> Rob
>
>
>
>
>
> [image: Image removed by sender. chillidrop]
>
>
>
>
>
>
>
>
>
> *Rob Harrison*
>
>
> +44 7835973695
>
>
> rob@chillidrop.com
>
>
>
>
>
> The information contained in this e-mail is confidential and may be
> privileged. It is intended for the addressee only. If you are not the
> intended recipient, please delete this e-mail immediately. The contents of
> this e-mail must not be disclosed or copied without the sender's consent.
>
> We cannot accept any responsibility for viruses, so please scan all
> attachments. Statements and opinions expressed in this message are those of
> the author and do not necessarily reflect those of the company.
>
>
> [image: chillidrop]
>
> *Rob Harrison*
>
>
> +44 7835973695
>
>
> rob@chillidrop.com
>
> The information contained in this e-mail is confidential and may
> be privileged. It is intended for the addressee only. If you are not the
> intended recipient, please delete this e-mail immediately. The contents of
> this e-mail must not be disclosed or copied without the sender's consent.
>
> We cannot accept any responsibility for viruses, so please scan all
> attachments. Statements and opinions expressed in this message are those of
> the author and do not necessarily reflect those of the company.
>
RE: Default admin password change
Posted by Rob Harrison <ro...@chillidrop.com>.
Hi
Update, I’ve sorted the classpath.
Thanks
Rob
From: Rob Harrison [mailto:rob@chillidrop.com]
Sent: 02 July 2014 13:10
To: dev@stratos.apache.org
Subject: RE: Default admin password change
Hi Chris
When I run it I get:
BUILD SUCCESSFUL
Total time: 2 seconds
Database driver [com.mysql.jdbc.Driver] not found in classpath.
So it doesn’t set the password, the connector jar is set correctly in the setup.conf file as I can currently login etc with default password.
Where do I need to set this classpath in order for the script to work? I’ve searched around and tried a few things but no luck so far.
Thanks
Rob
From: chris snow [mailto:chsnow123@gmail.com]
Sent: 30 June 2014 20:06
To: dev
Subject: Re: Default admin password change
Hi Rob, is there a problem with the chpasswd.sh script?
On Mon, Jun 30, 2014 at 7:04 PM, Rob Harrison <ro...@chillidrop.com>> wrote:
Hi
Is this the only way to change the default admin password when using MySQL?
https://cwiki.apache.org/confluence/display/STRATOS/4.0.0+Changing+User+Passwords+in+the+Database
./chpasswd.sh --db-driver com.mysql.jdbc.Driver --db-username root --db-password mysql --username admin --new-password abc123 --db-url jdbc:mysql://10.134.130.126:3306/userstore<http://10.134.130.126:3306/userstore>
Thanks
Rob
[Image removed by sender. chillidrop]
Rob Harrison
+44 7835973695<tel:%2B44%207835973695>
rob@chillidrop.com<ma...@chillidrop.com>
The information contained in this e-mail is confidential and may be privileged. It is intended for the addressee only. If you are not the intended recipient, please delete this e-mail immediately. The contents of this e-mail must not be disclosed or copied without the sender's consent.
We cannot accept any responsibility for viruses, so please scan all attachments. Statements and opinions expressed in this message are those of the author and do not necessarily reflect those of the company.
[Image removed by sender. chillidrop]
Rob Harrison
+44 7835973695
rob@chillidrop.com
The information contained in this e-mail is confidential and may be privileged. It is intended for the addressee only. If you are not the intended recipient, please delete this e-mail immediately. The contents of this e-mail must not be disclosed or copied without the sender's consent.
We cannot accept any responsibility for viruses, so please scan all attachments. Statements and opinions expressed in this message are those of the author and do not necessarily reflect those of the company.
[Image removed by sender. chillidrop]
Rob Harrison
+44 7835973695
rob@chillidrop.com
The information contained in this e-mail is confidential and may be privileged. It is intended for the addressee only. If you are not the intended recipient, please delete this e-mail immediately. The contents of this e-mail must not be disclosed or copied without the sender's consent.
We cannot accept any responsibility for viruses, so please scan all attachments. Statements and opinions expressed in this message are those of the author and do not necessarily reflect those of the company.
[chillidrop]
Rob Harrison
+44 7835973695
rob@chillidrop.com
The information contained in this e-mail is confidential and may be privileged. It is intended for the addressee only. If you are not the intended recipient, please delete this e-mail immediately. The contents of this e-mail must not be disclosed or copied without the sender's consent.
We cannot accept any responsibility for viruses, so please scan all attachments. Statements and opinions expressed in this message are those of the author and do not necessarily reflect those of the company.
RE: Default admin password change
Posted by Rob Harrison <ro...@chillidrop.com>.
Hi Chris
When I run it I get:
BUILD SUCCESSFUL
Total time: 2 seconds
Database driver [com.mysql.jdbc.Driver] not found in classpath.
So it doesn’t set the password, the connector jar is set correctly in the setup.conf file as I can currently login etc with default password.
Where do I need to set this classpath in order for the script to work? I’ve searched around and tried a few things but no luck so far.
Thanks
Rob
From: chris snow [mailto:chsnow123@gmail.com]
Sent: 30 June 2014 20:06
To: dev
Subject: Re: Default admin password change
Hi Rob, is there a problem with the chpasswd.sh script?
On Mon, Jun 30, 2014 at 7:04 PM, Rob Harrison <ro...@chillidrop.com>> wrote:
Hi
Is this the only way to change the default admin password when using MySQL?
https://cwiki.apache.org/confluence/display/STRATOS/4.0.0+Changing+User+Passwords+in+the+Database
./chpasswd.sh --db-driver com.mysql.jdbc.Driver --db-username root --db-password mysql --username admin --new-password abc123 --db-url jdbc:mysql://10.134.130.126:3306/userstore<http://10.134.130.126:3306/userstore>
Thanks
Rob
[Image removed by sender. chillidrop]
Rob Harrison
+44 7835973695<tel:%2B44%207835973695>
rob@chillidrop.com<ma...@chillidrop.com>
The information contained in this e-mail is confidential and may be privileged. It is intended for the addressee only. If you are not the intended recipient, please delete this e-mail immediately. The contents of this e-mail must not be disclosed or copied without the sender's consent.
We cannot accept any responsibility for viruses, so please scan all attachments. Statements and opinions expressed in this message are those of the author and do not necessarily reflect those of the company.
[chillidrop]
Rob Harrison
+44 7835973695
rob@chillidrop.com
The information contained in this e-mail is confidential and may be privileged. It is intended for the addressee only. If you are not the intended recipient, please delete this e-mail immediately. The contents of this e-mail must not be disclosed or copied without the sender's consent.
We cannot accept any responsibility for viruses, so please scan all attachments. Statements and opinions expressed in this message are those of the author and do not necessarily reflect those of the company.
Re: Default admin password change
Posted by chris snow <ch...@gmail.com>.
Hi Rob, is there a problem with the chpasswd.sh script?
On Mon, Jun 30, 2014 at 7:04 PM, Rob Harrison <ro...@chillidrop.com> wrote:
> Hi
>
>
>
> Is this the only way to change the default admin password when using
> MySQL?
>
>
>
>
> https://cwiki.apache.org/confluence/display/STRATOS/4.0.0+Changing+User+Passwords+in+the+Database
>
>
>
> ./chpasswd.sh --db-driver com.mysql.jdbc.Driver --db-username root
> --db-password mysql --username admin --new-password abc123 --db-url
> jdbc:mysql://10.134.130.126:3306/userstore
>
>
>
> Thanks
>
>
>
> Rob
>
>
>
>
> [image: chillidrop]
>
> *Rob Harrison*
>
>
> +44 7835973695
>
>
> rob@chillidrop.com
>
> The information contained in this e-mail is confidential and may
> be privileged. It is intended for the addressee only. If you are not the
> intended recipient, please delete this e-mail immediately. The contents of
> this e-mail must not be disclosed or copied without the sender's consent.
>
> We cannot accept any responsibility for viruses, so please scan all
> attachments. Statements and opinions expressed in this message are those of
> the author and do not necessarily reflect those of the company.
>