I am creating a web based system for users to check their mail. this involves three separate machines (ldap, web, pop).
so far what i have is:
- a user authenticates through apache mod_auth_ldap to access the directory.
- the script takes their username from %ENV and asks the ldap server what their mail password is.
- the script checks their mail headers from the pop server and shows the user a list of from/subject etc for them to click on
- clicking on an email calls a new script that starts the process all over again, grabbing the email password from ldap and the complete mail that the user wants to read.
potentially there could be ~150k users of this system, though i figure the actual usage will be MUCH lower. at this point i'm only being asked to produce something that 'works,' e.g. i am supposed to worry about scalability later. i have something that works, but i would like to worry about scaling now to save myself future troubles.
the first major problem i saw is that i have to grab the password from ldap every time i want to do something. i'm not sure of the best way to avoid this. the second script isn't called from a form. it's just passed a message number to download. i could hack mod_auth_cgi to put the password in the environment, but that seems like a bad idea for some reason.
i've used zope before and i think it solves some of my problems, but i didn't really like using it at all. maybe it has improved or there is something better out there.
i am wondering what potential problems/solutions you might know about from experience with such a system.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.