<?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/"
		>
<channel>
	<title>Comments on: Mantis tweaks: logging in via Microsoft Active Directory LDAP</title>
	<atom:link href="http://www.warden.pl/2008/07/08/mantis-tweaks-getting-it-to-work-with-microsoft-ad-ldap/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.warden.pl/2008/07/08/mantis-tweaks-getting-it-to-work-with-microsoft-ad-ldap/#utm_source=feed&#038;utm_medium=feed&#038;utm_campaign=feed</link>
	<description>&#34;Idiopathic, from the Latin meaning we&#039;re idiots cause we can&#039;t figure out what&#039;s causing it.&#34; by dr House</description>
	<lastBuildDate>Sat, 04 Feb 2012 00:00:09 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.1</generator>
	<item>
		<title>By: flashfs</title>
		<link>http://www.warden.pl/2008/07/08/mantis-tweaks-getting-it-to-work-with-microsoft-ad-ldap/#comment-1181</link>
		<dc:creator>flashfs</dc:creator>
		<pubDate>Wed, 22 Sep 2010 12:33:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.warden.pl/?p=12#comment-1181</guid>
		<description>Thanks Jeff Siegel, I was having a problem with another application and that solved my problem.</description>
		<content:encoded><![CDATA[<p>Thanks Jeff Siegel, I was having a problem with another application and that solved my problem.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: programy</title>
		<link>http://www.warden.pl/2008/07/08/mantis-tweaks-getting-it-to-work-with-microsoft-ad-ldap/#comment-1165</link>
		<dc:creator>programy</dc:creator>
		<pubDate>Mon, 06 Sep 2010 13:17:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.warden.pl/?p=12#comment-1165</guid>
		<description>Blog godny uwagi. Wpisy rzeczowe, zawsze dowiaduję się czegoś nowego. Lądujecie w moich ulubionych stronach!</description>
		<content:encoded><![CDATA[<p>Blog godny uwagi. Wpisy rzeczowe, zawsze dowiaduję się czegoś nowego. Lądujecie w moich ulubionych stronach!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff Siegel</title>
		<link>http://www.warden.pl/2008/07/08/mantis-tweaks-getting-it-to-work-with-microsoft-ad-ldap/#comment-1145</link>
		<dc:creator>Jeff Siegel</dc:creator>
		<pubDate>Tue, 08 Jun 2010 22:41:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.warden.pl/?p=12#comment-1145</guid>
		<description>If your LDAP layout doesn&#039;t have a single OU that contains all the Users, then you will have to set $g_ldap_root to the root of your domain, e.g. :
$g_ldap_root_dn = &#039;DC=commscope,DC=com&#039;;

But this causes an error with the ldap-search function. You&#039;ll get a message like this:
SYSTEM WARNING: ldap_search() [function.ldap-search]: Search: Operations error

The solution is to edit function ldap_connect_bind(), and add this line:
			if ( $t_protocol_version &gt; 0 ) {
				ldap_set_option( $t_ds, LDAP_OPT_PROTOCOL_VERSION, $t_protocol_version );
			}

			# Added by Jeff Siegel 6/8/2010. 			ldap_set_option($t_ds, LDAP_OPT_REFERRALS, 0);

Then the ldap-search() will work successfully.</description>
		<content:encoded><![CDATA[<p>If your LDAP layout doesn&#8217;t have a single OU that contains all the Users, then you will have to set $g_ldap_root to the root of your domain, e.g. :<br />
$g_ldap_root_dn = &#8216;DC=commscope,DC=com&#8217;;</p>
<p>But this causes an error with the ldap-search function. You&#8217;ll get a message like this:<br />
SYSTEM WARNING: ldap_search() [function.ldap-search]: Search: Operations error</p>
<p>The solution is to edit function ldap_connect_bind(), and add this line:<br />
			if ( $t_protocol_version &gt; 0 ) {<br />
				ldap_set_option( $t_ds, LDAP_OPT_PROTOCOL_VERSION, $t_protocol_version );<br />
			}</p>
<p>			# Added by Jeff Siegel 6/8/2010. 			ldap_set_option($t_ds, LDAP_OPT_REFERRALS, 0);</p>
<p>Then the ldap-search() will work successfully.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Xyem</title>
		<link>http://www.warden.pl/2008/07/08/mantis-tweaks-getting-it-to-work-with-microsoft-ad-ldap/#comment-770</link>
		<dc:creator>Xyem</dc:creator>
		<pubDate>Mon, 13 Jul 2009 15:34:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.warden.pl/?p=12#comment-770</guid>
		<description>Thanks for a very useful post which has enabled me to get Mantis to authenticate against LDAP ( slightly different method to what you posted however ), although it does result in random LDAP related errors elsewhere in Mantis which I need to find the cause to ( I&#039;m very, very new to LDAP and hacking Mantis internals, but I know PHP.. )

I was just wondering if you have written the second article you alluded to in regards to having Mantis create accounts on successful LDAP authentication as this is obviously the next, and very important, step.

Cheers</description>
		<content:encoded><![CDATA[<p>Thanks for a very useful post which has enabled me to get Mantis to authenticate against LDAP ( slightly different method to what you posted however ), although it does result in random LDAP related errors elsewhere in Mantis which I need to find the cause to ( I&#8217;m very, very new to LDAP and hacking Mantis internals, but I know PHP.. )</p>
<p>I was just wondering if you have written the second article you alluded to in regards to having Mantis create accounts on successful LDAP authentication as this is obviously the next, and very important, step.</p>
<p>Cheers</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ugo Ducharme</title>
		<link>http://www.warden.pl/2008/07/08/mantis-tweaks-getting-it-to-work-with-microsoft-ad-ldap/#comment-731</link>
		<dc:creator>Ugo Ducharme</dc:creator>
		<pubDate>Tue, 16 Jun 2009 13:42:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.warden.pl/?p=12#comment-731</guid>
		<description>I tried your solution and it work but it creates several bugs that are not adressed in this article. For example I have those errors in view_all_bug_page.php : 

SYSTEM WARNING: ldap_search() [function.ldap-search]: Search: Operations error

SYSTEM WARNING: ldap_get_entries(): supplied argument is not a valid ldap result resource

SYSTEM WARNING: ldap_free_result(): supplied argument is not a valid ldap result resource

I am sure they need small tweeks to run but I am not an LDAP specialist and I am not sure how to repair them.</description>
		<content:encoded><![CDATA[<p>I tried your solution and it work but it creates several bugs that are not adressed in this article. For example I have those errors in view_all_bug_page.php : </p>
<p>SYSTEM WARNING: ldap_search() [function.ldap-search]: Search: Operations error</p>
<p>SYSTEM WARNING: ldap_get_entries(): supplied argument is not a valid ldap result resource</p>
<p>SYSTEM WARNING: ldap_free_result(): supplied argument is not a valid ldap result resource</p>
<p>I am sure they need small tweeks to run but I am not an LDAP specialist and I am not sure how to repair them.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cbasset</title>
		<link>http://www.warden.pl/2008/07/08/mantis-tweaks-getting-it-to-work-with-microsoft-ad-ldap/#comment-701</link>
		<dc:creator>cbasset</dc:creator>
		<pubDate>Fri, 29 May 2009 08:00:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.warden.pl/?p=12#comment-701</guid>
		<description>It&#039;s no use rewriting mantis code, see here for more information:

http://www.mantisbt.org/wiki/doku.php/mantisbt:active_directory</description>
		<content:encoded><![CDATA[<p>It&#8217;s no use rewriting mantis code, see here for more information:</p>
<p><a href="http://www.mantisbt.org/wiki/doku.php/mantisbt:active_directory" rel="nofollow">http://www.mantisbt.org/wiki/doku.php/mantisbt:active_directory</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eugene</title>
		<link>http://www.warden.pl/2008/07/08/mantis-tweaks-getting-it-to-work-with-microsoft-ad-ldap/#comment-307</link>
		<dc:creator>Eugene</dc:creator>
		<pubDate>Sat, 01 Nov 2008 23:14:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.warden.pl/?p=12#comment-307</guid>
		<description>Nice article. Thanks. :) Eugene</description>
		<content:encoded><![CDATA[<p>Nice article. Thanks. :) Eugene</p>
]]></content:encoded>
	</item>
</channel>
</rss>

