mirror of
https://git.openafs.org/openafs.git
synced 2025-01-18 23:10:58 +00:00
windows-eventlog-20051219
More messages for the event log
This commit is contained in:
parent
ad207ee113
commit
0a7b86c2bf
@ -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 */
|
||||||
|
@ -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,
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user