Dashboard authentification with LDAP(s)

Hello,

I Need an LDAP authentification for my Dashboard.
Is that possible?

I dont know Details About LDAP, but i know the url+port for our LDAP and i would like to use usergroups as filter for my dashboardgroups.

Thats my idea of it.

As i undertand i would like to have the following:
The user opens a dashboardgroup and in that Moment a function runs his credentials against LDAP and with an positive answer he could proceed.

So i need to read the credentials, the Connection to LDAP and a mustache Code that i send to the LDAP. Is that Right or do i not understand that?

I installed some LDAP nodes but i dont understand how to use them.

Greetings

Chorum

You will probably want the LDAP extension for Passport as I think that Node-RED authentication uses Passport and will support it? Not sure though as I've not done it.

However, if you don't know anything about LDAP you are not so likely to get it working. You will certainly need the login details for your LDAP server and permission from the server's owner to make use of the data in this way.

Alternatively, you could use Node-RED behind a reverse proxy and use the proxy (e.g. NGINX, Caddy, etc) with a suitable LDAP authentication extension.

I have all the needed Informations and Permissions to use the LDAP server.

atm i am playing around with ldap-login to get any reaction about the user.

I simple example flow would help. So i try my best and search for examples.

I hope that somebody did something like that and could explain me how to do that :slight_smile:

So atm i use that simple flow:
ldap1

[
    {
        "id": "9234afe9.d9cc5",
        "type": "find-user",
        "z": "9e82b6f8.933568",
        "name": "",
        "url": "myldap url",
        "baseDN": "",
        "filter": "",
        "attributes": "",
        "x": 2370,
        "y": 3450,
        "wires": [
            [
                "7c61f73e.9b3a08"
            ]
        ]
    },
    {
        "id": "7c61f73e.9b3a08",
        "type": "debug",
        "z": "9e82b6f8.933568",
        "name": "",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "true",
        "targetType": "full",
        "x": 2540,
        "y": 3450,
        "wires": []
    },
    {
        "id": "ec786b40.3d6838",
        "type": "inject",
        "z": "9e82b6f8.933568",
        "name": "",
        "topic": "",
        "payload": "",
        "payloadType": "date",
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "x": 2190,
        "y": 3450,
        "wires": [
            [
                "9234afe9.d9cc5"
            ]
        ]
    }
]

but i dont get any reaction from that node...