GithubHelp home page GithubHelp logo

Comments (3)

jpmens avatar jpmens commented on August 23, 2024

I'm assuming you're speaking AD language? In any case, please elaborate with examples so that I can understand what you're after...

from mosquitto-auth-plug.

carroarmato0 avatar carroarmato0 commented on August 23, 2024

Sorry, brainfart on my end. The reason why I posted this issue was to be able to pass multiple DN's in order to allow people from different domains to authenticate to ldap.

I kinda solved it for myself by trimming down the ldap_uri, but that means allowing all other domains which in certain situations is not really desirable.

What I was thinking about is something along the lines of:

auth_opt_backends ldap

auth_opt_binddn_0 uid=admin,ou=people,dc=zimbra,dc=mydomain,dc=com
auth_opt_ldap_uri_0 ldap://192.168.0.99:389/dc=mydomain,dc=com?uid?sub?(&(objectClass=ZimbraAccount)(uid=@))

auth_opt_binddn_1 uid=admin,ou=people,dc=zimbra,dc=mydomain,dc=com
auth_opt_ldap_uri_1 ldap://192.168.0.99:389/dc=profit,dc=com?uid?sub?(&(objectClass=ZimbraAccount)(uid=@))

So should Bob from profit.com try to authenticate, the authentication module would go through the different ldap entries until I matches. Or perhaps use the correct one based on domain name in the username section.

from mosquitto-auth-plug.

jpmens avatar jpmens commented on August 23, 2024

In short: #wontfix. Reason: this can easily be accomplished by adding, say, &(mqtt=yes) to the configured URI to find only those LDAP objects with the specified attribute type.

from mosquitto-auth-plug.

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.