windows-eventlog-20051219

More messages for the event log
This commit is contained in:
Jeffrey Altman 2006-01-15 08:01:49 +00:00
parent ad207ee113
commit 0a7b86c2bf
3 changed files with 31 additions and 0 deletions

View File

@ -314,4 +314,22 @@ Language=English
OpenAFS Stopping due to error (%1:%2): %3. OpenAFS Stopping due to error (%1:%2): %3.
. .
MessageId=
Severity=Informational
Facility=System
SymbolicName=MSG_CRYPT_OFF
Language=English
Security Level is Clear.
.
MessageId=
Severity=Informational
Facility=System
SymbolicName=MSG_CRYPT_ON
Language=English
Security Level is Crypt.
.
;#endif /* __AFSD_EVENTMESSAGES_H_ 1 */ ;#endif /* __AFSD_EVENTMESSAGES_H_ 1 */

View File

@ -891,6 +891,11 @@ int afsd_InitCM(char **reasonP)
afsi_log("Default SecurityLevel is clear"); afsi_log("Default SecurityLevel is clear");
} }
if (cryptall)
LogEvent(EVENTLOG_INFORMATION_TYPE, MSG_CRYPT_ON);
else
LogEvent(EVENTLOG_INFORMATION_TYPE, MSG_CRYPT_OFF);
#ifdef AFS_AFSDB_ENV #ifdef AFS_AFSDB_ENV
dummyLen = sizeof(cm_dnsEnabled); dummyLen = sizeof(cm_dnsEnabled);
code = RegQueryValueEx(parmKey, "UseDNS", NULL, NULL, code = RegQueryValueEx(parmKey, "UseDNS", NULL, NULL,

View File

@ -2452,10 +2452,18 @@ long cm_IoctlGetRxkcrypt(smb_ioctl_t *ioctlp, cm_user_t *userp)
long cm_IoctlSetRxkcrypt(smb_ioctl_t *ioctlp, cm_user_t *userp) long cm_IoctlSetRxkcrypt(smb_ioctl_t *ioctlp, cm_user_t *userp)
{ {
afs_int32 c = cryptall;
cm_SkipIoctlPath(ioctlp); cm_SkipIoctlPath(ioctlp);
memcpy(&cryptall, ioctlp->inDatap, sizeof(cryptall)); memcpy(&cryptall, ioctlp->inDatap, sizeof(cryptall));
if (c != cryptall) {
if (cryptall)
LogEvent(EVENTLOG_INFORMATION_TYPE, MSG_CRYPT_ON);
else
LogEvent(EVENTLOG_INFORMATION_TYPE, MSG_CRYPT_OFF);
}
return 0; return 0;
} }