active-directory-group

How do I email Active Directory distribution groups from a c# web application?

I'm trying to send email to Active Directory distribution groups. I know you can send mail using something like: mail.From = new MailAddress("[email protected]"); mail.To.Add("[email protected]"); //set the content mail.Subject = "This is an email"; mail.Body = "this is a sample body with html in it."; mail.IsBodyHtml = tr...

LDAP Query to List All Groups User is a Member of?

Given a username, how would I go about writing an LDAP query that will return all groups that the user is a member of? ...

How to Import Active Directory groups to sharepoint SSP

I want to add some rules to SSP Audiences and I can't access to Active Directory Groups in this rules. When you want to add a rule you have 2 option: 1-User, 2-Property. I am using User option so I have to choose "Reports Under" or "Member of". When I choose Reports Under I can't find any AD Group in search popup. I tried Full Import ...

Adding and removing users from Active Directory groups in .NET

I am writing the following methods to add and remove users from active directory in C#. void AddUserToGroup(string userId, string groupName); void RemoveUserFromGroup(string userId, string groupName); How best to implement these methods? Here is some code from CodeProject. I can't see where the AD server is specified in these example...

issues in installing ad fs2.0 in Windows server 2008 sp2

Hi, I am trying to install ad fs 2.0 on windows server 2008 sp2 but not able to proceed due to the error "ad fs2.0 installation requires windows server 2008 sp2". Does anybody come across the situation? I have windows server 2008 sp, hotfixes, .net 3.5 sp2, iis 7.0 installed on the server, i followed the procedure iilustrated in microso...

Reading Active Directory group users in SharePoint

Hi, Say that i have an active directory group called "Group1". I add this Group1 to a SharePoint site ( People and Group >> New User). All the users that are part of Group1 can now access sharepoint site. Now,for a specific custom webpart, i need to target to only users who belong to Group1. But when a user who belongs to Group1 logs ...