Closed Bug 577006 Opened 15 years ago Closed 15 years ago

Can't access phone book.

Categories

(mozilla.org Graveyard :: Webdev, task)

x86
Windows 7
task
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jhopkins, Unassigned)

Details

Attachments

(2 files)

My LDAP login (john.hopkins@mozillamessaging.com) is failing against https://ldap.mozilla.org/phonebook/ Can you check my account and/or reset my password, please?
Your account did not have access to the phonebook. I enabled it, please try now and let me know if it doesn't work.
Assignee: server-ops → aravind
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Aravind, I still cannot login to the phonebook.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
justdave says my LDAP record is corrupted on at least 1 of the LDAP servers.
(In reply to comment #3) > justdave says my LDAP record is corrupted on at least 1 of the LDAP servers. The ldap entry looks fine. The app is somehow getting confused and throwing all sorts of errors.. To replicate the problem, go to "https://ldap.mozilla.org/phonebook/#search/john%20hopkins"
Summary: LDAP authentication failing → Can't access phone book.
Assignee: aravind → nobody
Component: Server Operations: Account Requests → Webdev
QA Contact: mrz → webdev
Depends on: 571881
Attachment #458446 - Flags: review?(abuchanan)
No longer depends on: 571881
Comment on attachment 458446 [details] [diff] [review] Make output-html.inc tread carefully Looks ok, but I didn't setup phonebook to test, so please test before pushing to production
Attachment #458446 - Flags: review?(abuchanan) → review+
I tested it on my side and it seems to run fine.
Just realized that the issue here is two-fold: 1. Some people have so little information on their entry that they cause the "offset undefined" error message(s) when they show up in a search result. The existing patch fixes that already. 2. The dot (.) character was not considered to be a valid username. A patch will shortly be attached that fixes this.
Comment on attachment 458798 [details] [diff] [review] Include dot (.) as a valid character in usernames I haven't tested, but if it fixes the problem then r+ It seems we have a lot of issues with this part of the app, and that parsing email addresses is more complicated than a custom regex can handle. Check this out, http://www.iamcal.com/publish/articles/php/parsing_email/ It explains just how difficult email regexps are, and includes code to properly split them up. You might consider using that instead.
Attachment #458798 - Flags: review?(abuchanan) → review+
A proper way to parse email addresses would only be needed when the email addresses allowed are not under our direct control. For example, we wouldn't need to parse route-addrs per RFC 822. The only reason we're even parsing email addresses is because we need some way to represent algorithmically how IT places an entry under which O of the mozilla Domain Component, which is so far reliably predictable.
Committed r71838.
Status: REOPENED → RESOLVED
Closed: 15 years ago15 years ago
Resolution: --- → FIXED
Product: mozilla.org → mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: