Code Monkey home page Code Monkey logo

ldaporganizationmappingext's Introduction

ldapAdapterEXT

This extends the liferay class PortalLDAPImporterImpl by the ability of syncing the department in LDAP to organization in liferay.

In the corresponding LDAP configuration for liferay one has to set the custom user mapping

organization=department

where department is the corresponding field in LDAP. This allows the code in CustomPortalLDAPImporterImpl to access the LDAP field department.

If that field is set, the application tries to find an organization with this name.

  • If such an organization exists, then will the user be added to this organization,
  • otherwise it will create that organization and add the corresponding user to the organization.

Compilation

One can create the war-files with the command mvn package.

Deployment

One should deploy this plugin before all other things. It is even recommended to start with a clean database.

If custom organization mappings are to be used, ldapimporter.properties should be configured beforehand. Copy ldapAdapterEXT-ext-impl/**/resources/ldapimporter.properties to /etc/ldap-importer and adjust the settings as described therein. Properties are loaded during server startup.

Steps to do after copying the two war files to the liferay deploy folder:

  1. ensure that liferay is running and that the auto-deploy-scanner has extracted and deployed the war files
  2. restart liferay, i.e. the corresponding server, two to three times and wait for liferay to finish deployment, i.e. wait for the marketplace-portlet to finish

The deployment was successful if the log contains the message "Instantiate CustomPortalLDAPImporterImpl from ldapAdapterEXT plugin" and one should restart once more, if the log states that further rebooting is needed for deployment completions of this plugin.

Problems

  • The user logging in via LDAP should not be owner of the on-demand created organization. A solution would be, to add an dummy user without privileges whose only purpose is to be owner of that organization.

  • This plugin needs a more descriptive name.

ldaporganizationmappingext's People

Contributors

alexbrdn avatar maxhbr avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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.