question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

LDAP Integration Problems

See original GitHub issue

Are there any good tutorials for LDAP integration?

I’ve been following this but haven’t been successful.

http://booting-rpi.blogspot.com/2015/09/using-ldap-authentication-with-jitsi.html

This is my /etc/prosody/conf.d/ldap.cfg.lua configuration:

authentication = 'ldap2' 
ldap = {
    hostname      = 'ip:389', 
    bind_dn       = 'test@alpha.bravo',
    bind_password = 'password',
    user = {
      basedn        = 'dc=alpha,dc=bravo',
      filter        = '*',
      usernamefield = 'sAMAccountName',
      namefield     = 'cn',
    },
}

This is my configuration in /etc/prosody/conf.d/sample.com.cfg.lua

-- Plugins path gets uncommented during jitsi-meet-tokens package install - that's where token plugin is located
--plugin_paths = { "/usr/share/jitsi-meet/prosody-plugins/" }

VirtualHost "sample.com"
        -- enabled = false -- Remove this line to enable this host
        --authentication = "anonymous"
        authentication = "ldap2"
        -- Properties below are modified by jitsi-meet-tokens package config
        -- and authentication above is switched to "token"
        --app_id="example_app_id"
        --app_secret="example_app_secret"
        -- Assign this host a certificate for TLS, otherwise it would use the one
        -- set in the global section (if any).
        -- Note that old-style SSL on port 5223 only supports one certificate, and will always
        -- use the global one.
        ssl = {
                key = "/etc/prosody/certs/sample.com.key";
                certificate = "/etc/prosody/certs/sample.com.crt";
        }
        -- we need bosh
        modules_enabled = {
            "bosh";
            "pubsub";
            "ping"; -- Enable mod_ping
        }

        c2s_require_encryption = false

Component "conference.sample.com" "muc"
    storage = "null"
    --modules_enabled = { "token_verification" }
admins = { "focus@auth.sample.com" }

Component "jitsi-videobridge.sample.com"
    component_secret = "uIeysbRx"

VirtualHost "auth.sample.com"
    ssl = {
        key = "/etc/prosody/certs/auth.sample.com.key";
        certificate = "/etc/prosody/certs/auth.sample.com.crt";
    }
    authentication = "internal_plain"

Component "focus.sample.com"
    component_secret = "LS6K@u1q"

And here’s my /etc/jitsi/meet/sample.com-config.js


/* eslint-disable no-unused-vars, no-var */

var config = {
    // Configuration
    //

    // Alternative location for the configuration.
    // configLocation: './config.json',

    // Custom function which given the URL path should return a room name.
    // getroomnode: function (path) { return 'someprefixpossiblybasedonpath'; },


    // Connection
    //

    hosts: {
        // XMPP domain.
        domain: 'sample.com',

        // XMPP MUC domain. FIXME: use XEP-0030 to discover it.
        muc: 'conference.sample.com',

        // When using authentication, domain for guest users.
        anonymousdomain: 'guest.sample.com'

        // Domain for authenticated users. Defaults to <domain>.
        // authdomain: 'sample.com',

        // Jirecon recording component domain.
        // jirecon: 'jirecon.sample.com',

        // Call control component (Jigasi).
        // call_control: 'callcontrol.sample.com',

        // Focus component domain. Defaults to focus.<domain>.
        // focus: 'focus.sample.com',
    },

With all this in place, I don’t get any log errors however once you try to create a room past the start point, you run into this error and nothing works. [JitsiMeetJS.js] <Object.getGlobalOnErrorHandler>: UnhandledError: null Script: null Line: null Column: null StackTrace: Error: Strophe: BOSH-Connection failed: host-unknown

A few questions:

Is this the proper way for LDAP integration? Are there any tutorials for LDAP integration?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
damenchocommented, Apr 6, 2018

You just need to add a virtual host to prosody and restart prosody like:

VirtualHost "guest.sample.com"
	authentication = "anonymous"

0reactions
Annihil8tedcommented, Apr 9, 2018

Yes and okay, I just wanted to check current status on the “feature”. If I have the time, I’ll be glad to see if I can contribute. Thanks for the help!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting LDAP integration - IBM
Problems with LDAP integration can include problems with the import scheduler and with user authentication.
Read more >
LDAP integration known issues - Okta Documentation
LDAP proxy server: When a LDAP proxy server with its own schema is used to connect the Okta LDAP Agent to a LDAP...
Read more >
LDAP integration troubleshooting
LDAP integration troubleshooting · Preliminary checks · Error codes · Multiple domain integration · Incoming records · Common authentication errors.
Read more >
LDAP-Integration issues. - CyberArk Community
I used the ldp tool to verify that the user credentials are working, the connection is not using ssl and the ldap server...
Read more >
Troubleshoot LDAP over SSL connection problems
Step 1: Verify the Server Authentication certificate · Step 2: Verify the Client Authentication certificate · Step 3: Check for multiple SSL ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found