Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 29th March 2006, 15:47
mphayesuk mphayesuk is offline
Senior Member
 
Join Date: Sep 2005
Location: UK, East Midlands
Posts: 517
Thanks: 1
Thanked 3 Times in 3 Posts
Send a message via MSN to mphayesuk
Default Using the usernames and passwords stored in ISPConfig

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.
Reply With Quote
Sponsored Links
  #2  
Old 29th March 2006, 20:03
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

Did you have a look at the password protection feature of ISPConfig? http://www.ispconfig.org/downloads/m...en_src.htm#4_4
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 30th March 2006, 11:14
mphayesuk mphayesuk is offline
Senior Member
 
Join Date: Sep 2005
Location: UK, East Midlands
Posts: 517
Thanks: 1
Thanked 3 Times in 3 Posts
Send a message via MSN to mphayesuk
Default

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
Reply With Quote
  #4  
Old 30th March 2006, 12:31
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 34,573
Thanks: 792
Thanked 4,980 Times in 3,901 Posts
Default

Quote:
Originally Posted by mphayesuk
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.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 3rd April 2006, 15:08
mphayesuk mphayesuk is offline
Senior Member
 
Join Date: Sep 2005
Location: UK, East Midlands
Posts: 517
Thanks: 1
Thanked 3 Times in 3 Posts
Send a message via MSN to mphayesuk
Default

Ok.. how do I give/create a user that will only have "read only" rights to the ISPConfig MySQL database.

Thanks
Reply With Quote
  #6  
Old 3rd April 2006, 17:13
mphayesuk mphayesuk is offline
Senior Member
 
Join Date: Sep 2005
Location: UK, East Midlands
Posts: 517
Thanks: 1
Thanked 3 Times in 3 Posts
Send a message via MSN to mphayesuk
Default

A further note to this is there a way to specify specific access to certain tables ect...

Thanks
Reply With Quote
  #7  
Old 3rd April 2006, 18:54
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
 
Default

Have a look at the MySQL GRANT syntax: http://dev.mysql.com/doc/refman/5.0/en/grant.html
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
new ISPConfig 3 SVN repository till Developers' Forum 3 5th November 2005 12:07


All times are GMT +2. The time now is 19:27.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.