Git Product home page Git Product logo

Comments (6)

bersace avatar bersace commented on September 3, 2024 1

@zurikus

How could be multiple filters applied at once?

Filters are chainable: {cn.filter0().filter1()}. I could even manage to not require () with a bit of magic.

Let's wait for some more feedback on this. Maybe a cookbook section on this subject would help.

from ldap2pg.

zurikus avatar zurikus commented on September 3, 2024

I think that this feature will spread ldap2pg package usability.
Plus for all this filters from me:

a) upper, lower
b) slugify('some string') // some-string
c) // if you prefer something other than '-' as separator
slugify('some string', '_') // some_string

How could be multiple filters applied at once?
d) lower(slugify('Some String', '_')) // some_string

from ldap2pg.

zurikus avatar zurikus commented on September 3, 2024

At this moment I don't think, that LDAP values filtering will be usable, as we need to authenticate user later and apply a reverse filter on applied previously, but it is error-prone.
It is better to rely on LDAP completely.

from ldap2pg.

bersace avatar bersace commented on September 3, 2024

For now, there is a bug. ldap2pg doesn't properly infer LDAP attributes from {cn.lower()}

from ldap2pg.

bersace avatar bersace commented on September 3, 2024

For the record, this require Postgres to be able to find back the right value to query LDAP directory for password. This is not likely to be easy. So, the better is not to modify LDAP values in ldap2pg, but rather have a preprocessed attribute directly in LDAP directory.

Let's keep this open for a few weeks before closing it.

from ldap2pg.

bersace avatar bersace commented on September 3, 2024

I'm closing, post processing in ldap2pg what can't be done in pg_hba is useless. Thanks for the issue.

from ldap2pg.

Related Issues (20)

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.