Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7952403
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T02:51:06+00:00 2026-06-04T02:51:06+00:00

I am trying to connect to a Domino server to get all users information

  • 0

I am trying to connect to a Domino server to get all users information (name, email, etc). When I try to run the below code I get the following error: {“A protocol error occurred.\r\n”}

I have looked around and tried this same query in a ldap browser and all worked fine. Any advice is appreciated.

DirectorySearcher search = new DirectorySearcher(new DirectoryEntry("LDAP://server:port"));

        try
        {

            search.Filter = "(objectClass=dominoPerson)";
            search.PropertiesToLoad.Add("cn");
            SearchResultCollection results = search.FindAll();

            foreach (SearchResult r in results)
            {
                DirectoryEntry de = r.GetDirectoryEntry();

                foreach (DirectoryEntry child in de.Children)
                {
                    Console.WriteLine(child.Name);
                }
            }

            search.Dispose();

        }
        catch (Exception msg)
        {
            Console.WriteLine(msg.ToString());
        }v
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T02:51:08+00:00Added an answer on June 4, 2026 at 2:51 am

    Are you authenticating with the ldap browser but doing an unauthenticated query from your code? Depending on configuration settings, Domino may reject unauthenticated queries altogether, or limit the attributes that it will return. Also, are you specifying a BaseDN in your ldap browser connection but not in your code?

    Rather than just guessing, though, I’d suggest collecting as much information as possible on the server side. I.e., set up debug logging on the Domino server to capture information about your LDAP connection and request. Use the server command set config LDAPDEBUG=7, and then restart the ldap task. (You can set it to 3 to start with, for less verbose output, but IMHO you probably might as well go right to the maximum level of info.)

    Once you have that set up, do the query with the ldap browser and watch the Domino server’s console. (If it scrolls out of the visible window, you should be able to find the log info in the IBM Technical Support folder on the server.) Next, enter a server command (e.g. “show server”) just to serve as an easily visible separator, and then run your code and watch the console log.

    At this point you should be able to compare the console log entries from the ldap browser connection and query against the entries from your code’s connection and query. The differences should lead you toward a solution.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Im trying to connect a Information object to many Customers (see code below) When
im trying to connect mysql in android app. Below is my code. Once i
Im trying to connect my project via sFTP. and everytime I run the project
When I am trying to connect to my SVN repository on some remote server
I am trying to connect to a MySQL Server using JDBC tool in java
Trying to connect to sql server 2005 with delphi 2010 gives me the following
When trying to connect to my database server, i encounter the problem of unknown
Trying to connect to a SQL Server 2005 instance remotely but getting the following
When trying to connect to a server, my app does not have a very
I am trying to connect to a remote SQL server. I would like to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.