On Nov 29, 2007, at 2:54 PM, Chris Driggett wrote:
All,
I need to run a script on the server when a user authenticates
or logs in to a computer and that user's info is taken off of the
Open Directory server. I have tried parsing the log files but they
do not seem reliable.
I need to get both the user name and the ip address of the
machine where the user is authenticating from. I've checked the
Password Server logs and the Open Directory logs, but those don't
seem to give me the ip address of the user.
Thanks,
Chris
Hi Chris
I'd do this by using a log in and log out script. You could have such
scripts record data locally (actually it is anyway using the last
command in Terminal) or have the script send the data to a central
location (say a web server, which saves the data into a MySQL
database) using curl or some other approach.
Hope this helps
Dave
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macos-x-server mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/macos-x-server/email@hidden