View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update | 
|---|---|---|---|---|---|
| 0007620 | mantisbt | ldap | public | 2006-11-29 04:00 | 2010-04-23 23:22 | 
| Reporter | eiben | Assigned To | vboctor | ||
| Priority | normal | Severity | major | Reproducibility | always | 
| Status | closed | Resolution | fixed | ||
| Product Version | 1.1.0a1 | ||||
| Fixed in Version | 1.2.0rc2 | ||||
| Summary | 0007620: ldap_search: Operation Error | ||||
| Description | While logging in to mantis using ldap I always receive an error in line 124 in the file core\ldap_api.php. I found, that inserting ldap_set_option($t_ds, LDAP_OPT_REFERRALS, 0); in line 29 in core\ldap_api.php seems to fix the problem.  | ||||
| Additional Information | I'm running Mantis on Windows 2003 Server, using IIS 6.0 and validating using ldap and Active Directory.  | ||||
| Tags | patch | ||||
| 
	 exactly what error do you receive without this addition?  | 
|
| 
	 ldap_search() [function.ldap-search]: Search: Operations error Full path: E:\mantis\mantis-1.1.0a1\core\ldap_api.php Is that sufficient?  | 
|
| 
	 eiben : Would you please share with me your experience of configuring Mantis? I have exactly the same environment as you do, but I can not make the Ldap work. Specificly, I am not sure how to set these parameters and I am not sure what else I need to do. --- using openldap -------------
you may email me :edward.gao at gmail.com, Thanks a lot.  | 
|
| 
	 I believe this may be a duplicate of 7432.  | 
|
| 
	 Well, I use a different $g_ldap_bind_dn ... this is my current config: $g_ldap_server          = 'ldap://server.domain.com/'; $g_ldap_bind_dn         = 'domain\mantiserviceuser'; As you can see, I've setup a special account to do the lookups for mantis. This works for me, running on a windows-box as well as running on a linux-box. Both boxes are part of a windows 2003 active directory structure.  | 
|
| 
	 I also have the same problem with a Win 2003 ADS server. The issue has already been discussed on the php-manual pages, e.g, http://de3.php.net/manual/de/function.ldap-search.php. Here is the comment which helped me to continue: 
 In fact, I required both lines 
 where the first one is readily available in mantis via the parameter 
  | 
|
| 
	 confirmed on Win2k3, Mantis 1.2.0a3  | 
|
| 
	 I was just wondering what the LDAP_OPT_REFERRALS flag means. 
  | 
|
| 
	 I wonder if there is something to fix here? It seems that the fix was to set the protocol version to 3. Did the referrals matter? Is this just a documentation issue where we provide a set of settings to use for connecting to AD?  | 
|
| 
	 In my case, protocol version 3 is not the whole story (cf. the ending lines of my note 0007620:0018646 ). This requires a change in the code.  | 
|
| 
	 @tk LDAP_OPT_REFERRALS is configurable via $g_ldap_follow_referrals in 1.2.0rc2. It would be great if you can test 1.2.0rc2 and provide feedback.  | 
|
| 
	 Now it works in my environment.  | 
|