# of users logged in

lesmak

Verified User
Joined
May 1, 2004
Messages
28
Hello,

Would it be possible, or maybe it is already possible to see number of users currently logged in to DA?
Also, if user is logged in - to see on what page he/she is on exactly?

Thx
 
The easiest would be to check the /home/tmp/da_sess* files to see who's logged in. If you wrote a plugin, you'd need to set the script to be owned by "diradmin" and "chmod +s" so it can read the files. Make sure it's *very* secure if you do that :) Add checks to see who's running it and even chmod 770 (+s) with the group set as the admin name who will run it, so you don't get anyone running it who shouldn't be....

John
 
Hello,

We'll you could probably do it a few ways, direct UID checking might work, but I was thinking

chmod 1770 script.pl
chown diradmin:admin_name script.pl

That allows
1) admin_name to run it through DA
2) to escalate the script privilges to "diradmin" so that /home/tmp/da_sess* can be read.

I don't think we'll be implementing that anytime soon, so you can really do it however you can figure out :) Using the API could work too if you grabbed the session ID's from the directory.

Up to you :)

John
 
Thanks John. I'm going to be working on a lot of plugin stuff very soon so I need this kind of advice to make sure the plugins are secure.

I'll be emailing you and my server admin company quite a lot I think :D

Matt
 
Back
Top