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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T00:34:02+00:00 2026-06-07T00:34:02+00:00

I am using the System.DirectoryServices.Protocols functions to query an openldap directory. The openldap directory

  • 0

I am using the System.DirectoryServices.Protocols functions to query an openldap directory.

The openldap directory is using the password policy overlay.

If I bind to the directory, the server may return controls that may contain password expiration warnings.

How can I get the bind response in c#?
System.DirectoryServices.Protocols.Bind returns void.

Querying the users pwdChangedTime, retrieving policy indicated in pwdPolicySubentry do the math to warn the user about password expiry doesn’t seem like a good way of doing it.

Any help is much appreciated,

  • 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-07T00:34:04+00:00Added an answer on June 7, 2026 at 12:34 am

    Unfortunately you can’t do it with a bind operation. S.DS.P is a thin layer on top of Winldap32 and it does not recognize any controls sent back on a bind operation. I went down several paths on this last year got down to using reflection to manipulate S.DS.P internal classes and pinvoking into Winldap32 myself and ultimately came up short due to limitations in Winldap32. There is an ldap library that was written by Novell that is its own pure CLR implementation. I’m not sure its well maintained these days. Your only other option would be to write your own .net library on top of the openldap client libs.

    One other aside. Using TLS with S.DS.P in a server side app will cause S.DS.P to go into an infinite loop while processing the TLS response under certain conditions. The work around is to use straight SSL on port 636.

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

Sidebar

Related Questions

I'm using the System.DirectoryServices library to query against a LDAP directory. I'm seeing all
Using the System.DirectoryServices.Protocols namespace to add/modify attributes on an Active Directory group. Code: public
I'm using System.DirectoryServices to query active directory to authenticate/fetch users' info in a winforms
We are experiencing a performance problem when communicating with the active directory using System.DirectoryServices.
We've implemented a Membership Provider that authenticates to Active Directory and it's using System.DirectoryServices.
I'm creating and updating Groups in Active Directory using the GroupPrincipal class in System.DirectoryServices.AccountManagement
I'm using System.DirectoryServices to list the status of websites running on a server. Currently
Beyond the simple code samples for doing basic AD functions using System.DirectoryServices.AccountManagement, are there
I know how to get the machines on a server using the System.DirectoryServices network.
I'm using the System.DirectoryServices.AccountManagement namespace classes to manage the membership of several groups. These

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.