pginstaller - pginst: Check if the specified user has admin privileges,

From: mha(at)pgfoundry(dot)org (User Mha)
To: pgsql-committers(at)postgresql(dot)org
Subject: pginstaller - pginst: Check if the specified user has admin privileges,
Date: 2004-07-30 21:56:36
Message-ID: 20040730215636.2C3A92183F0@pgfoundry.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
Check if the specified user has admin privileges, and refuse to run in that case. Otherwise, we installed sometihng that didn't work.

Two different implementations - one "secure" for Windows XP and newer that is identical to the one in the backend, and one for 2000 that can be tricked by putting group-in-group-in-domain-in-group or something like that. Not likely though, in most cases it should catch it.

Modified Files:
--------------
pginst/ca:
pginstca.c (r1.13 -> r1.14)
(http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/pginstaller/pginst/ca/pginstca.c.diff?r1=1.13&r2=1.14)
pginstca.h (r1.1 -> r1.2)
(http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/pginstaller/pginst/ca/pginstca.h.diff?r1=1.1&r2=1.2)
user.c (r1.2 -> r1.3)
(http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/pginstaller/pginst/ca/user.c.diff?r1=1.2&r2=1.3)

Browse pgsql-committers by date

  From Date Subject
Next Message User Mha 2004-07-30 21:57:09 pginstaller - pginst: Remove the correct files at "make clean".
Previous Message User Mha 2004-07-30 19:09:30 pginstaller - pginst: Create user function.