hi Thomas,

On Tue, Jun 13, 2006 at 01:20:51AM +0200, Thomas Huriaux wrote:
> Michael Ablassmeier <[EMAIL PROTECTED]> (12/06/2006):
> > On Mon, Jun 12, 2006 at 02:32:38PM +0200, Thomas Huriaux wrote:
> > > Your package currently configures a database using MySQL or PostgreSQL
> > > or both.
> > > 
> > > Therefore, it uses debconf to prompt users for information about the
> > > databases, database administrator, database name, etc.
> > > 
> > > A dedicated package for this task has been created recently by Sean
> > > Finney, named "dbconfig-common".
> > > 
> > > This package brings common methods for database servers interactions as
> > > well as standardized templates for prompting information.
> > 
> > hm, im sorry? The zabbix-server-mysql Package already uses said
> > dbconfig-common. The only packages asking for database user and so on
> > are the client/front-end packages which need to write those settings
> > into their config files,
> 
> I was indeed talking about this last one.
> 
> > but are unlikely installed on the same host as
> > the server package, therefore no debconf question sharing.
> 
> Why not? See the attached patch. Please note that (i) it's the first
> time I'm trying to use dbconfig-common, so there may be wrong things
> (it's mainly inspired from the cacti package) and (ii) the patch is
> incomplete, you should also remove the corresponding templates, run
> debconf-updatepo, etc. I haven't done it to reduce the size (and
> improve the readability) of the patch.

i've just had a quick look at your patch and i think the package *could*
use dbconfig-common, im just not sure if i want it. The first problem i
noticed was after a plain installation the login page *always* reported
about wrong Login name or password, even without submitting the form,
might be a problem with the require statement (in connection with the
session management), i have to take a closer look whats going on there.

Another problem i noticed is:

[..] 
 Setting up zabbix-frontend-php (1.1-4) ...
 [..]
 Creating config file /etc/zabbix/debian.php with new version
 granting access to database zabbixfrontendphp for [EMAIL PROTECTED]: already 
exists.
 creating database zabbixfrontendphp: already exists.  dbconfig-common: 
flushing administrative password
 dbconfig-common: flushing administrative password
 [..]
[..]

im not sure why dbconfig-common even *trys* to create a new database
(-user) here. However, when used, dbconfig-common always would need root
privileges on the mysql database for this (or privileges from another
user allowed to grant rights), which means the administrator has to
grant root access from remote hosts (if the frontend is installed on
another server), otherwise the package fails to install. 

bye,
    - michael


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to