Closed
Bug 1278281
Opened 8 years ago
Closed 8 years ago
autoconfig should have the secure ldap support
Categories
(Core :: AutoConfig (Mission Control Desktop), defect, P2)
Tracking
()
RESOLVED
FIXED
mozilla50
Tracking | Status | |
---|---|---|
firefox50 | --- | fixed |
People
(Reporter: karel-de-macil, Assigned: mkaply)
Details
Attachments
(1 file, 4 obsolete files)
1.34 KB,
patch
|
mkaply
:
review+
|
Details | Diff | Splinter Review |
User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:46.0) Gecko/20100101 Firefox/46.0 Build ID: 20160425115534 Steps to reproduce: trying to use a secure ldap server listening on port 636 with the function getLDAPAttributes Actual results: it failed cause the function is not designed to be use with a secure ldap server. The function should allow more configuration as telling if you want to use a secure ldap and the port where it listen. Expected results: the function getLDAPAttributes should work with a secure ldap server and have the argument to make it work. I join a patch who add 2 optionnal arguement to the getLDAPAttributes function. The patch make it possible to use a secure ldap server.
Assignee | ||
Comment 1•8 years ago
|
||
What is the port and protocol for a secure ldap server?
Assignee | ||
Comment 2•8 years ago
|
||
Thanks for your patch. I would rather see us default to the old behavior and only make changes for the new behavior. How often is the port/protocol for secure ldap different? Could we add a boolean that just specifies whether or not the connection is secure?
Reporter | ||
Comment 3•8 years ago
|
||
this is what happend with my function as the arguemnts i add are optionnal and set by default at the old behavior value . The only difference is that if you use more arguement you can change the default value and then make secure ldap work ... old call to the getLDAPAttributes was done like that : getLDAPAttributes( ldapHost, ldapBase, ldapFilter, ldapAttrs.join(",")) and generate this string : "ldap://ldapHost/...." my function still work with the old syntax the only difference is that the string generated is now : "ldap://ldapHost:389/..." which is pretty much the same as the default ldap port is 389 and my function can also be use with 2 optional argument as in the following : getLDAPAttributes( ldapHost, ldapBase, ldapFilter, ldapAttrs.join(","),"ldaps","636") in this case, the string generated is : "ldaps://ldapHost:636/..." which make the secure ldap connection possible (all the secure connection thing are allready present in the thunderbird core api it's juste the autoconfig js script who create the limitation.
Assignee | ||
Comment 4•8 years ago
|
||
If secure ldap is always on port 636 and secure ldap is ldaps, there's really not a need to add the additional parameters. I'd rather see a boolean that turns this on and does something like this: var urlSpec = "ldap" + (isSecure ? "s" : "") + "://" + host + (isSecure ? "636" : "") + "/" + base + "?" + attribs + "?sub?" + filter; This means the original behavior is unchanged and we only add stuff for the new behavior.
Reporter | ||
Comment 5•8 years ago
|
||
ok , if you think it's better this way no trouble i can submit a patch who will follow your wish. evantually and if you think it's usefull i can try to add authentication too. i will submit the "boolean" patch tommorrow . Thanks for your attention
Reporter | ||
Comment 6•8 years ago
|
||
Attachment #8760306 -
Attachment is obsolete: true
Assignee | ||
Comment 7•8 years ago
|
||
Nit: Could you add a space between attribs, isSecure? Otherwise this looks great. I'll get it checked in this week.
Reporter | ||
Comment 8•8 years ago
|
||
add a space between attribs and isSecure
Attachment #8760613 -
Attachment is obsolete: true
Assignee | ||
Comment 9•8 years ago
|
||
Sorry, I see one last thing. IT looks like quotes are missing around the s that's being added to ldap.
Reporter | ||
Comment 10•8 years ago
|
||
add the space
Reporter | ||
Comment 11•8 years ago
|
||
really remove the space
Attachment #8760785 -
Attachment is obsolete: true
Attachment #8760812 -
Attachment is obsolete: true
Reporter | ||
Comment 12•8 years ago
|
||
not the space, juste adds the quote. Time to sleep for me. should be ok now.
Assignee | ||
Updated•8 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
Priority: -- → P2
Assignee | ||
Updated•8 years ago
|
Attachment #8760817 -
Flags: review+
Assignee | ||
Updated•8 years ago
|
Keywords: checkin-needed
Comment 13•8 years ago
|
||
Pushed by cbook@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/47e94b41aba1 add SSL functionnality to ldap query in autoconf. r=mkaply
Keywords: checkin-needed
Comment 14•8 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/47e94b41aba1
Status: NEW → RESOLVED
Closed: 8 years ago
status-firefox50:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla50
You need to log in
before you can comment on or make changes to this bug.
Description
•