To all,
Thanks for the replies but unfortunately they are all client side
based. I need one that is server side. My program is only allowed to
run on the server. It would be nice if OD or password server would
send out an event or notification. I have looked through the docs and
have not found this. Does anybody know if this is even possible?
Thanks,
Chris
On Nov 29, 2007, at 7:07 PM, David Garrett wrote:
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.