LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   PAM time restrictions - changing Time.conf so it gets time from sql table (https://www.linuxquestions.org/questions/linux-newbie-8/pam-time-restrictions-changing-time-conf-so-it-gets-time-from-sql-table-799866/)

noodlesoffire 04-03-2010 11:01 PM

PAM time restrictions - changing Time.conf so it gets time from sql table
 
PAM time restrictions - changing Time.conf so it gets time from a sql table

I was wondering with the PAM authentication module (pam_time) that I can grab time from a server using sql/postgress which uses TIMEDATE function to get the time of logging out into pam_time ?


so basically I want to insert sql statments into Time.conf which would get the time from a table.

Tinkster 04-04-2010 04:41 PM

Hi, welcome to LQ!

Quote:

so basically I want to insert sql statments into Time.conf which would get the time from a table.
And that won't fly; the only way I see to go about it is to write
a trigger within postgres using an "unsafe" language, e.g.: Pl/Peru
and use that to modify the text file. Trying to get PAM to READ
a database would be way more complex.


Cheers,
Tink


All times are GMT -5. The time now is 09:04 AM.