Re: Track Domain User Logons and Logoffs

From: Bruno Mendonça (anonymous_at_discussions.microsoft.com)
Date: 06/03/04


Date: Thu, 3 Jun 2004 11:57:20 -0700


>In Kerberos, computers are actually logging in and out,
as though they were
>users. That's what those "$" logins are. Kerberos
provides two-way
>authentication, where the server can be sure who the
client is, and the
>client can be sure who the server is.
>
>I believe the event log entry would more accurately
say "Principal name"
>instead of "user name", as there can be other types of
principal logging in.
>--
>John Saunders
>johnwsaundersiii at hotmail

This are the properties I can access to:

TargetInstance.Category
TargetInstance.EventCode
TargetInstance.EventIdentifier
TargetInstance.EventType
TargetInstance.RecordNumber
TargetInstance.CategoryString
TargetInstance.ComputerName
TargetInstance.Logfile
TargetInstance.Message
TargetInstance.SourceName
TargetInstance.Type
TargetInstance.TimeGenerated
TargetInstance.TimeWritten
TargetInstance.User

None of them has any additional information about the
user, except for the ones I'm already outputing (Message
and User)

There is also the chance of creating a Management Event on
the Server Explorer of vb.Net and have it listen to log
events. Once you create a NT Event Log Query and start it,
it automatically writes the events to the Output window
and it display additional information. So I created one
and started it. Very quickly I logged to Computer
Dosinsads3 under bruno_mendonca, logged of and stoped the
event query. Maybe 20 seconds went by and from the output
genetrated I retrieved the events refering to either
bruno_mendonca or Dosinsads3. There where 26! For a simple
logon and logoff. I can't tell which one refers to the
logon and which to the logoff...

Here are 3 examples:

1 -

Category = 9; CategoryString = "Account Logon\n";
        ComputerName = "SEDEDC02"; EventCode = 673;
InsertionStrings =
{"bruno_mendonca", "CMLOURES.PT", "DOSINSADS3$", "%{S-1-5-
21-195237392-612787311-312552118-
5296}", "0x40810010", "0x17", "10.11.1.36"};
Message = "Service Ticket Granted:\n\n\tUser
Name:\t\tbruno_mendonca\n\n\tUser
Domain:\t\tCMLOURES.PT\n\n\tService Name:\t\tDOSINSADS3
$\n\n\tService ID:\t\t%{S-1-5-21-195237392-612787311-
312552118-5296}\n\n\tTicket Options:\t\t0x40810010
\n\n\tTicket Encryption Type:\t0x17\n\n\tClient
Address:\t\t10.11.1.36\n\n";
TimeGenerated = "20040603191448.000000+060"; Type
= "audit success"; User = "NT
AUTHORITY\\SYSTEM"; }; };

2 -

Category = 2; CategoryString = "Logon/Logoff\n";
        ComputerName = "SEDEDC02"; EventCode = 540;
InsertionStrings =
{"bruno_mendonca", "CMLOURES", "(0x0,0xEEDE5F)", "3", "Kerb
eros", "Kerberos", ""};
Message = "Successful Network Logon:\n\n\tUser
Name:\tbruno_mendonca\n\n\tDomain:\t\tCMLOURES\n\n\tLogon
ID:\t\t(0x0,0xEEDE5F)\n\n\tLogon Type:\t3\n\n\tLogon
Process:\tKerberos\n\n\tAuthentication
Package:\tKerberos\n\n\tWorkstation Name:\t\n";
TimeGenerated = "20040603191448.000000+060"; Type
= "audit success"; User
= "CMLOURES\\bruno_mendonca"; }; };

3 -

Category = 2; CategoryString = "Logon/Logoff\n";
        ComputerName = "SEDEDC02"; EventCode = 540;
InsertionStrings =
{"bruno_mendonca", "CMLOURES", "(0x0,0xEEDE8F)", "3", "Kerb
eros", "Kerberos", ""};
Message = "Successful Network Logon:\n\n\tUser
Name:\tbruno_mendonca\n\n\tDomain:\t\tCMLOURES\n\n\tLogon
ID:\t\t(0x0,0xEEDE8F)\n\n\tLogon Type:\t3\n\n\tLogon
Process:\tKerberos\n\n\tAuthentication
Package:\tKerberos\n\n\tWorkstation Name:\t\n";
TimeGenerated = "20040603191448.000000+060"; Type
= "audit success"; User
= "CMLOURES\\bruno_mendonca"; }; };

The last 2 are identical!

If you wish to see them all look at this 14kb .txt file:
http://www.geocities.com/bmmpt/events.txt

Thanks for the given help though.

Bruno



Relevant Pages

  • Re: After a full day of computers...
    ... > computers in question run SuSE 9.1 Pro and nothing but. ... > through the CUPS server). ... You need to create a mountpoint on the client machine. ... Once the shares have been created, they need to be mapped onto the mount ...
    (alt.os.linux.suse)
  • Re: Users cant find SBS server- Help needed
    ... all appears to be working except that no computers show up ... under the domin name in windows network and the client computers don't see ... the server in their windows network. ... The server still does not show up in Network places nor does any other ...
    (microsoft.public.windows.server.sbs)
  • RE: Can not join new domain with same name as old
    ... This newsgroup only focuses on SBS technical issues. ... How did you reload your SBS server? ... Did you disjoin the client from the domain before reloading your server? ... Expand Doman.local, my business, Computers, SBSCopmuters. ...
    (microsoft.public.windows.server.sbs)
  • Re: Outlook 2003 hangs when creating new Exchange Account/Connecti
    ... from the client. ... when i set up the clients on 4 other computers. ... Then i put in my server name. ... Im beginning to think my problem is bigger then just outlook though. ...
    (microsoft.public.outlook)
  • RE: IPSEC question
    ... access SBS. ... Microsoft network client: Digitally sign communications (if server ... Windows Server 2003 Service Pack 1-based computers ...
    (microsoft.public.windows.server.sbs)

Loading