srego4 Mon, 12/01/2008 - 07:54
User Badges:

thks htarra.... but I was not looking for password recovery for routers/switches.

giovambattista Thu, 03/12/2009 - 08:14
User Badges:

Was there a solution to this problem... I have the same problem here. I need to recover the GUI admin password for NAC server

Daniel Laden Wed, 03/25/2009 - 17:58
User Badges:
  • Cisco Employee,

The original topic was for the nac guest server. You are mentioning the nac server.

If nac guest server:

ssh into nac guest server and run:

psql -U postgres -h localhost gapdb -c "UPDATE adminusers SET password=md5('admin') WHERE name='admin'"

If nac server:

ssh into the nac server and run

'service perfigo config'

read all the questions and change nothing. The last question is to reset the admin password. Restart the NAC Server when finished.

Configuration Utility Script

-Dan Laden

o.priest Fri, 01/22/2010 - 07:23
User Badges:
  • Bronze, 100 points or more


I have been looking for how to reset the admin password for the NAC Guest Server all day so thanks for publishing this information. Its a shame Cisco doesnt publish this official somewhere as it would save me a lot of stress.

I am off to run the command now.

I am finding that version 2.0.1 of NAC Guest Server is a bit flaky with the admin username and password. After you set the admin password on the GUI and log out it will sometimes lock you out.

Has anyone else had this experience?



o.priest Tue, 02/09/2010 - 06:35
User Badges:
  • Bronze, 100 points or more

Yes as I foolishly found out the /admin at the end of the URL is suprisingly important for logging in via admin. Oops

One quirky thing is that the NGS will let you login using the admin username via the sponsor GUI one time when the server is first built. After you log out and log back in it doesnt work.

Anyway, all these little issues during testing is good for me as it saves me hastle during production roll outs.



jonperret Thu, 02/24/2011 - 07:52
User Badges:

In 2.0.2 the column name is username instead of name so you have to do:

psql -U postgres -h localhost gapdb -c "UPDATE adminusers SET password=md5('admin') WHERE username='admin'"

Only problem is it's still not working for me.

If I do a:

psql -U postgres -h localhost gapdb -c "select * from adminusers"

I can see that the update query works if I change the password I see the MD5 hashed password change.

id | username |             password             | firstname | surname | email | groupname | changepassword
  1 | admin    | 21232f297a57a5a743894a0e4a801fc3 | admin     | user    |       | DEFAULT   |

Anyone run into this? Yes I'm using https://servername/admin/index.php to try to login.



This Discussion