RE: Please Help
- From: lforbes <lforbes@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 18 Mar 2008 00:08:01 -0700
Hi,
We use MySql (free database software) to log users logons and logoffs that
is pulled from a kixscript set as a logon and logoff script.
It is a pretty amazing piece of free software. You can download from their
website as well as downloading kixscript from www.kixtart.org . You need to
create a database with the fields that match up with the script. I have
posted my kix script. You need the kix.exe and the mysql.exe in the Netlogon
share as well as having the mysql installed on a server and running.
$RAM = MemorySize(0)
$SqlString = "mysql.exe -h server -u mysqlusername -e " + chr(13) + chr(10)
$sqlString = $SqlString + chr(34) + "insert into log.log set " + chr(13) +
chr(10)
$sqlString = $SqlString + "Type='logoff'," + chr(13) + chr(10)
$sqlString = $SqlString + "Username='" + @userid + "'," + chr(13) + chr(10)
$sqlString = $SqlString + "Workstation='" + @wksta + "'," + chr(13) + chr(10)
$sqlString = $SqlString + "Date= now()," + chr(13) + chr(10)
$sqlString = $SqlString + "Time= now()," + chr(13) + chr(10)
$sqlString = $SqlString + "IP='" + @ipaddress0 + "'," + chr(13) + chr(10)
$sqlString = $SqlString + "Mac='" + @address + "'," + chr(13) + chr(10)
$sqlString = $SqlString + "Domain='" + @lserver + "'," + chr(13) + chr(10)
$sqlString = $SqlString + "os='" + @ProductType + "'," + chr(13) + chr(10)
$sqlString = $SqlString + "cpu=ltrim('" + @cpu + "')," + chr(13) +
chr(10)
$sqlstring = $sqlstring + "FullName='" + @FullName + "'," + chr(13) + chr(10)
$sqlstring = $sqlstring + "ram='" + $ram + "'," + chr(13) + chr(10)
$sqlString = $SqlString + "speed='" + @mhz + "';" + chr(34) + chr(13) +
chr(10)
shell $sqlstring
Cheers,
Lara
"ankit ." wrote:
I am a student of engineering college in India. In our computer lab,.
our professor wants to save a log of each and every student(i.e their
logon time, logoff time, their roll no.).
For this we proposed a solution that the authentication of the user
should be done at remote computer for logging into local computer i.e.
we want a server that will authenticate a user for logging into local
computer.
Can anyone help us, what to do and how?
Is active directory useful in this case.
Ankit
- References:
- Please Help
- From: ankit .
- Please Help
- Prev by Date: Re: SEEMS LIKE SPAM!!!!!!
- Next by Date: Re: SEEMS LIKE SPAM!!!!!!
- Previous by thread: Re: Please Help
- Next by thread: Active Directory Delegation of Administration Problems
- Index(es):
Relevant Pages
|