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 8698439
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T01:44:01+00:00 2026-06-13T01:44:01+00:00

In C# I am binding to a secure LDAP site with the following code

  • 0

In C# I am binding to a secure LDAP site with the following code

authServer =
    new DirectoryEntry("LDAP://whatever.com:636",
          authServerUsernameFromConfig,
          authServerPasswordFromConfig,
          AuthenticationTypes.Anonymous );

then searching for a user which is found OK.

then the following collection is examined looking for property name of “groupMembership”

DirectorySearcher directorySearch = new DirectorySearcher(authServer, filterKey);
...
SearchResult result = directorySearch.FindOne();
...
authUser = new DirectoryEntry(result.Path, userDN, password, AuthenticationTypes.None);
...
(read) authUser.Properties.PropertyNames

However none are found when using 636 secure port. Other properties are found. When binding to non secure PORT all properties are found both those with 636 bind and also those named groupMembership.

Can anyone explain why this might be or how to retrieve them.

In seems that with the LDP.exe utility can see these groupMembership properties with a secure port 636 bind.

  • 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-13T01:44:02+00:00Added an answer on June 13, 2026 at 1:44 am
    • The directory information tree does not have properties. The directory information base has attributes grouped into entries. Attributes might be multi-valued, properties are always single-valued.
    • LDAP clients do not “bind” to a connection. LDAP clients establish a connection to a secure port (using SSL) or to a non-secure port (which can then be “promoted” to a secure connection if desired by the client and permitted by the server). Once a connection has been established, that connection has no authorization state. The LDAP client may then use the BIND operation to request that the server verify credentials and change the authorization state of the connection. The authorization state of the connection is used by the server to determine whether the client using that connection has access rights to entries and attributes comprising those entries.
    • Modern, professional-quality LDAP servers have the capability of denying access to certain sensitive attributes if the connection is not a secure connection. If the server the LDAP client is accessing does not have this capability, then there is no difference in accessing data over a secure vs. a non-secure connection. These legacy servers do not distinguish between secure and non-secure connection for determination of access rights and privileges – the authorization state of the connection is used to determine access rights)

    Use a known good tool like ldapsearch to verify that an LDAP client can access data as required. If the known good LDAP client can access the data and a hand-coded LDAP client cannot, then check the following parameters of the search request:

    • The base object, or base DN. This is the place at which the search begins. No entries superior to the base object are returned
    • The scope of the search. BASE only returns the entry and request attributes, ONE returns the entries immediately subordinate to the base object, SUB returns the base object and all entries sub-ordinate to the base object, on any level.
    • The filter. The filter is used to narrow the search and is composed of attributeType-attributeValue assertions and can be of a number of different forms
    • The requested attributes the server is to return from the entries that match the other search parameters. Some APIs, not all, return all user attributes if none are requested.

    see also

    • LDAP: Programming Practices
    • LDAP: Using ldapsearch
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following code var factory = new ChannelFactory<INewsClient>(); factory.Credentials.ClientCertificate.Certificate = GetCertificate(); factory.Endpoint.Address
1) Binding to The following populates a READ ONLY WinFrms grid: Dim query =
When binding code to the execution of an event using mxml, by assigning the
I want to secure my assembly (dll) by binding it to a specific environment.
I'm new at using WCF with secure services. I'm trying to connect to a
I'm having hard time consuming a secure WCF Web Service from a PHP site.
Data binding is all about declarative code, right? So I specify what I want
I have two versions of the same proof-of-concept site: The unsecure version: http://www.tlsadmin.com/tlsadmin/PortalHome.aspx and
When binding values to controls I have plenty of this: Text='<%# Bind(StartDate, {0:dd.MM.yyyy}) %>'
After binding the scroll event to an object, how can I get the amount

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.