|
|
Browse by Tags
All Tags » 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 ...
-
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 ...
-
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 ...
-
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 ...
-
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 ...
-
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 ...
-
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, ...
|
|
|