Closed
Bug 538425
Opened 15 years ago
Closed 15 years ago
autoconfig ldap settings importing incorrectly
Categories
(Thunderbird :: Address Book, defect)
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 534822
People
(Reporter: lou, Unassigned)
Details
(Keywords: regression)
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.6) Gecko/20091201 Firefox/3.5.6 (.NET CLR 3.5.30729)
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.5) Gecko/20091204 Thunderbird/3.0
When setting LDAP settings in an autoconfig file the LDAP settings aren't importing correctly in Tbird 3.0. It works fine in 2.0.
I've been using the autoconfig for tbird setup just like the instructions in this link: https://developer.mozilla.org/index.php?title=en/MCD%2C_Mission_Control_Desktop_AKA_AutoConfig
If I have a thunderbird 3.0 install, and only modify the all.js to add the appropriate lines:
pref("general.config.obscure_value", 0);
pref("general.config.filename","tbirdadm.cfg");
Then I create LDAP settings in the tbirdadm.cfg such as:
defaultPref("ldap_2.servers.XXXXXX.auth.savePassword", true);
defaultPref("ldap_2.servers.XXXXXX.description", "XXXXXX");
defaultPref("ldap_2.servers.XXXXXX.filename", "ldap1.mab");
defaultPref("ldap_2.servers.XXXXXX.uri", "ldap://mail:389/o=ugdata??sub");
It doesn't work in Tbird 3.0. I get weird results. For instance the LDAP (XXXXXX) doesn't show up in the GUI under available addressbooks under account settings or options. If you go to the address book it doesn't show up on the left as available either. However if you write a new email and type a name it WILL pull names from the LDAP. This is a fresh profile so there are no entries in the personal or collected address books.
Reproducible: Always
Steps to Reproduce:
1.Setup an autoconfig file per: https://developer.mozilla.org/index.php?title=en/MCD%2C_Mission_Control_Desktop_AKA_AutoConfig
2.Enter in your ldap settings in the config file you specified.
3.Launch thunderbird for the first time so it creates a fresh profile, check if the LDAP is available.
Actual Results:
The assigned LDAP is not showing up in Thunderbird 3.0 GUI but Thunderbird 3.0 does query it when writing an email.
Expected Results:
The assigned LDAP should show up as a Directory Server option under settings and it should be avaible when you open the Address Book.
Hopefully I was clear enough and didnt miss anything but if I did I'll be happy to provide more information or try a few things out.
Lou,
Could you please try to start TB in safe mode
http://kb.mozillazine.org/Safe_mode
Maybe your problem is coming from an extension.
If problem is not coming back in safe mode, could you please give us list of
your extension.
Nightly Tester Tools extension may help you
https://addons.mozilla.org/en-US/thunderbird/addon/6543
Tools => Nightly Tester Tools => Copy List of Extensions to Clipboard
If problem is coming back in safe mode, could you please check your error
console (Tools => Error Console) and copy & paste any message in this bug
***********
I changed COMPONENT to Address Book based on https://wiki.mozilla.org/QA/Community/Bug_Watchers#Thunderbird_Components_-_Default_QA_Contact
**********
Component: Preferences → Address Book
QA Contact: preferences → address-book
Comment 2•15 years ago
|
||
Lou, are the ldap_2.servers.XXXXXX settings seen in Config Editor display?
Updated•15 years ago
|
Keywords: regression
(In reply to comment #1)
> Could you please try to start TB in safe mode
> http://kb.mozillazine.org/Safe_mode
> Maybe your problem is coming from an extension.
I'm running no extensions (no extensions are listed under Tools->Addons->extensions). Its a fresh install of Thunderbird with only the autoconfig settings added. I did try running it in Safe Mode though to see if that makes a difference, same results.
> If problem is coming back in safe mode, could you please check your error
> console (Tools => Error Console) and copy & paste any message in this bug
I opened Thunderbird having it create a fresh profile, went to the LDAP settings under options to confirm the problem was there. I then went to the Error Console and there are no errors listed.
(In reply to comment #2)
> Lou, are the ldap_2.servers.XXXXXX settings seen in Config Editor display?
I confirmed that the settings do indeed show up in Config Editor just as they do for a working Thunderbird 2.0 install.
One thing I forgot to mention is that when I go to the Directory Server options it doesn't show "None" as selected but instead shows a blank entry. If I click "Edit Directories" there is no blank entry to edit.
Comment 4•15 years ago
|
||
(In reply to comment #1)
To cantalou:
This bug is spin-off of bug 534822 comment #15 & bug 534822 comment #17 & bug 534822 comment #19. Please read all Lou(bug opener of this bug)'s comments in bug 534822.
Comment 5•15 years ago
|
||
(In reply to comment #0)
> https://developer.mozilla.org/index.php?title=en/MCD%2C_Mission_Control_Desktop_AKA_AutoConfig
The web page says;
> Thunderbird
> Support of AutoConfig and LDAP Calls
> Unfortunatly AutoConfig Option and LDAP Support for autoconfig (getLDAPAttributes) is not present in Fedroa11 default thunderbird package (thunderbird-3.0-2.3.beta2.fc11.src.rpm) .
> So we need to patch and recompile that source RPM
> (check https://bugzilla.mozilla.org/show_bug.cgi?id=295329
Bug 295329 is currently set as "Product:Firefox" and "Platform:Linux".
Bug 295329 is applicable to Thunderbird and all platforms?
(In reply to comment #5)
> Bug 295329 is currently set as "Product:Firefox" and "Platform:Linux".
> Bug 295329 is applicable to Thunderbird and all platforms?
That Bug report is pretty old (2005?) and I have had no problems with using autoconfig or getLDAPAttributes in Thunderbird 2 on Windows. It also appears getLDAPattributes is working in 3.0 as its pulling the user's name for there account settings fine. I haven't done any testing on Linux since unfortunately we don't use that here.
I've revisited this a few times and I actually found a workaround. If I change one of the LDAP settings to be locked then things work correctly. So for instance:
defaultPref("ldap_2.servers.XXXXXX.auth.savePassword", true);
lockPref("ldap_2.servers.XXXXXX.description", "XXXXXX");
defaultPref("ldap_2.servers.XXXXXX.filename", "ldap1.mab");
defaultPref("ldap_2.servers.XXXXXX.uri", "ldap://mail:389/o=ugdata??sub");
Having that one preference locked (doesn't seem to matter which LDAP setting I lock) then it all works happily. Strange. :)
Comment 8•15 years ago
|
||
I can confirm that same issue is present in the Linux thunderbird 3.0 (I use autoconfig for my company setup and our autoconfig ldap prefs that work perfectly in tb 2.0 don't appear for brand new tb profiles using tb3 (no extensions or other factors at work I've tried removing ~/.thunderbird completely before testing the autoconfig)).
It also occurs for seamonkey 2.0
Lou's workaround of locking one pref works for me as well. (with the prefs all set to defaultPref no ldap for new profiles, set one ldap pref to lockPref and the ldap prefs appear).
Comment 9•15 years ago
|
||
Sorry Lou, I've now been able to confirm that this is the same issue as bug 534822, so I'm marking it as duplicate. I should have a patch up there shortly.
Status: UNCONFIRMED → RESOLVED
Closed: 15 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•