<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: SVN and Active Directory</title>
	<atom:link href="http://blog.bluewire-technologies.com/2007/11/13/svn-and-active-directory/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.bluewire-technologies.com/2007/11/13/svn-and-active-directory/</link>
	<description>The Bluewire Technologies dev team blog</description>
	<lastBuildDate>Fri, 04 Jun 2010 09:01:21 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Will</title>
		<link>http://blog.bluewire-technologies.com/2007/11/13/svn-and-active-directory/#comment-584</link>
		<dc:creator>Will</dc:creator>
		<pubDate>Fri, 04 Jun 2010 09:01:21 +0000</pubDate>
		<guid isPermaLink="false">http://bluewireblog.wordpress.com/2007/11/13/svn-and-active-directory/#comment-584</guid>
		<description>Thanks Nikolaus - should be working again now!</description>
		<content:encoded><![CDATA[<p>Thanks Nikolaus &#8211; should be working again now!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nikolaus</title>
		<link>http://blog.bluewire-technologies.com/2007/11/13/svn-and-active-directory/#comment-583</link>
		<dc:creator>Nikolaus</dc:creator>
		<pubDate>Fri, 04 Jun 2010 08:50:55 +0000</pubDate>
		<guid isPermaLink="false">http://bluewireblog.wordpress.com/2007/11/13/svn-and-active-directory/#comment-583</guid>
		<description>Hi,
the download location seems to be unavailable now. Could you fix the download link, please?
Thanks for your work!</description>
		<content:encoded><![CDATA[<p>Hi,<br />
the download location seems to be unavailable now. Could you fix the download link, please?<br />
Thanks for your work!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://blog.bluewire-technologies.com/2007/11/13/svn-and-active-directory/#comment-552</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Tue, 04 Nov 2008 11:20:50 +0000</pubDate>
		<guid isPermaLink="false">http://bluewireblog.wordpress.com/2007/11/13/svn-and-active-directory/#comment-552</guid>
		<description>It seems that I forgot to exclude disabled user accounts. Altering the get_member_users subroutine as follows should do this:

sub get_member_users($)
{
	my($group) = @_;
	my @users = ();
	my $members = $group-&gt;get_value(&#039;member&#039;, asref=&gt;1);
	foreach (@{$members}) {
		my($mesg, $member, @objectClass, $accountState);
		$mesg = $ldap-&gt;search(
					base =&gt; $_,
					filter =&gt; &quot;(objectClass=*)&quot;,
					attrs =&gt; [ &#039;member&#039;, &#039;dn&#039;, &#039;sAMAccountName&#039;, &#039;objectClass&#039;, &#039;userAccountControl&#039; ]
					);
		$member = $mesg-&gt;entry(0);
		@objectClass = @{$member-&gt;get_value(&#039;objectClass&#039;, asref=&gt;1)};
		if ( grep $_ eq &quot;group&quot;, @objectClass ) {
			push @users, get_member_users($member);
		}
		if ( grep $_ eq &quot;user&quot;, @objectClass ) {
			$accountState = $member-&gt;get_value(&#039;userAccountControl&#039;);
			# Exclude disabled user accounts.
			if ( ( $accountState &amp; 2 ) == 0 ) {
				push @users, @{$member-&gt;get_value(&#039;sAMAccountName&#039;, asref=&gt;1)};
			}
		}
	}
	return @users;
}</description>
		<content:encoded><![CDATA[<p>It seems that I forgot to exclude disabled user accounts. Altering the get_member_users subroutine as follows should do this:</p>
<p>sub get_member_users($)<br />
{<br />
	my($group) = @_;<br />
	my @users = ();<br />
	my $members = $group-&gt;get_value(&#8216;member&#8217;, asref=&gt;1);<br />
	foreach (@{$members}) {<br />
		my($mesg, $member, @objectClass, $accountState);<br />
		$mesg = $ldap-&gt;search(<br />
					base =&gt; $_,<br />
					filter =&gt; &#8220;(objectClass=*)&#8221;,<br />
					attrs =&gt; [ 'member', 'dn', 'sAMAccountName', 'objectClass', 'userAccountControl' ]<br />
					);<br />
		$member = $mesg-&gt;entry(0);<br />
		@objectClass = @{$member-&gt;get_value(&#8216;objectClass&#8217;, asref=&gt;1)};<br />
		if ( grep $_ eq &#8220;group&#8221;, @objectClass ) {<br />
			push @users, get_member_users($member);<br />
		}<br />
		if ( grep $_ eq &#8220;user&#8221;, @objectClass ) {<br />
			$accountState = $member-&gt;get_value(&#8216;userAccountControl&#8217;);<br />
			# Exclude disabled user accounts.<br />
			if ( ( $accountState &amp; 2 ) == 0 ) {<br />
				push @users, @{$member-&gt;get_value(&#8216;sAMAccountName&#8217;, asref=&gt;1)};<br />
			}<br />
		}<br />
	}<br />
	return @users;<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://blog.bluewire-technologies.com/2007/11/13/svn-and-active-directory/#comment-549</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Thu, 18 Sep 2008 08:15:50 +0000</pubDate>
		<guid isPermaLink="false">http://bluewireblog.wordpress.com/2007/11/13/svn-and-active-directory/#comment-549</guid>
		<description>Well spotted.

I&#039;ve updated the post accordingly and brought the script up to date too. It&#039;s had some bugfixes and style improvements since I originally posted this.</description>
		<content:encoded><![CDATA[<p>Well spotted.</p>
<p>I&#8217;ve updated the post accordingly and brought the script up to date too. It&#8217;s had some bugfixes and style improvements since I originally posted this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: anoop</title>
		<link>http://blog.bluewire-technologies.com/2007/11/13/svn-and-active-directory/#comment-548</link>
		<dc:creator>anoop</dc:creator>
		<pubDate>Wed, 17 Sep 2008 20:52:52 +0000</pubDate>
		<guid isPermaLink="false">http://bluewireblog.wordpress.com/2007/11/13/svn-and-active-directory/#comment-548</guid>
		<description>The script works very well. i had to tweak it a bit but i can&#039;t remember now what i did to it. Anyway, just wanted to correct an error on the security.conf file you have above. You need the @ in front of Administrators when you&#039;re using providing permissions to a group for a particular repo.</description>
		<content:encoded><![CDATA[<p>The script works very well. i had to tweak it a bit but i can&#8217;t remember now what i did to it. Anyway, just wanted to correct an error on the security.conf file you have above. You need the @ in front of Administrators when you&#8217;re using providing permissions to a group for a particular repo.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
