Office Zealot

Where Office geeks come to play...
Welcome to Office Zealot Sign in | Join | Help
in Search

Browse by Tags

All Tags » Active Directory
  • A Revised Code Snippet on Getting User Emails from Active Directory

    A few days ago I posted a code snippet for getting email addresses from Active Directory in my SharePoint web part.  Yes, it worked fine... for a single domain.  But what if you have users across multiple domains in your forest.  The code snippet below deals with that scenario.  Happy coding! DirectoryEntry gc; DirectoryEntry ...
    Posted to Mauro Cardarelli (Weblog) by Mauro on October 19, 2010
  • Code Snippet to Get User Emails from Active Directory

    I am building a SharePoint 2010 web part that does conference room scheduling and I needed to add functionality to add users to a meeting invitation (I'll post code for creating meeting invites through SMTP in another post).  The code below allows the application user to search for colleague emails in Active Directory.  It was a bit of a ...
    Posted to Mauro Cardarelli (Weblog) by Mauro on October 16, 2010
  • Limiting the SharePoint People Picker List

    Found another goodie in MOSS SP1... By default, a web application that is tied to Windows Authentication will search the entire Active Directory to resolve user names.  This is great for a corporate intranet but what if you are building something smaller that is intended for use by a particular Organizational Unit (OU)?  You would want ...
    Posted to Mauro Cardarelli (Weblog) by Mauro on June 18, 2008
  • Web Service to Query Active Directory Attributes

    Been on a coding kick lately... My colleagues and I are working on some custom SharePoint workflows and one of them requires obtaining some user data from Active Directory.  A great way to handle this is through the use of a web service.  Once implemented, this is something that can be repurposed, whether through other workflows or ...
    Posted to Mauro Cardarelli (Weblog) by Mauro on June 2, 2008
  • Kerberos & Sharepoint

    Some useful links that help guide a configuration of SharePoint when using Kerberos... How to configure a Windows SharePoint Services virtual server to use Kerberos authentication and how to switch from Kerberos authentication back to NTLM authentication How to use SPNs when you configure Web applications that are hosted on IIS 6.0 How to ...
    Posted to Office Server 2007 Ramblings (Weblog) by bsandeman on February 28, 2008
  • Querying Active Directory from SQL Server

    Had a request a few weeks ago to get a list of AD users by writing some custom code.  While I love to write code, I thought there had to be an easier (faster) way to get my data.  There is... t-sql!  Here's what I did: 1. Add a linked server to Active Directory.  You can do this with t-sql (below) or through the Enterprise ...
    Posted to Mauro Cardarelli (Weblog) by Mauro on October 25, 2007
  • Active Directory Checker nicked from ASP

    Important Note : This will only work for InfoPath Forms Services, not for InfoPath clients   Useful code below to check the membership of Active Directory groups for the current user. For this you need to import the .net library System.DirectoryServices and change the web.config for sharepoint as commented in the code below… As a warning, ...
    Posted to Office Server 2007 Ramblings (Weblog) by bsandeman on August 18, 2006
Powered by Community Server (Commercial Edition), by Telligent Systems