Closed Bug 121332 Opened 24 years ago Closed 24 years ago

AutoConfig: ProcessLDAPvalues doesn't seem to be implemented

Categories

(Core :: Preferences: Backend, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

VERIFIED FIXED
mozilla1.0.1

People

(Reporter: lrg, Assigned: bnesse)

References

Details

(Keywords: regression, Whiteboard: custrtm+ [adt1 rtm])

Attachments

(2 files, 1 obsolete file)

At this point i am not sure if this is a simple documentation error, or if the code wasn't put in. I believe that we are able to issue a call from inside of autoconfig to the LDAP servers, however it seems as though the data that is being returned isn't being used. Previously this was handled with the processLDAPvalues function, however, nothing seems to work now.
Reassigning to myself as QA
QA Contact: sairuh → lrg
The documentation (refering to the draft of the Factory documentation pg. 9-10) indicates that the following functions as defined (in prefcalls.js): - getLDAPAttributes(host, base, filter, attribs) - getLDAPValue(str, key) This documentation offers up some sample code, including a function named processLDAPValues(), which the user is expected to supply as a callback function. Looking at the code, it appears that the actual function being called by getLDAPAttributes() may be getQueryResults(url), not processLDAPValues(url). Please try supplying a callback with that name instead.
Summary: ProcessLDAPvalues doesn't seem to be implemented → AutoConfig: ProcessLDAPvalues doesn't seem to be implemented
I have tried testing it using this code: function getQueryResults(aresult) { var homepage = getLDAPValue(aresult, "webpage"); lockPref("browser.startup.homepage",homepage); var uid = getLDAPValue(aresult,"uid"); lockPref("aim.session.screenname", uid); } But it isn't working. Can you see anything wrong with this code? If not then i don't think we have found the solution we need.
Then something is probably missing. It would be helpful if you could attach a testcase that worked before the AutoConfig module breakout to the bug.
This attachment is a .jsc file which worked in the older implementation of autoconfig.
The old implementation can be seen in the 20011019 branch build (among others.)
Keywords: nsbeta1, regression
This feature was functional in the 6.2 release, but doesn't seem to be working now.
Has there been any change here?
Target Milestone: --- → Future
Keywords: nsbeta1nsbeta1-
Stefanie meet the same question with netscape 622 solaris version when she want to deploy netscape6 internal. so my question is does netscape 6 has passed enterprise deploy test?
Is this feature working on the existing 6.2.2 release on the Window platform? If so, is the .jsc file in attachment 66837 [details] a working version for the 6.2.2 release? Thanks.
I have just re-verified that the 6.2.2RTM build has the LDAP functionality implemented. (The jsc file that is attached to this bug functions as we expect it to.) I hope that helps
Hi Jerry: Can you do a test with the exact same jsc file (with needed modification) using the Solaris 6.2.2 candidate? You may have done that before, but if it works for the window platform according to lrg@netscape.com, then I would expect it to work on ours. Thanks.
It works for me with netscape 6.2.2 for solaris and for windows.
http://bugzilla.mozilla.org/show_bug.cgi?id=75955 Another bug which matches the description.
nraya: 75955 was the original implementation bug that tracked the implementation of this feature. This appears to be a regression of that bug.
keyword back to nsbeta1 for nomination for rtm.
Keywords: nsbeta1-nsbeta1
Blocks: 144547
Put this bug on the rtm watch radar.
Whiteboard: custrtm+
Hi, Brian: do we have a clue of what regressed this and how hard it is to fix this bug? This feature used to work and now it doesn't :-\
This call is important for enterprise deployment. We do need this regression to be fixed by rtm. Thanks.
Tao, in short, no. The basic code to support it seems to be there. Why it doesn't work is anybody's guess.
This is a showstopper for SBS.
Changing the target milestone to 1.0.1. This is a regression which we will need for enterprise deployment.
Target Milestone: Future → mozilla1.0.1
Depends on: 104931
Attached patch Patch (obsolete) — Splinter Review
Patch to re-enable LDAPQuery and make AutoConfig errors localizable.
Dan, can you r= this? Alec, can you sr? This is a RTM Blocker. Thanks.
Status: NEW → ASSIGNED
Depends on: 141035
Comment on attachment 86835 [details] [diff] [review] Patch you should be using bundle.formatStringFromName() rather than msg.replace and so forth. also, what happens if the user hasn't defined processLDAPValues()?
Attachment #86835 - Flags: needs-work+
Attached patch Better patch.Splinter Review
Patch which appropriately uses formatStringFromName (sorry...my bad). As discussed with Alec, if the user doesn't supply the callback, it will throw a JavaScript exception which will cause the error to be reported to the user... which is what we would want to happen. To summarize long discussion with Alec. This bug is a regression of bug 75955 (the original implementation), caused by the checkin for bug 89137 (which seperated AutoConfig out into it's own module). The regression occurred during the translation of the LDAP code from C++, in the original implementation, to the current JavaScript implementation. This checkin will in no way negatively affect users of 6.2. It works in 6.2 it will work in 7 (with this patch). It just didn't work in between...
Attachment #86835 - Attachment is obsolete: true
Comment on attachment 86856 [details] [diff] [review] Better patch. sr=alecf
Attachment #86856 - Flags: superreview+
adding various keywords to get it on the rtm radar. Nominating adt1.0.1 because it looks like it has a r=/sr= patch. If it still needs work then please remove the adt1.0.1. Thanks for fixing this so quickly
Keywords: nsbeta1adt1.0.1, nsbeta1+
Whiteboard: custrtm+ → custrtm+ [adt1 rtm]
No longer depends on: 104931
Keywords: mozilla1.0.1
adding adt1.0.1+. Please get drivers approval before checking into the branch.
Keywords: adt1.0.1adt1.0.1+
Checked in on the trunk.
Closing as fixed on trunk.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Thank you for the fix, Brian. Would this fix go in to the 1.0.1 branch?
Margaret, I am currently waiting for drivers approval to land on the branch.
Thanks for the update, Brian.
Attachment #86856 - Flags: approval+
please checkin to the 1.0.1 branch. once there, remove the "mozilla1.0.1+" keyword and add the "fixed1.0.1" keyword.
I have been able to verify this fix in the trunk using the 06/17 build
Status: RESOLVED → VERIFIED
Patch checked in to the 1.0 branch.
Keywords: verified1.0.1
Keywords: fixed1.0.1
Verified on WindowsXP, MacOSX, and Red Hat Linux 7
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: