Giter VIP home page Giter VIP logo

tiny-mfa-plugin's People

Contributors

ghmer avatar mario-ragucci-sp avatar

Stargazers

 avatar  avatar

Watchers

 avatar

tiny-mfa-plugin's Issues

Query issues with Microsoft SQL Server 2017 (MFA_VALIDATION_ATTEMPTS -> SUCCEEDED type mismatch )

Hello Mario - this IIQ MFA plugin is fantastic! Excellent work!

I did discover an issue in testing that I wanted to pass along. This may be specific to Microsoft SQL Server. The validation of MFA attempts fails consistently and prevents testing and activation of any MFA tokens (see below).

token-validation-activation-failed

In catalina.out, the following is logged:

2020-09-11T10:42:18,752 ERROR ajp-nio-8009-exec-2 whisperedshouts.identityiq.rest.TinyMfaService:173 - com.microsoft.sqlserver.jdbc.SQLServerException: Invalid column name 'false'.
2020-09-11T10:42:18,752  WARN ajp-nio-8009-exec-2 whisperedshouts.identityiq.rest.TinyMfaService:194 - number attempts (16) exceeded limit 15 for identity username

In a SQL Server trace, a query like the following is being executed:

SELECT COUNT(*) FROM MFA_VALIDATION_ATTEMPTS WHERE CTS = @P0 and ACCOUNT_NAME = @P1 and SUCCEEDED = false,N'@P0 nvarchar(4000),@P1 bigint',N'username',1599825031

I believe the issue relates to "false" being a reserved word in SQL Server (SUCCEEDED = false); I believe TinyMfa would need to send this boolean value in the query as an integer (0 or 1) instead of true or false (i.e. SUCCEEDED = 0). It may also work if 'true' or 'false' are single-quoted but I suspect converting to 0/1 is the shorter path to resolution.

Environment details:
IIQ: 8.0p2
Java: openjdk-1.8.0.262
Database: Microsoft SQL Server 2017

Let me know if this all makes sense and if there is anything I can do to assist with remediation. Disclaimer: I am not very familiar with Java.

Thank you in advance and keep up the great work!
-N

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.