Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsAuthenticationAuthentication.config providerPath Confusion.config providerPath Confusion
Previous
 
Next
New Post
6/25/2008 5:31 PM
 

Can anyone please clarify where exactly this path is supposed to be?

<authentication defaultProvider="ADSIAuthenticationProvider">
      <providers>
        <clear />
        <add name="ADSIAuthenticationProvider" type="DotNetNuke.Security.Authentication.ADSIProvider, DotNetNuke.Authentication.ADSIProvider" providerPath="~\Providers\AuthenticationProviders\ADSIProvider\" />
      </providers>
    </authentication>

What is the providerPath telling the application here in the web.config? Obviously, it's pointing it somehow ...but, looking through the structure I don't see this physical path anywhere. I'm sorry in advance if this is the lamest question ever, but I can't stand not knowing! :-) Any pointers are VERY much appreciated!


Check out the open source DNN Testimonials project on CodePlex and help build it!
 
New Post
6/25/2008 5:41 PM
 

Just leave it as is. I honestly don't think it does anything and is a legacy from pre DNN 4.6.

 
New Post
6/25/2008 5:58 PM
 

Hi Mike, man you're quick! I think (hope) I've tracked my issue down to a missing letter in a database field. Hey let me ask you this - I'm trying to extend the AD provider and i've created a procedure to grab all the Active AD groups in our system. Now, I would like to cache that object, but I haven't worked with the DNN caching before. Here is what I have...Does this look right? Also, now, if I want to call the object from somewhere else in the application ...what is the best way to do it? Oh...and also on the AddFilter how would I use two filters? for example, if I wanted to achieve: "(&(objectClass=group)(cn=CS_*))". is it as simple as adding another filter? Thanks very much!!

 Public Overrides Function GetAllGroups() As System.Collections.ArrayList

            Dim _config As DotNetNuke.Authentication.ActiveDirectory.Configuration = ActiveDirectory.Configuration.GetConfig()
            Dim strCacheKey As String = GroupCacheKey

            Dim dirEntries As ArrayList = CType(DataCache.GetCache(strCacheKey), ArrayList)

            If dirEntries Is Nothing Then
                Dim RootDomain As Domain = GetRootDomain()

                'create instance fo the direcory searcher
                Dim objSearch As New Search(RootDomain)

                'set the search filter
                objSearch.AddFilter(Configuration.ADSI_CLASS, ADSI.CompareOperator.Is, ObjectClass.group.ToString())

                'populate array list with group objects
                dirEntries = objSearch.GetEntries
                DataCache.SetCache(strCacheKey, dirEntries, 600)
            End If

            Return dirEntries
        End Function

*had to edit...the code got all chewed up.


Check out the open source DNN Testimonials project on CodePlex and help build it!
 
New Post
6/26/2008 1:22 PM
 

That looks like it should work but I'd have to try it to be sure.

As for filters, yes just add another filter.

I've found that this book is an excellent reference along with their companion website.

 
New Post
6/26/2008 5:29 PM
 

Hi Mike - thanks very much for the great resource pointers. I'm pretty sure I've got the cache thing working fine, but I'm a little confused still on the filters. I took the same procedure and modified it to return a datatable. Initially, the way I posted it..I bound it to a datagrid and I got back 118 results of "directoryservices.entry...". Needless to say I returned the items, but no properties I suppose. Anyhow, so I am now returning a datatable, but everytime I get to "if searchresults.count > 0", then it just hangs. Viewing the locals window, it looks like there is somekind of error retrieving any info from AD. The weird part is that it only seems to happen if i add the second filter... from looking below, can you tell if there is anything i'm doing wrong?

 

Public Overrides Function GetAllGroups() As DataTableDim _config As DotNetNuke.Authentication.ActiveDirectory.Configuration = ActiveDirectory.Configuration.GetConfig()Dim strCacheKey As String = GroupCacheKeyDim dirEntries As DirectoryEntries = CType(DataCache.GetCache(strCacheKey), DirectoryEntries)Dim dt As New DataTableIf dirEntries Is Nothing Then Dim RootDomain As Domain = GetRootDomain()'create instance of the directory searcher Dim objSearch As New Search(RootDomain)'set the search filter objSearch.AddFilter(Configuration.ADSI_CLASS, ADSI.CompareOperator.Is, ObjectClass.group.ToString())objSearch.AddFilter(Configuration.ADSI_CNAME, ADSI.CompareOperator.Is, "CS_*")    /*THIS LINE SEEMS TO BE GIVING SOME TROUBLE*/ Dim SearchResults As SearchResultCollection = objSearch.FindAll()If SearchResults.Count > 0 Then dt.Columns.Add("Name")For Each result As SearchResult In SearchResults'set a new ro Dim drGroup As DataRow = dt.NewRow()'pop the column drGroup("Name") = result.Properties("cn")(0)'append to table dt.Rows.Add(drGroup)Next End If 'populate array list with group objects DataCache.SetCache(strCacheKey, dt, 600)End If Return dtEnd Function                       Anything jumping out at you???? :-)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 


Check out the open source DNN Testimonials project on CodePlex and help build it!
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsAuthenticationAuthentication.config providerPath Confusion.config providerPath Confusion


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out