Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > Indigo

Vista - <serviceSecurityAudit> logs success but not failure

 
 
Old 06-12-2007   #1 (permalink)
dgilbert@cragmonttech.com


 
 

<serviceSecurityAudit> logs success but not failure

I have the following element setup in my web config file:

<serviceSecurityAudit suppressAuditFailure="false"
auditLogLocation="Default"
messageAuthenticationAuditLevel="SuccessOrFailure"
serviceAuthorizationAuditLevel="SuccessOrFailure" />

and I get log entries for successful authorizations in the application
event log, but nothing for failed attempts. Additionally, I do not
get any entries for the authentication process. Has anyone else had
problems with this? Is there something that needs to be done to
enable success logging and authentication logging specifically? Do I
need to handle failed attempts in a specific way (i.e. throw specific
exception)?

Here is the rest of my configuration for authentication and
authorization:

<services>
<service name="WCFTestService.service1"
behaviorConfiguration="service1Behavior">
<endpoint contract="WCFTestService.Iservice1"
binding="wsHttpBinding"/>
<endpoint contract="IMetadataExchange"
binding="mexHttpBinding" address="mex" />
</service>
</services>

<behaviors>
<serviceBehaviors>
<behavior name="service1Behavior" >
<serviceDebug includeExceptionDetailInFaults="true" />
<serviceMetadata httpGetEnabled="true" />
<serviceCredentials>
<userNameAuthentication
userNamePasswordValidationMode="Custom"
customUserNamePasswordValidatorType="IHS.Core.Security.WCF.CoreUserNamePasswordValidator,
IHS.Core.Security.WCF"/>
<serviceCertificate findValue="localhost"
storeLocation="LocalMachine" storeName="My"
x509FindType="FindBySubjectName"/>
</serviceCredentials>
<serviceSecurityAudit suppressAuditFailure="false"
auditLogLocation="Default"
messageAuthenticationAuditLevel="SuccessOrFailure"
serviceAuthorizationAuditLevel="SuccessOrFailure" />
<serviceAuthorization
impersonateCallerForAllOperations="false"
principalPermissionMode="Custom" roleProviderName=""
serviceAuthorizationManagerType="">
<authorizationPolicies>
<add
policyType="IHS.Core.Security.WCF.AccessControlAuthorizationPolicy,
IHS.Core.Security.WCF"/>
</authorizationPolicies>
</serviceAuthorization>
</behavior>
</serviceBehaviors>
</behaviors>


My System SpecsSystem Spec
 

Thread Tools


Similar Threads
Thread Forum
Logging Success or Failure of a script VB Script
Success Vista installation & setup
SUCCESS!!! Vista installation & setup
subject windows Vista Event Logs access through WMI ( Applications and Services Logs) Vista networking & sharing
windows Vista Event Logs access through WMI ( Applications and Services Logs) Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46