Rather interestingly I've just discovered that the admin password is now stored 
within the mysql database in a temporary_password table. The instructions in 
the FAQs are out of date.
Viewing this table on my secondary server shows (obviously I've changed the 
password here):

mysql> select * from temporary_password;
+-------+--------------+---------------------+---------------------+-----------------+--------------+----------+---------+---------------------+
| pid   | password     | valid_from          | expiration          | 
access_duration | access_level | category | sponsor | unregdate           |
+-------+--------------+---------------------+---------------------+-----------------+--------------+----------+---------+---------------------+
| admin | password | 2014-05-01 16:31:26 | 2038-01-01 00:00:00 | 9999D          
 | ALL          |        1 |       0 | 0000-00-00 00:00:00 |
+-------+--------------+---------------------+---------------------+-----------------+--------------+----------+---------+---------------------+
1 row in set (0.00 sec)

So, the password IS there.

So, after a little brain wave I realised that packetfence might not have the 
credentials to access the pf database on the secondary server, which are stored 
in pf.conf

I copied over the pf.conf file from primary to secondary, changing the hostname 
and IP addresses and I can now access it all with no issues.

Cheers,
Andi
From: Morris, Andi [mailto:[email protected]]
Sent: 02 May 2014 12:33
To: '[email protected]'
Subject: Re: [PacketFence-users] Change web interface admin password via CLI

I should have said that I also cannot get in using the default password of 
'admin'

From: Morris, Andi [mailto:[email protected]]
Sent: 02 May 2014 12:17
To: 
[email protected]<mailto:[email protected]>
Subject: [PacketFence-users] Change web interface admin password via CLI

Hi all,
When setting up a HA pair of Packetfence servers everything goes well up until 
the configuration of the separate servers. With the primary the active server I 
log in and run through the configurator as usual with no problems. Now because 
my mysql database replicates to the secondary server using DRBD running the 
configurator on the secondary will not work, so I just go to 
https://secondarypf:1443/admin, however because I haven't run the configurator 
I cannot login to the admin interface with the username and password I setup 
for the primary server......a bit of a catch 22.

What's the best way of getting the second server configured with the web 
interface admin password?

As an aside, is there a good way of replicating the entire config, replacing 
the hostname and IP addresses where applicable?

Cheers,
Andi

-------------------------------------
Andi Morris
IT Security Officer
Cardiff Metropolitan University
T: 02920 205720
E: [email protected]<mailto:[email protected]>
--------------------------------------

------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.  Get 
unparalleled scalability from the best Selenium testing platform available.
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
PacketFence-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/packetfence-users

Reply via email to