+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Simple LDAP Binding

Simple LDAP Binding

3 posts, 0 answered
  1. Clarence
    Clarence avatar
    7 posts
    Registered:
    03 Jun 2015
    03 Jun 2015
    Link to this post

    I have a need to connect to an LDAP server with "simple" binding.

    It seems that Sitefinity uses the standard binding mechanism with no way to revert to simple binding.

    When using ldp.exe to verify connection this is the call I need to mimic:

    ldap_simple_bind_s(ld, ​"user", ​"password");

    The normal call using the "NEGOTIATE" method looks like this:

    ldap_bind_s(ld, NULL, &NtAuthIdentity, NEGOTIATE (1158)); // v.3
                    {NtAuthIdentity: User='​userinfo'; Pwd=<unavailable>; domain = 'thedomain'}​

     Any idea on how to get Sitefinity to make the ldap_simple_bind_s call above?

     

  2. Clarence
    Clarence avatar
    7 posts
    Registered:
    03 Jun 2015
    03 Jun 2015
    Link to this post

    It turns out that doing an anonymous or basic setup makes the ldap_simple call, so that is a good thing.

     However now I am getting this error in the error.log file.

     
    Timestamp: 6/3/2015 7:03:45 PM

    Message: HandlingInstanceID: 3a3be3fd-b34c-4229-a960-4ce2f8043ca5
    An exception of type 'System.DirectoryServices.Protocols.DirectoryOperationException' occurred and was caught.
    --------------------------------------------------------------------------------------------------------------
    06/03/2015 15:03:45
    Type : System.DirectoryServices.Protocols.DirectoryOperationException, System.DirectoryServices.Protocols, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
    Message : The object does not exist.
    Source : System.DirectoryServices.Protocols
    Help link :
    Response :
    Data : System.Collections.ListDictionaryInternal
    TargetSite : Void BindHelper(System.Net.NetworkCredential, Boolean)
    HResult : -2146233088
    Stack Trace :    at System.DirectoryServices.Protocols.LdapConnection.BindHelper(NetworkCredential newCredential, Boolean needSetCredential)
       at System.DirectoryServices.Protocols.LdapConnection.SendRequestHelper(DirectoryRequest request, Int32& messageID)
       at System.DirectoryServices.Protocols.LdapConnection.SendRequest(DirectoryRequest request, TimeSpan requestTimeout)
       at Telerik.Sitefinity.Security.Ldap.LdapFacade.Search(LdapQuery query, String rootDN, Int32 pageSize)

    Additional Info:

    MachineName : <Server name removed for security>
    TimeStamp : 6/3/2015 7:03:45 PM
    FullName : Telerik.Sitefinity.Utilities, Version=8.0.5710.0, Culture=neutral, PublicKeyToken=b28c218413bdf563
    AppDomainName : /LM/W3SVC/9/ROOT-1-130778317995002580
    ThreadIdentity : ​<removed for security>
    WindowsIdentity : IIS APPPOOL\​<removed>
    Requested URL : http://​<removed>/Sitefinity/Services/Security/Users.svc/?roleId=&roleProvider=&forAllProviders=false&filter=&provider=LdapUsers&skip=0&take=20


    Category: ErrorLog

    Priority: 0

    EventId: 90030

    Severity: Error

    Title:Enterprise Library Exception Handling

    Machine: ​<removed>

    App Domain: /LM/W3SVC/9/ROOT-1-130778317995002580

    ProcessId: 5504

    Process Name: c:\windows\system32\inetsrv\w3wp.exe

    Thread Name:

    Win32 ThreadId:9632

    Extended Properties:
    ----------------------------------------
    ----------------------------------------
    Timestamp: 6/3/2015 7:03:45 PM

    Message: HandlingInstanceID: 29606003-12e4-464a-bfd5-cff1d097e760
    An exception of type 'System.DirectoryServices.Protocols.DirectoryOperationException' occurred and was caught.
    --------------------------------------------------------------------------------------------------------------
    06/03/2015 15:03:45
    Type : System.DirectoryServices.Protocols.DirectoryOperationException, System.DirectoryServices.Protocols, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
    Message : The object does not exist.
    Source : System.DirectoryServices.Protocols
    Help link :
    Response :
    Data : System.Collections.ListDictionaryInternal
    TargetSite : Void BindHelper(System.Net.NetworkCredential, Boolean)
    HResult : -2146233088
    Stack Trace :    at System.DirectoryServices.Protocols.LdapConnection.BindHelper(NetworkCredential newCredential, Boolean needSetCredential)
       at System.DirectoryServices.Protocols.LdapConnection.SendRequestHelper(DirectoryRequest request, Int32& messageID)
       at System.DirectoryServices.Protocols.LdapConnection.SendRequest(DirectoryRequest request, TimeSpan requestTimeout)
       at Telerik.Sitefinity.Security.Ldap.LdapFacade.Search(LdapQuery query, String rootDN, Int32 pageSize)

    Additional Info:

    MachineName : <removed>
    TimeStamp : 6/3/2015 7:03:45 PM
    FullName : Telerik.Sitefinity.Utilities, Version=8.0.5710.0, Culture=neutral, PublicKeyToken=b28c218413bdf563
    AppDomainName : /LM/W3SVC/9/ROOT-1-130778317995002580
    ThreadIdentity : <removed>
    WindowsIdentity : IIS APPPOOL\<removed>
    Requested URL : http://<removed>/Sitefinity/Services/Security/Users.svc/?roleId=&roleProvider=&forAllProviders=false&filter=&provider=LdapUsers&skip=0&take=20


    Category: ErrorLog

    Priority: 0

    EventId: 90030

    Severity: Error

    Title:Enterprise Library Exception Handling

    Machine: <removed>

    App Domain: /LM/W3SVC/9/ROOT-1-130778317995002580

    ProcessId: 5504

    Process Name: c:\windows\system32\inetsrv\w3wp.exe

    Thread Name:

    Win32 ThreadId:9632

    Extended Properties:
    ----------------------------------------

     

  3. Sabrie Nedzhip
    Sabrie Nedzhip avatar
    534 posts
    Registered:
    08 Dec 2016
    08 Jun 2015
    Link to this post
    Hi Clarence,

    Can you please refer to the following article for more details about configuring the LDAP settings in a Sitefinity project. What I can suggest is to use the Negotiate authentication type which is the default type and you should be able to successfully connect to your LDAP server.

    Regards,
    Sabrie Nedzhip
    Telerik
     
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
3 posts, 0 answered