Making AD user belong to CommunityMember

Vote:
 

I've successfully set up a Relate+ site and am using the Medstore template and even managed to hook up the AD with users and groups.

Now, how do I add users or groups under CommunityMember group so the users can use the system at its fullest?
It doesn't seem like adding a AD group to CommunityMember group is working out.

#61178
Sep 11, 2012 11:15
Vote:
 

My site uses custom role- and mambership providers, and i solved this by modifying the GetRolesForUser method. You could do this in a number of ways. I wanted to check if the user is a member of a specific AD-group, like this:

public override string[] GetRolesForUser(string username)
        {
            DirectoryData userResult = GetUser(username);

            if(userResult == null)
            {
                return new string[0];
                //throw new ProviderException(String.Format("The user {0} does not exist.", username));
            }

            List<string> roleList = GetRolesForUserRecursive(userResult);

            //THIS IS THE MODIFIED PART
            List<string> appendGroups = new List<string>();
            foreach (string thisRole in roleList)
            {
                if(thisRole.Equals("YourADGroup"))
                    appendGroups.Add("CommunityAdmins");
            }
            roleList.AddRange(appendGroups);
            //
           
            return roleList.ToArray();
        }

#61194
Sep 11, 2012 14:45
Vote:
 

Thanks, but that did not quite cut it.

http://world.episerver.com/Modules/Forum/Pages/thread.aspx?id=47534

This thread suggests adding a key in EPiserverFramework.config. 
<add name="cmsAdmins" roles="Administrators, WebAdmins, YourAdGroupName"/>

Could I do this for making an AD group a part of CommunityMembers?

 

It's CMS 6 R1, not 2 btw

I tried, but nothing happend

#61267
Edited, Sep 13, 2012 14:00
Vote:
 

It seemed like a missmatch in EPi-users vs AD-users.

I removed the EPi-user and started over and it helped when adding a certain AD group to the CMS tree.  

#61516
Sep 21, 2012 9:34
This thread is locked and should be used for reference only. Please use the Legacy add-ons forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.