Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have a intranet portal that gives all sorts of reports to my people. The setup is mysql+php+ apache. In this setup, I have created a mysql table for my users. In this table, I have everybody's uid,encrypted password, their privileges etc. When some fellow logins I take his password, and take out a md5 hash of it, and then compare the uid and this md5 hash with the ones saved in my table, and authenticate them. Once authenticated, I save the uid, and other tit bits of the user in PHP session variables, so that once autheticated the user can access all the allowed data on the site without logging in again.
So far so good.
Now I have started squirrelmail on my server. But here the users who can assess the server have to be created in the OS. So I have created all the users in my FC1. In my opinion creating users in OS is very crude,and probabely insafe.
Now It is very typical that my users have to seperately log in with altogether independent uids, and passwords for accessing the portal, and for accessing the squirrelmail server. This is indeed highly undesirable- once a user logs in he should be able to what ever he desires, without logging out and logging in with different uid and password. I believe there is a way by which the authentication can be centralised.
But Sir, how can you do it ?
Please enlighten me. How do you authenticate you users ?
Further, I feel we have to look at the larger picture- this squirrel mail is but one of the examples. How do we go about authenticating users once and then allow him roam as per his class of service.
Authentication is simple: Squirrelmail gets the user's credentials with a form, and uses them to connect to the imap server, which is in charge of the authentication.
I'm not sure how to do 'roaming': Squirrelmail would need to use http authentication instead of its form, your web site would need to use http authentication too, (maybe mod_auth_mysql, or write your own implementation). All the scripts and parts of the web site have to be set to use the same http authentication relam, and the user will only type his password once.
Dear Sir Stephan,
What you say makes sense.
But inspite of my best efforts in digging I am unable to find as to how I can change the way the imap does the authrtication. Giving up, I decided upon using LDAP for authentication. For this I downloaded openldap, and tried to install it. It said there is Berkley DB version incompatibility. Then I did some research, I found out that I needed DBversion 4.2. I downloaded the same from sleepycats... Then I gave up becasue I felt it was a wild ghoose chase.
I decided to attack the original track - the imap doing authentication. I feel, that I can make imap use my authentication. For that I need to know how I imap is doing authentication.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.