LDAP plugin development

  • Hi!


    I've really wanted to get LDAP working in OMV for some time. While the old, deprecated plugin no longer works, I took it upon myself to try to get it working again. I have created a Github repo with what I have managed so far -- I can see the "Directory Services" menu and it visually works as expected, but the plugin is not yet adapted to modern times.

    The old plugin relied on mkconf, but plugins for OMV 5.x is supposed to use salt in some way which I have never used before. And this is where I am lost, as I don't know how to port the plugin to Salt. There might be other issues as well, but this is where I am today.


    Any thoughts on how to proceed? If no direct input on the contents of the repo, any guides for how to port plugins to OMV 5.x and salt?


    You'll find the openmediavault-ldap plugin here: https://github.com/yarcod/openmediavault-ldap


    Thanks in advance!

  • KM0201

    Approved the thread.
  • Any thoughts on how to proceed? If no direct input on the contents of the repo, any guides for how to port plugins to OMV 5.x and salt?

    There aren't any OMV-specific salt guides that I know of. If you go through some general salt and jinja2 tutorials then look at existing code, you might be able to see how to move bash code writing config files to salt writing config files.


    Here are some good locations to look at OMV salt code that would be similar to what you need:

    https://github.com/openmediava…vault/srv/salt/omv/deploy

    https://github.com/OpenMediaVa…/salt/omv/deploy/minidlna

    omv 5.6.13 usul | 64 bit | 5.11 proxmox kernel | omvextrasorg 5.6.2 | kvm plugin 5.1.6
    omv-extras.org plugins source code and issue tracker - github


    Please read this before posting a question.
    Please don't PM for support... Too many PMs!

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!