Closed
Bug 120432
Opened 23 years ago
Closed 23 years ago
Need "use secure connection (SSL) checkbox in General Panel for LDAP addressbook / directory
Categories
(MailNews Core :: LDAP Integration, defect, P1)
Tracking
(Not tracked)
VERIFIED
FIXED
mozilla1.0
People
(Reporter: scottputterman, Assigned: srilatha)
References
()
Details
(Whiteboard: nab-ldap,[ADT2])
Attachments
(4 files, 4 obsolete files)
We need to add the Secure checkbox and the Logon checkbox to the Directory
Properties Dialog's General Panel. The LDAP spec will eventually be updated to
cover this.
Reporter | ||
Updated•23 years ago
|
Assignee | ||
Comment 1•23 years ago
|
||
I'm thinking that "Secure" might be misunderstood by some users to mean that
their data is secure. How about using "Secure Connection" instead ?
Wording suggestion for second check box: "Log in with user name and password".
Comment 3•23 years ago
|
||
In the IMAP and SMTP account panes, the preferred wording appears to be "Use
secure connection (SSL)" which I like.
no, because you can have a password protected session that isn't SSL.
Assignee | ||
Comment 8•23 years ago
|
||
patch for secure and Logon Checkboxes
Attachment #66976 -
Attachment is obsolete: true
Comment 9•23 years ago
|
||
*** Bug 124021 has been marked as a duplicate of this bug. ***
Updated•23 years ago
|
Whiteboard: nab-ldap
Comment 11•23 years ago
|
||
Discussed in Mail News bug mtg with Engineering QA Mktng PjM. Decided to ADT2
this bug.
Whiteboard: nab-ldap → nab-ldap,[ADT2]
Assignee | ||
Comment 12•23 years ago
|
||
Attachment #67777 -
Attachment is obsolete: true
Comment 13•23 years ago
|
||
looks good. some nits and concerns:
1)
var gPortNumber = 389;
+var gSecPortNumber = 636;
these should be constants.
const kDefaultLDAPPort = 389;
const kDefaultSecureLDAPPort = 636;
2)
+function onSecure()
+{
+ var port = document.getElementById("port");
+ if (document.getElementById("secure").checked) {
+ if(port.value == gPortNumber)
+ port.value = gSecPortNumber;
+ }
+ else if (port.value == gSecPortNumber)
+ port.value = gPortNumber;
+}
you've made it so we only switch to the default port if the user was using the
default port.
Note, that's now how we do it for servers in the account manager. I think we
should
be consistent.
3)
+ pref_string_content = login.checked;
+ gPrefInt.setBoolPref(pref_string_title, pref_string_content);
As we've discussed in other bugs, reading these LDAP prefs directly is ok. But
what
are the side effects of setting them directly, instead of going through the
DIR_Server code.
I'm concerned that any place in this code where you call a pref setter, it
would take affect immediately.
can you investigate and see if these setters only "take affect" after restart?
If this is an issue, I think we should spin it off to another bug, as there is
other setters in this same file
that we need to address at the same time.
4)
+ <checkbox id="secure" label="&directorySecure.label;"
+ accesskey="&directorySecure.accesskey;"
+ oncommand="onSecure();"/>
until the LDAP over SSL patch lands, we should add disable="true"
I'm confident LDAP over SSL will land, and when it does, we'll remove that.
But at least this gets the UI in.
5)
+ if (secure) {
+ ldapUrl.options |= ldapurl.OPT_SECURE;
+ port = 636;
+ }
+ else
port = 389;
please define constants, see #1.
6)
+ try {
+ port = gPrefInt.getIntPref(pref_string + ".port");
+ }
why is this named gPrefInt? That's a wacky name for the pref branch service.
I'm not saying you should
fix it, I'm just wondering why it is named that.
Comment 14•23 years ago
|
||
this blocks the LDAP over SSL feature.
I think adding the auth part of the UI will affect rdayal's LDAP replication
work as well.
Blocks: 107411
Comment 15•23 years ago
|
||
note to jglick: there might be a potential UI issue in here.
when we toggle secure / non-secure, we toggle the port.
unlike the account manager UI, the port UI is on a different tab, so the user
might not see it change.
perhaps it should be on the same tab as the secure / non-secure checkbox?
Assignee | ||
Comment 16•23 years ago
|
||
> you've made it so we only switch to the default port if the user was using the
> default port.
4.x behaves that way and I was trying to make it consistent with 4.x.
> can you investigate and see if these setters only "take affect" after restart?
> If this is an issue, I think we should spin it off to another bug, as there is
> other setters in this same file that we need to address at the same time.
The behaviour is similar to changing the hostname (as described in bug 124553).
I will disable both the checkboxes until we have the backend implementation.
And the name gPrefInt... Initially when this code was written, we were using
nsIPref interface and later it was changed to nsIPrefBranch /Service
> perhaps it should be on the same tab as the secure / non-secure checkbox?
I agree with Seth on this.
Comment 17•23 years ago
|
||
>perhaps it should be on the same tab as the secure / non-secure checkbox?
Is it important that the user actually see the port number change?
If so, the dialog needs to be made larger so Port can fit below Base DN.
Assignee | ||
Comment 18•23 years ago
|
||
> Is it important that the user actually see the port number change?
It is important that the user should know that the port # changed in the
following scenario:
If the user sets the port# to some value other than the default
Then changes the selection on the Secure checkbox which will change the port#.
Comment 19•23 years ago
|
||
>screen shot with port number in the general tab
Srilatha, is it possible to make the dialog wider horizontally? The text fields
should be long enough so that typical data entered in the text fields can be
viewed with having to scroll. It also looks like the dialog should be longer
vertically as well. The "Base DN" field looks like it supposed to be 2 lines but
only 1.5 lines would be visible. It should either be sized to display 1 full
line or 2 full lines. Thanks.
Comment 20•23 years ago
|
||
correction: ...withOUT having to scroll.
Assignee | ||
Comment 21•23 years ago
|
||
k, how does this look. Base DN field is only one line.
Attachment #77367 -
Attachment is obsolete: true
Comment 22•23 years ago
|
||
a side note, the secure checkbox is well understood, and once we've got a fix
for 107411 we'll need this UI.
the checkbox for using username / password is less understood, and can't be
shown until we figure these out:
When do we popup the prompt? do we do the same things as is 4.x? ask for
email and password to bind? do we need to take that email and anonymously
determine the bind dn from it? all unknowns right now, we need to look into
the 4.x code.
rajiv has added some code for auth for replication, see #128087.
we might need to combine / move that code around to be shared.
Comment 23•23 years ago
|
||
>k, how does this look. Base DN field is only one line.
Thanks for widening, looks good. Base DN still looks taller vertically than the
other text fields though.
Comment 24•23 years ago
|
||
>When do we popup the prompt?
When user attempts a search on an ldap directory.
Assignee | ||
Comment 25•23 years ago
|
||
Updated the patch based on Seth's comments. Also move port to the general tab.
and increased the width of the dialog.
Attachment #76800 -
Attachment is obsolete: true
Comment 26•23 years ago
|
||
Patch checked in on both branch and trunk with the fix for 107411. Note that
the "login" check box is currently hidden, since there's not yet code in the
backend to support it.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Comment 27•23 years ago
|
||
the login UI will be enabled as part of #135778.
Updating summary to reflect that this was only for
Summary: Need Secure and Logon checkboxes in General Panel → Need "use secure connection (SSL) checkbox in General Panel for LDAP addressbook / directory
Comment 28•23 years ago
|
||
Verified with 20020410 trunk builds on various platforms.
Status: RESOLVED → VERIFIED
Updated•20 years ago
|
Product: MailNews → Core
Updated•16 years ago
|
Product: Core → MailNews Core
You need to log in
before you can comment on or make changes to this bug.
Description
•