More in this section

Forums / Bugs & Issues / COMException in TelerikADRoleProvider.RetrieveUserFromDN

COMException in TelerikADRoleProvider.RetrieveUserFromDN

2 posts, 0 answered
  1. Christian Ecker
    Christian  Ecker avatar
    7 posts
    08 Mar 2010
    25 May 2010
    Link to this post

    I found that if the DN contains a '/' character, a COMException is thrown when this method calls DirectorySearcher.FindOne().  I fixed this using dn.Replace("/", "\\/") when creating the DirectoryEntry, and it solved my problem.

    Perhaps it is best practice to not include slash characters in active directory, but it's unclear from the LDAP RFC that this is illegal, and the ability of other Microsoft to insert these makes it a case necessary to handle.  In my opinion it's a bug in DirectorySearcher, but this workaround appears to help in our situation.

  2. Georgi
    Georgi avatar
    3583 posts
    28 Oct 2016
    26 May 2010
    Link to this post
    Hello Christian Ecker,

    Thank you for reporting this issue. 
    It has been discussed with our QA team and logged for fixing. Your account has been updated as well. 

    Kind regards,
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
2 posts, 0 answered