<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Suman Chakrabarti - SharePoint and ASP.NET blog : ADSI</title><link>http://blogs.msdn.com/sumanc/archive/tags/ADSI/default.aspx</link><description>Tags: ADSI</description><dc:language>en</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>MOSS Profile Search LDAP query to remove disabled and service accounts</title><link>http://blogs.msdn.com/sumanc/archive/2007/06/28/moss-profile-search-ldap-query-to-remove-disabled-and-service-accounts.aspx</link><pubDate>Thu, 28 Jun 2007 17:28:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3585271</guid><dc:creator>Suman Chakrabarti</dc:creator><slash:comments>17</slash:comments><comments>http://blogs.msdn.com/sumanc/comments/3585271.aspx</comments><wfw:commentRss>http://blogs.msdn.com/sumanc/commentrss.aspx?PostID=3585271</wfw:commentRss><wfw:comment>http://blogs.msdn.com/sumanc/rsscomments.aspx?PostID=3585271</wfw:comment><description>&lt;P&gt;To put together the right query to get users that are not disabled accounts nor service accounts, you will need to add the following parameters to the query.&lt;/P&gt;
&lt;P style="FONT-WEIGHT: bold; COLOR: red; FONT-STYLE: italic"&gt;Update: I found a better approach to removing disabled accounts&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;(!userAccountControl:1.2.840.113556.1.4.803:=2) - removes disabled accounts&lt;/LI&gt;
&lt;LI&gt;(!userAccountControl=65536) - removes accounts with password set to never expire&lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;Your LDAP string should look something like this:&lt;/P&gt;
&lt;P&gt;(&amp;amp;(objectCategory=person)(objectClass=user)(!userAccountControl:1.2.840.113556.1.4.803:=2)(!userAccountControl=65536))&lt;/P&gt;
&lt;P&gt;For more ADSI userAccountControl flags go here: &lt;A href="http://msdn2.microsoft.com/en-us/library/aa772300.aspx"&gt;http://msdn2.microsoft.com/en-us/library/aa772300.aspx&lt;/A&gt;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=3585271" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/sumanc/archive/tags/SPS+2003_2F00_WSS+2/default.aspx">SPS 2003/WSS 2</category><category domain="http://blogs.msdn.com/sumanc/archive/tags/SharePoint/default.aspx">SharePoint</category><category domain="http://blogs.msdn.com/sumanc/archive/tags/ADSI/default.aspx">ADSI</category><category domain="http://blogs.msdn.com/sumanc/archive/tags/Search/default.aspx">Search</category></item><item><title>Active Directory Activities for Windows Workflow Foundation posted</title><link>http://blogs.msdn.com/sumanc/archive/2006/12/21/active-directory-activities-in-windows-workflow-foundation.aspx</link><pubDate>Thu, 21 Dec 2006 19:06:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1340885</guid><dc:creator>Suman Chakrabarti</dc:creator><slash:comments>5</slash:comments><comments>http://blogs.msdn.com/sumanc/comments/1340885.aspx</comments><wfw:commentRss>http://blogs.msdn.com/sumanc/commentrss.aspx?PostID=1340885</wfw:commentRss><wfw:comment>http://blogs.msdn.com/sumanc/rsscomments.aspx?PostID=1340885</wfw:comment><description>&lt;P&gt;My Active Directory activities have been published to the &lt;A href="http://wf.netfx3.com/" mce_href="http://wf.netfx3.com"&gt;.NET 3.0 web site&lt;/A&gt;. They are available here: &lt;A href="http://wf.netfx3.com/files/folders/communications/entry7716.aspx" mce_href="http://wf.netfx3.com/files/folders/communications/entry7716.aspx"&gt;http://wf.netfx3.com/files/folders/communications/entry7716.aspx&lt;/A&gt; &lt;/P&gt;
&lt;P&gt;I've included a simple sample and I will probably tag in an screenshot of a sample workflow. &lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Enjoy!&lt;/EM&gt;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=1340885" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/sumanc/archive/tags/.NET/default.aspx">.NET</category><category domain="http://blogs.msdn.com/sumanc/archive/tags/Win+WF/default.aspx">Win WF</category><category domain="http://blogs.msdn.com/sumanc/archive/tags/ADSI/default.aspx">ADSI</category></item><item><title>WinWF Active Directory Activities</title><link>http://blogs.msdn.com/sumanc/archive/2006/11/30/winwf-active-directory-activities.aspx</link><pubDate>Thu, 30 Nov 2006 08:32:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1176053</guid><dc:creator>Suman Chakrabarti</dc:creator><slash:comments>4</slash:comments><comments>http://blogs.msdn.com/sumanc/comments/1176053.aspx</comments><wfw:commentRss>http://blogs.msdn.com/sumanc/commentrss.aspx?PostID=1176053</wfw:commentRss><wfw:comment>http://blogs.msdn.com/sumanc/rsscomments.aspx?PostID=1176053</wfw:comment><description>&lt;P&gt;I've been working on building out some AD activities for Windows Workflow Foundation. A few months ago, I put together activities for the following retrieval activities:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;GetUserActivity&lt;/LI&gt;
&lt;LI&gt;GetManagerActivity&lt;/LI&gt;
&lt;LI&gt;ChangePassword&lt;/LI&gt;
&lt;LI&gt;CreateUser&lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;Anyone have ideas on anything else? I'd like to just make a little framework of AD components for the WinWF site when I finally upload it.&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=1176053" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/sumanc/archive/tags/Win+WF/default.aspx">Win WF</category><category domain="http://blogs.msdn.com/sumanc/archive/tags/SharePoint/default.aspx">SharePoint</category><category domain="http://blogs.msdn.com/sumanc/archive/tags/ADSI/default.aspx">ADSI</category></item></channel></rss>