LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 04-03-2010, 11:01 PM   #1
noodlesoffire
LQ Newbie
 
Registered: Apr 2010
Posts: 6

Rep: Reputation: 0
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.
 
Old 04-04-2010, 04:41 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,964
Blog Entries: 11

Rep: Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
pam time restrictions not working !!? kingston Linux - Newbie 17 09-02-2010 07:10 PM
Get pam time restrictions working for linux samba domain login. v2ueha6 Linux - Newbie 1 12-20-2008 03:40 AM
System time vs Hardware time and Daylight Savings Time Toadman Linux - General 6 03-17-2007 08:12 AM
Why time slot mentioned in /etc/security/time.conf doesn't work pihu Linux - Security 1 01-06-2006 01:20 AM


All times are GMT -5. The time now is 03:08 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration