FileAuditLoginModule not working as expected
Issue
- JAAS configuration for audit-login logs, is as captured below:
enabled=true
file=/tmp/audit.log
enabled=true
topic=org/apache/karaf/login
- The audit login logs
$ tail -f /tmp/audit.log
05/31/2017 10:15:28 - Authentication attempt - admin
05/31/2017 10:15:28 - Authentication failed - admin
05/31/2017 10:20:18 - Authentication attempt - admin
05/31/2017 10:20:18 - Authentication failed - admin
- The problem
-
Hot deploying on karaf, the *modules.xml with the above mentioned configuration (i.e. - deploy/example-module.xml), does not show successful login attemps. The audit logs generated only shows the failed attempts only.
-
If the above configuration is deployed as a bundle (deployed on karaf using osgi:install), the audit logs are not even getting generated i.e.- none, neither for successful nor for failed attempts. Although fuse logs shows the failed attempts.
Environment
- Red Hat JBoss Fuse
- 6.2.1
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.