View Full Version : Using the usernames and passwords stored in ISPConfig
mphayesuk
29th March 2006, 16:47
Hi I think this thread might be best placed in the scripts page but I will start it here anyway.
What I am looking to do is password protect one of the pages in every customers web site.
So I want to use the usernames and passwords that they use to collect email which is stored in the ISPConfig table, just like the ubiemail does.
But I only want the users that are connected to that site to be able to get in and not have access to anyother web site password protected page.
So in short I am goint to have the same (more or less) page for every customer but only have the users that have been created for that site to have access to it by using their web mail username and password.
I am not a good php programmer so try and give me as many pointers as possible.
Thanks.
falko
29th March 2006, 21:03
Did you have a look at the password protection feature of ISPConfig? http://www.ispconfig.org/downloads/manual_en/manual_kunde_en_src.htm#4_4
mphayesuk
30th March 2006, 12:14
Ok, that seems to be a good solution, however is there a way to link the username and passwords with the ones used by the webmail.
I.E. the users dont need to remember two sets of usernames and passwords, if they change their password on the webmail the password for the protected folder is also changed.
Does this make sense????
If not then using the protected directory method will be fine.
Thanks
till
30th March 2006, 13:31
Hi I think this thread might be best placed in the scripts page but I will start it here anyway.
What I am looking to do is password protect one of the pages in every customers web site.
So I want to use the usernames and passwords that they use to collect email which is stored in the ISPConfig table, just like the ubiemail does.
But I only want the users that are connected to that site to be able to get in and not have access to anyother web site password protected page.
So in short I am goint to have the same (more or less) page for every customer but only have the users that have been created for that site to have access to it by using their web mail username and password.
I am not a good php programmer so try and give me as many pointers as possible.
If the page that shall be password protected is a php page, you can try to use one of the pop3 libraries available for PHP. Just use the login function for pop3 to test if the username / password combination is correct without retrieving email messages. If the password is correct, you can show the content of the page.
To exclude users from other domains you might have to do a lookup for the username / domain combination in the ISPConfig database too.
mphayesuk
3rd April 2006, 16:08
Ok.. how do I give/create a user that will only have "read only" rights to the ISPConfig MySQL database.
Thanks
mphayesuk
3rd April 2006, 18:13
A further note to this is there a way to specify specific access to certain tables ect...
Thanks
falko
3rd April 2006, 19:54
Have a look at the MySQL GRANT syntax: http://dev.mysql.com/doc/refman/5.0/en/grant.html
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.