#1  
Old 1st September 2006, 14:58
Aaron Morris Aaron Morris is offline
Junior Member
 
Join Date: Sep 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Time logging xp users

We have a bunch of xp machines connected to a fedora server acting as pdc. I want to restrict users to different amounts of time per day, and so far have netlogon and logoff scripts running that update a perl script on the server loggin the logon and logoff.

This script in turn updates how many hours they have used. What I want now is a way of kicking the loggin out the users from the xp machines if they reach there time limit...the way I thought to do this is have a perl script running every minute (from cron) that checks there time left against a database. If they have reached there time limit it runs a remote script on the xp machine that logs them out and the disables there account.

Am I thinking along the right lines or am I barking up completely the wrong tree? I just can't think of a more elegant solution....any suggestions welcome
Reply With Quote
Sponsored Links
  #2  
Old 2nd September 2006, 16:38
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
Default

Sounds good. Maybe Till knows of a more elegant solution as he's the PDC expert here...
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 2nd September 2006, 17:20
Aaron Morris Aaron Morris is offline
Junior Member
 
Join Date: Sep 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Seems to be working ok so far, I have written a small c# server that resides on each xp machine and waits for a connection. The perl script then uses sockets to connect to the xp machine that requires shutting down and initiates the logoff by having the xp machine call the windows cmd shutdown command from a batch file.
Reply With Quote
  #4  
Old 3rd September 2006, 23:42
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
Default

Do you mind posting the solution here (or write a howto about it)? I think this is a very interesting solution...
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 3rd September 2006, 23:45
Aaron Morris Aaron Morris is offline
Junior Member
 
Join Date: Sep 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

Yer I plan to release all source code/files etc.

Bare in mind its a very custom solution but i'm sure it will be adaptable and usable by other folks.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Pure-FTPd downloading Leedude Server Operation 2 9th May 2006 00:16
Procmail with ISP users and system users MvincM Installation/Configuration 8 19th April 2006 22:48
Another Problem: Virtual Users And Domains With Postfix, Courier And MySQL (+ SMTP bluegrass Installation/Configuration 24 8th March 2006 01:41
write access to wwwrun/www-data in users DocumentRoot st2xo Installation/Configuration 21 11th February 2006 13:35
Ability to add components for users webstergd Feature Requests 1 20th December 2005 10:25


All times are GMT +2. The time now is 22:51.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.