Closed Bug 346221 Opened 18 years ago Closed 18 years ago

LDAP Search does not work in Windows Vista

Categories

(MailNews Core :: LDAP Integration, defect)

x86
Windows Vista
defect
Not set
major

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 228439

People

(Reporter: mark, Unassigned)

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.0.5) Gecko/20060719 Firefox/1.5.0.5
Build Identifier: Mozilla Thunderbird version 3 alpha 1 (20060727) and 1.5.0.5

Currently, when I try to search an ldap server using Thunderbird 1.5.0.5 OR the version 3a1 nightly, the addressbook pauses for approximately 15 seconds, then returns no results.

I have user_pref("NSPR_LOG_MODULES", "ldap:5"); set up in my Thunderbird profile, but aren't getting any error messages coming back to the Error console whatsoever.

Thunderbird works fine on XP using the exact same configuration:
Hostname: ldap.usc.edu
Base DN: ou=People,o=usc.edu

By all means, if any further information is required, please let me know.  I'll be happy to help however I can.

Reproducible: Always

Steps to Reproduce:
1. Enter in a new ldap directory within profile.
2. Go to addressbook and select directory.
3. Type in search for "mark "for instance, and press enter.
Actual Results:  
After a 10-15 second pause (and Aero Glass telling me thunderbird is not responding), I get back no results.

Expected Results:  
There should be results coming back from the ldap server (as confirmed on the XP machine)
(In reply to comment #0)
> I have user_pref("NSPR_LOG_MODULES", "ldap:5"); set up in my Thunderbird
> profile, but aren't getting any error messages coming back to the Error console
> whatsoever.

That's the wrong place to set it. You need to set it in the environment before starting Thunderbird from the console. Just enter on the console:

set NSPR_LOG_MODULES=ldap:5
thunderbird.exe

If that gives you output, please attach examples of the Windows XP and Vista communications as attachments, rather than paste them into the comments.

I'm moving this to core->mailnews:ldap integration as that is a better location for this bug at the moment.
Assignee: mscott → nobody
Component: Address Book → MailNews: LDAP Integration
OS: Other → Windows Vista
Product: Thunderbird → Core
QA Contact: address-book → ldap-integration
Version: unspecified → Trunk
(In reply to comment #1)
> (In reply to comment #0)
> > I have user_pref("NSPR_LOG_MODULES", "ldap:5"); set up in my Thunderbird
> > profile, but aren't getting any error messages coming back to the Error console
> > whatsoever.
> 
> That's the wrong place to set it. You need to set it in the environment before
> starting Thunderbird from the console. Just enter on the console:
> 
> set NSPR_LOG_MODULES=ldap:5
> thunderbird.exe
> 
> If that gives you output, please attach examples of the Windows XP and Vista
> communications as attachments, rather than paste them into the comments.
> 
> I'm moving this to core->mailnews:ldap integration as that is a better location
> for this bug at the moment.
> 

Thank you for the clarification on where to run it as such.  Unfortunately, on the vista build, I only get:

Warning: Key event not available on GTK2: key="f" modifiers="accel, shift"
Source File: chrome://messenger/content/addressbook/addressbook.xul
Line: 0

When typing in an entry before hitting enter.  That's all I see in the Error Console.  Please let me know if I'm looking in the wrong place, as I'd really like to help. :)

Unfortunately, the XP machine I had access to with this wasn't mine, so I'll see what I can do about installing a nightly on there and seeing what I can find.
> When typing in an entry before hitting enter.  That's all I see in the Error
> Console.  Please let me know if I'm looking in the wrong place, as I'd really
> like to help. :)

Opps, wrong console.

If you dig around in the menus, you'll hopefully find the equivalent of a command prompt that Windows XP has.

If you open that up, you should get a prompt like c:\>

Next enter:

cd "Program Files\Thunderbird\"

or the path to where thunderbird is installed.

Then enter:

set NSPR_LOG_MODULES=ldap:5
thunderbird.exe >c:\temp\ldapLog.txt

Once you've finished running thunderbird, have a look at ldapLog.txt in the temp directory on the c drive and it should have a whole load of text in it.
(In reply to comment #3)
> > When typing in an entry before hitting enter.  That's all I see in the Error
> > Console.  Please let me know if I'm looking in the wrong place, as I'd really
> > like to help. :)
> 
> Opps, wrong console.
> 
> If you dig around in the menus, you'll hopefully find the equivalent of a
> command prompt that Windows XP has.
> 
> If you open that up, you should get a prompt like c:\>
> 
> Next enter:
> 
> cd "Program Files\Thunderbird\"
> 
> or the path to where thunderbird is installed.
> 
> Then enter:
> 
> set NSPR_LOG_MODULES=ldap:5
> thunderbird.exe >c:\temp\ldapLog.txt
> 
> Once you've finished running thunderbird, have a look at ldapLog.txt in the
> temp directory on the c drive and it should have a whole load of text in it.
> 

Thank you for the clarification.  I went ahead into cmd, created the temp directory, set the environment variable there, and ran thunderbird with output captured to ldapLog.txt like you demonstrated.  Unfortunately, the file that is generated is 0 bytes in length.

I am having an interesting issue happen with this build, however.  Even after I exit the program, thunderbird is present in the windows task manager.  I have to go ahead and kill the process manually for it to exit out.  I was wondering if this would have anything to do with the file being 0 bytes long, or if there is anything else I can do with this on Vista.

If not, would getting ldap logs from a machine with XP still help?

Thanks for your time!  
(In reply to comment #4)
> Unfortunately, the file that is
> generated is 0 bytes in length.
> 
Did you use version 1.5 or 3a1? Version 3a1 and any 2.0 nightly/alpha should work for the logging, 1.5 doesn't have it enabled. If you don't get anything with that sequence I said before and 3a1, then try just:

set NSPR_LOG_MODULES=ldap:5
thunderbird.exe

Probably won't help, but you never know.

You might be able to get more information from here if you hadn't found it already:

http://wiki.mozilla.org/MailNews:LDAP_Address_Books#LDAP_Logging
(In reply to comment #5)
> (In reply to comment #4)
> > Unfortunately, the file that is
> > generated is 0 bytes in length.
> > 
> Did you use version 1.5 or 3a1? Version 3a1 and any 2.0 nightly/alpha should
> work for the logging, 1.5 doesn't have it enabled. If you don't get anything
> with that sequence I said before and 3a1, then try just:
> 
> set NSPR_LOG_MODULES=ldap:5
> thunderbird.exe
> 
> Probably won't help, but you never know.
> 
> You might be able to get more information from here if you hadn't found it
> already:
> 
> http://wiki.mozilla.org/MailNews:LDAP_Address_Books#LDAP_Logging
> 

Yep, I'm using the nightly for setting the NSPR_LOG_MODULES flag, as I saw on the page you linked me that it wouldn't on 1.5.

One thing I noticed that's interesting when you asked me not to capture console output to a file is that when I run thunderbird, it kicks me back to the prompt right away like so:

c:\temp>cd "c:\program files\mozilla thunderbird test\"

c:\Program Files\Mozilla Thunderbird Test>set NSPR_LOG_MODULES=ldap:5

c:\Program Files\Mozilla Thunderbird Test>thunderbird.exe

c:\Program Files\Mozilla Thunderbird Test>

I did a little readding on the NSPR log function, and it seems that it works by using printf(). If that's the case, If I get the prompt back as soon as I run thunderbird, it wouldn't be able to print anything to the console anyway, right?

I get the feeling this may be why my log file was 0 bytes, too.
(In reply to comment #6)
> using printf(). If that's the case, If I get the prompt back as soon as I run
> thunderbird, it wouldn't be able to print anything to the console anyway,
> right?

I can't remember the specifics for Windows, however I've just remembered NSPR logging has built-in write to file. So if you try:

set NSPR_LOG_MODULES=ldap:5
set NSPR_LOG_FILE=C:\Temp\log.txt
thunderbird.exe

then it should internally log it to a file and shouldn't have to worry about the console ;-)
(In reply to comment #8)
> Created an attachment (id=231373) [edit]
> A log of attempting to do an LDAP query
> 

This looks reasonable, though obviously there are no apparent responses from the server. Do you know if Windows Vista have IP6 enabled by default?
I can replicate this bug on Thunderbird 1.5.0.5 (20060719) using Vista x86 build 5472 (post beta 2).

I also can confirm that IPv6 is installed and enabled by default on Vista.  In my case I have disabled the stack on my primary network interface... still no LDAP joy.
(In reply to comment #10)
> I can replicate this bug on Thunderbird 1.5.0.5 (20060719) using Vista x86
> build 5472 (post beta 2).
> I also can confirm that IPv6 is installed and enabled by default on Vista.  In
> my case I have disabled the stack on my primary network interface... still no
> LDAP joy.

Thanks for confirming that. It looks like this is a duplicate of bug 228439. Therefore I'm marking as such.

*** This bug has been marked as a duplicate of 228439 ***
Status: UNCONFIRMED → RESOLVED
Closed: 18 years ago
Resolution: --- → DUPLICATE
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: