Code Monkey home page Code Monkey logo

Comments (3)

oxc avatar oxc commented on August 10, 2024 1

Great! Glad to help :)

Since supporting this in the module would require incompatible changes, I will close this one until someone finds a use-case that cannot be easily worked around.

from puppet-dovecot.

oxc avatar oxc commented on August 10, 2024

You're right, this seems not to be supported by the module. You could try putting the passdb entries into consecutive config files (e.g. 10-auth-passdb01, 10-auth-passdb02), though I'm not a 100% sure if dovecot supports that.

from puppet-dovecot.

shneeba avatar shneeba commented on August 10, 2024

Arghh why didn't I think of that!!

Yes that works, dovecot is showing me the correct config with dovecot -n after doing a puppet run.

Such a simple workaround, thanks for the nudge in the right direction. For anyone else that wants to do this, I've configured it like so:

      '10-auth'    => {
        disable_plaintext_auth => 'yes',
        auth_default_realm     => 'domain.co.uk',
        auth_username_chars    => 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890.-_@\'',
        auth_mechanisms        => 'plain login',
        passdb                 => {
          driver => 'ldap',
          args   => '/etc/dovecot/dovecot-pass-method1-ldap.conf.ext',
        },
        userdb                 => {
          driver => 'ldap',
          args   => '/etc/dovecot/dovecot-user-method1-ldap.conf.ext',
        },
      },
      '10-auth02'  => {
        passdb => {
          driver => 'ldap',
          args   => '/etc/dovecot/dovecot-pass-method2-ldap.conf.ext',
        },
        userdb => {
          driver => 'ldap',
          args   => '/etc/dovecot/dovecot-user-method2-ldap.conf.ext',
        },
      },

Thanks again for such a quick response and handy module.

from puppet-dovecot.

Related Issues (14)

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.