View Single Post
  #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