LDAP does not work, help

Oleg's Avatar


28 Oct, 2015 10:38 AM

I'm trying to setup LDAP Catalog to work with my Active Directory.
I made all settings but authentication trough Active Directory does not work.

Please help to solve this problem

  1. 1 Posted by Oleg on 28 Oct, 2015 10:44 AM

    Oleg's Avatar

    How to add users ang groups from Active Directory?

  2. 2 Posted by pdavidson on 05 Nov, 2015 01:13 AM

    pdavidson's Avatar

    We're having the same issue.
    Entered our AD settings but not clear how to proceed from there.
    Should our AD Groups show up in Groups ?

    Documentation says:
    Remember that according to the Security Model, a User must be granted a "Collaboration" System-level permission. This means that initially none of your LDAP users will be able to sign in to HgLab. To grant them access, go to Groups and assign the "Collaboration" permission to the LDAP Groups you want to give access to HgLab.

    This implies that our AD groups should have shown up in Groups and we activate them by allowing Collaboration? But we're seeing no AD groups in HgLab Groups

  3. 3 Posted by pdavidson on 05 Nov, 2015 02:32 AM

    pdavidson's Avatar

    Got this working by finding this code sample in here and then modifying settings until the code ran correctly. Port 636 has been suggested to work better:

    using System;
    // Requires a reference to System.DirectoryServices.AccountManagement
    using System.DirectoryServices.AccountManagement;

    namespace LdapTroubleshooter
        class Program
            static void Main(string[] args)
                var serverAddress = "yourldapserver.domain.com";
                var serverPort = "636";
                var baseContainer = "OU=Listname,dc=example,dc=com";
                var bindLogin = "BindableLogin";
                var bindPassword = "binderpassword";

                var serverQualifiedAddress = serverAddress;
                if (!string.IsNullOrWhiteSpace(serverPort))
                    serverQualifiedAddress = serverQualifiedAddress + ":" + serverPort;

                using (var domainContext = new PrincipalContext(ContextType.Domain, serverQualifiedAddress, baseContainer, ContextOptions.Negotiate, bindLogin, bindPassword))
                    var principal = UserPrincipal.FindByIdentity(domainContext, "yourLoginname");
                } // using

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Already uploaded files

  • Capture.JPG 60.8 KB

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

12 Jan, 2023 12:25 PM
10 Jan, 2023 04:49 PM
03 Aug, 2022 01:49 PM
05 Jul, 2022 07:01 PM
28 Mar, 2022 04:42 PM


21 Jan, 2022 10:43 AM
20 Jan, 2022 10:45 AM
18 Jan, 2022 10:15 AM
19 Mar, 2021 06:13 PM
01 Mar, 2021 02:51 PM
01 Jan, 2021 02:19 AM