wso2 / product-iots

Welcome to the WSO2 IoT Server source code! For info on working with the WSO2 IoT Server repository and contributing code, click the link below.
http://wso2.github.io/
Apache License 2.0
184 stars 181 forks source link

Changing the super administrator in files configuration #1362

Open Tofdu31 opened 7 years ago

Tofdu31 commented 7 years ago

Hi, I just watched your procedure to change the super administrator password entered in the files in documentation : https://docs.wso2.com/display/IoTS310/Changing+the+Password#67a39fd9a9e242b1b31b51fb69be39d1

By doing a thorough search, I realize that there is much more to be done than what is documented. Here are the different versions of the super administrator password calls.

<AdminPassword>admin</AdminPassword>
<Password>admin</Password>
<password>admin</password>
<DASPassword>admin</DASPassword>
<DASPassword>admin</DASPassword>
<property name="Password">admin</property>
<property name="password">admin</property>
<Property name="AuthPass">admin</Property>
<remoteServerPassword>admin</remoteServerPassword>
"password": "admin"
"Password">admin</Parameter>
"password":"admin"
password=admin
<property key="password">admin</property>
<Property name="ConnectionPassword">admin</Property>
"adminPassword": "admin"
"registryPassword" : "admin"
"password": "admin"
again
again
again...

And by continuing my research, I still think of finding

In the files api-manager.xml, the password is applied by a variable:

<!-- Admin password for API Store. -->
        <Password>${admin.password}</Password>

I suggest that we make a point here for creating a super administrator password replacement script.

Thank you for your explanations and for your help.

Tofdu31 commented 7 years ago

For information, I am more than 25 variations for the password

sameerawickramasekara commented 7 years ago

Hi,

The documentation link is now updated. Please refer this https://docs.wso2.com/display/IoTS310/Changing+the+Super+Administrator+Username+and+Password All the files that needs to be changed is documented there. We will further refactor the xml files to reduce variations of configurations, and provide a script in the upcoming releases.

Regards, Sameera

Tofdu31 commented 7 years ago

Your documentation is still incomplete. Here is the list of expressions that need to be replaced. If you find others, please complete here. This will make it possible to finalize this long work!

<AdminPassword>admin</AdminPassword>
<Password>admin</Password>
<password>admin</password>
<DASPassword>admin</DASPassword>
<DASPassword>admin</DASPassword>
<property name="Password">admin</property>
<property name="password">admin</property>
<Property name="AuthPass">admin</Property>
<remoteServerPassword>admin</remoteServerPassword>
"password": "admin"
"Password">admin</Parameter>
"password":"admin"
password=admin
<property key="password">admin</property>
<Property name="ConnectionPassword">admin</Property>
log4j.appender.LOGEVENT.password=admin
<Password>${admin.password}</Password>
<Property name="Password">admin</Property-->
<property name="password" value="admin"/>
<property name="archivedPassword" value="admin"/>
<Parameter Name="Password">admin</Parameter>
UserManager.AdminUser.Password=\[admin\]
<user username="admin" password="admin"
"adminPassword": "admin"
"registryPassword" : "admin"
<adminPassword>admin</adminPassword>
<property name="Password">admin</property>
<Property name="AuthPass">admin</Property>

See you soon

stale[bot] commented 6 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

stale[bot] commented 6 years ago

This issue has been automatically marked as stale because it has not had recent activity.