Hi,
thanks for all, its working!
The issue is that I would like to only generate a password of the day, not
an user and a password combination. Could it be possible?
Otherwise, if not possible how could I configure the singin page to
autofill the "invite" int he form? Could it be possible to hide it to users
also?
Could it be possible to create a chained login with a password of the day
and a guest sign up policy?
Greetings.
Date: Wed, 5 Oct 2016 18:21:21 -0400
From: Durand fabrice <fdur...@inverse.ca>
Subject: Re: [PacketFence-users] How to configure password of the day
To: packetfence-users@lists.sourceforge.net
Message-ID: <b1a110fb-dfb8-517f-506b-5b14bee39...@inverse.ca>
Content-Type: text/plain; charset="windows-1252"
Here we go !!!
# Generate Password
0 5 * * 1 if [ -f /var/run/mysqld/mysqld.pid ]; then
/usr/local/pf/addons/generatePassword.sh; fi
#/bin/bash
#
# Generate random guest password
#
PASSWORD=`< /dev/urandom tr -dc a-z0-9 | head -c8`
#Add it to invite.conf
htpasswd -b /usr/local/pf/conf/invite.conf invite ${PASSWORD}
#Add it to a plaintext file
if [ ! -f /usr/local/pf/conf/invite.plaintext ]; then
touch /usr/local/pf/conf/invite.plaintext
fi
echo "#Generated on `date`" > /usr/local/pf/conf/invite.date
echo "${PASSWORD}" > /usr/local/pf/conf/invite.plaintext
#Mail the password
SUBJECT="IT - Password of the week"
EMAIL="i...@acme.com"
mail -s "$SUBJECT" "$EMAIL" <<EOM
Hi Guys,
Here the password of the week for the "invite" user:
Username: invite
Password: ${PASSWORD}
Regards
Password Generator
EOM
Then create a file authentication source that use this file
/usr/local/pf/conf/invite.conf
Fabrice
Le 2016-10-05 ? 17:19, Rokkhan a ?crit :
>
>
> Hi,
> How should I configure password of the day for guests users?. I
> have seen that is available but I do not know how to configure
> following the manual.
> Greetings.
>
>
>
> ------------------------------------------------------------
------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
>
>
> _______________________________________________
> PacketFence-users mailing list
> PacketFence-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/packetfence-users
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
PacketFence-users mailing list
PacketFence-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/packetfence-users