Code Monkey home page Code Monkey logo

jaasbonitalogin's Introduction

JaasBonitaLogin

Jaas module to query the Bonita User Database, and return true if the login / password exist. This JAAS module is perfect if you want to use multiple JAAS module, and say "in Bonita OR in my LDAP"

installation

Copy the jar file in /webapps/bonita/WEB_INF/lib (or for another web server, where the bonita jar file are)

JAAS file

Add this module in the JAAS.cfg file:

BonitaAuthentication-1 { com.bonitasoft.jaaslogin.JaasBonitaLogin SUFFICIENT tenantid="" [debug=true|false] [customuserattribut=":"; ; };

Example:

BonitaAuthentication-1 {

com.sun.security.auth.module.LdapLoginModule sufficient userProvider="ldap://ldap.forumsys.com:389/cn=read-only-admin,dc=example,dc=com" authIdentity="cn=read-only-admin,dc=example,dc=com" debug=true useSSL=false;

// if the user does not exist in the LDAP, use the BonitaJaas
com.bonitasoft.jaaslogin.JaasBonitaLogin sufficient
	tenantid="1"
	debug=false
	customuserattribut="jaasbonitalogin:accepted";

};

Security and Custom Attribute Verification

ATTENTION:

The LDAP-Synchronizer tool creates users in Bonita when it detect a user exist in the LDAP, and not in Bonita. Doing that, it creates a very easy password. So, using this Authentication implie that you change this password in the Bonita Database, else, if the password failed in the LDAP, this JAAS source will check the user with this easy-password. To Use the Java API to check if the user/password exists and is correct. Stable across different Bonita version

custom attribute

Add a "customuserattribut" option. If set, then the verification control that this custom attribute exist for the user, with the expected value. So, let's imagine you create a custom attribute "jaasbonitalogin". When the user is created from LDAP, the value of the attribute is null. THe BonitaJaasLogin wioll reject this login everytime. When you add manually a user, set the custom attribute to "accepted".

com.bonitasoft.jaaslogin.JaasBonitaLogin sufficient tenantid="1" debug=true customuserattribut="jaasbonitalogin:accepted";

jaasbonitalogin's People

Contributors

pierre-yves-monnet avatar

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.