G'day,

I'm try to develop a web manager function for OpenH323 Gatekeeper, which is
basically done apart from the user interface.

My problem is in manipulating the configuration file from the manager. I
basically tried to copy some similar things (eg the backup panel, and the
reboot panel), but it isn't going well. When I run my panel from the command
line (ie in off-line mode, without argument pairs), it looks like it is
reading the configuration database correctly, but it fails when run from the
web interface. Also, when I check if my key is present, it fails the db_set
call.

I have enclosed the code I'm using (currently without the calls to expand
templates and restart the gatekeeper, which hopefully should be fairly
trivial).

As a specific example, I have added the following entry to the config
database:
[root@victim /root]# grep openh323gk /home/e-smith/configuration
openh323gk=service|status|enabled

And when I run it from the command line (with a ^D)
[root@victim /root]# /etc/e-smith/web/functions/gatekeeper
(offline mode: enter name=value pairs on standard input)
Expires: Thu, 01 Apr 1982 04:51:20 GMT
Date: Wed, 27 Mar 2002 04:51:20 GMT
Content-Type: text/html

<html snipped from here>
<P>H.323 Gatekeeper is currently <b>enabled</b>
<more html snipped from here>

But when I run it from the web panel:
<snip>
<P>H.323 Gatekeeper ain't defined.</P>
<snip>

I can't see what is different, or why it doesn't work.

Can anyone point out the error?

Brad

Attachment: gatekeeper
Description: Perl program

--
Please report bugs to [EMAIL PROTECTED]
Please mail [EMAIL PROTECTED] (only) to discuss security issues
Support for registered customers and partners to [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Archives by mail and http://www.mail-archive.com/devinfo%40lists.e-smith.org

Reply via email to