Directory Programming .NET

Active Directory and ADAM programming support for .NET developers
Welcome to Directory Programming .NET Sign in | Join | Help

System.DirectoryServices.LdapSessionOptions.Signing throws an exception

  •  01-13-2010, 4:39 AM

    System.DirectoryServices.LdapSessionOptions.Signing throws an exception

    Hello,

    Setting System.DirectoryServices.LdapSessionOptions.Signing to an incorrect value in the context throws a System.DirectoryServices.Protocols.DirectoryOperationException.

    Internally, there is a call to ldap_set_option and a check on the returned value. I may be wrong but it seems that this exception only maps the result from this call to an error message. I think that a call to ldap_get_option with LDAP_OPT_SERVER_ERROR whould have been useful, especially if the result code is the infamous UNWILLING_TO_PERFORM...

    I'm I wrong ? If not, is there a way to acces the internal ldap handle from the ldap connection to explicitely make that call ?

    TIA.

    Olivier.

     

View Complete Thread