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 24th August 2007, 22:45
catdude catdude is offline
Senior Member
 
Join Date: Jun 2007
Posts: 178
Thanks: 1
Thanked 12 Times in 11 Posts
Default Working through the ISPConfig source code

I am looking through the ISPConfig and Remote Framework source code in detail, trying to develop a feel for how a lot of things are done. Right now I'm working through the user addition process.

I've walked through the Remote Framework code. Speficially in config_web.lib.php, I'm looking at the user_add function. I am following what it's doing right up til line 875. I assume this is creating an event to signal ISPConfig to write the added info out to the required disk files.

I am also looking at writeconf.php, around lines 150 through 192. It looks like this is the function that gets called to write out the Postfix virtusertable file. The code in scripts/lib/classes/ispconfig_postfix.lib.php, function make_virtusertable, seems clear enough. What I am not seeing so far is where the mail user info gets written to /etc/passwd. Can anyone point me to that part of the code?

My purpose for this is to troubleshoot the Remote Framework. As I posted last week, I can view records using the Framework but I am not able to add clients, webs, or users. I'd like to figure out why, and possibly even figure out a way to perform these actions by doing direct manipulation of the MySQL databases, just as user_add does, then call the required functions to get the new data flushed to the appropriate disk files.

Any help that any of you can offer to a confused Perl programmer doing his first serious PHP work would be greatly appreciated.
Reply With Quote
Sponsored Links
  #2  
Old 25th August 2007, 08:38
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 35,771
Thanks: 821
Thanked 5,331 Times in 4,183 Posts
 
Default

Quote:
What I am not seeing so far is where the mail user info gets written to /etc/passwd.
Have a look at the user_insert and user_update functions in /root/ispconfig/scripts/lib/classes/config.lib.php

Quote:
My purpose for this is to troubleshoot the Remote Framework. As I posted last week, I can view records using the Framework but I am not able to add clients, webs, or users. I'd like to figure out why, and possibly even figure out a way to perform these actions by doing direct manipulation of the MySQL databases, just as user_add does, then call the required functions to get the new data flushed to the appropriate disk files.
To debug this, you dont have to look at any files in /root/ispconfig. Just look at the files in /home/admispconfig/lib/classes/, especially ispconfig_web.lib.php and ispconfig_isp_user.lib.php which is the action class called by ispconfig_web.lib.php when a user is inserted.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
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
fastcgi and php with ispconfig tosser Installation/Configuration 14 18th January 2009 13:41
ISPConfig stopped working malder General 3 8th December 2006 10:22
ISPConfig firewall issue dwyoung Installation/Configuration 5 12th December 2005 10:26
Everything installed and working : The journey begins... happyhd Installation/Configuration 13 1st November 2005 17:38
ISPconfig not working Venkatesh.S Installation/Configuration 2 28th July 2005 13:28


All times are GMT +2. The time now is 05:12.


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