kshitijyelpale / blockchain-hyperledger-fabric-electronic-patient-records

GNU General Public License v3.0
49 stars 42 forks source link

CU-bytx1n - Change admin username and password for hospital 1 and hos… #12

Closed varshakamath1 closed 3 years ago

varshakamath1 commented 3 years ago

Admin username and password changed for hospital 1, 2, and 3.

kshitijyelpale commented 3 years ago

Task linked: CU-bytx1n Change admin username and password for hospital 1 and hospital 2

varshakamath1 commented 3 years ago

@varshakamath1 - Did the network come up? Please also check the configtx.yaml file. The policies of each Hospital are defined using admin. Ex:

Policies:
        Readers:
            Type: Signature
            Rule: "OR('hosp1MSP.admin', 'hosp1MSP.peer', 'hosp1MSP.client')"

I am able to bring up the network. I don't think any changes are required in configtx.yaml.
image

Hospital 3 is also added to channel image

varshakamath1 commented 3 years ago

@kshitijyelpale: Any update on reviewing this ticket?

varshakamath1 commented 3 years ago

in regsiterEnroll.sh the admin username and password is incorrect. hosp1hosp1admin:hosp1hosp1lithium

This is the standard that is used in the test network as well. image

This is the username and password before. image

I think it should be in the same format. When I remove the first hosp1, I am able to up the network, but the channel is not created. image

sjathin commented 3 years ago

So it should be hosp2hosp2admin ??

varshakamath1 commented 3 years ago

So it should be hosp2hosp2admin ??

Yes. It should be hosp2hosp2admin.