cancel
Showing results for 
Search instead for 
Did you mean: 
mikrotik
Level 10

How to create multiple login credentials for Web Console via MWG - CLI

Greetings!

Dear Friends,

I have access of McAfee Web Gateway CLI but forgot credentials for connecting web console. Please find the attached pictures.

Thank You!

Best Regards,

0 Kudos
7 Replies
eelsasser
Level 15

Re: How to create multiple login credentials for Web Console via MWG - CLI

admin / webgateway is the defult user/password, but chances are the password has changed.

If you added additional users they would be embedded in the config:

[root@mwg7-1 ~]# current

[root@mwg7-1 2016-03-24_21-23-10-929_+0000]# cd internal/

[root@mwg7-1 internal]# cat administration.xml

0 Kudos
mikrotik
Level 10

Re: Re: How to create multiple login credentials for Web Console via MWG - CLI

Hi,

I did the same but what to do next; the password is encrypted.

How can i create new credentials from here? OR how can i change the password from here?

Thank You!@

0 Kudos
eelsasser
Level 15

Re: Re: How to create multiple login credentials for Web Console via MWG - CLI

Change the hash to:

 

0fd19c3dc3347ba85c501ae9d702642b58d6bc39e067a6a7932b6eea129df0af

 

Then run the command:

 

/opt/mwg/bin/mwg-coordinator -F file:in=$(</opt/mwg/storage/active_configuration)

 

your password should be 'webgateway' afterwards.

0 Kudos
mikrotik
Level 10

Re: How to create multiple login credentials for Web Console via MWG - CLI

Hello,

How to change the hash; please provide steps.

Thank You!

0 Kudos
mikrotik
Level 10

Re: How to create multiple login credentials for Web Console via MWG - CLI

Please update.

Thank You!

0 Kudos
mikrotik
Level 10

Re: How to create multiple login credentials for Web Console via MWG - CLI

Any Update?

Thank You!

0 Kudos
eelsasser
Level 15

Re: How to create multiple login credentials for Web Console via MWG - CLI

Use vi to edit the file and replace the text between <passwordHash>...</passwordHash>

0 Kudos