Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 61A099FA173 for ; Fri, 1 Dec 2006 07:14:50 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-new, port 10024) with ESMTP id 62337-01 for ; Fri, 1 Dec 2006 07:14:41 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4 Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.173]) by postgresql.org (Postfix) with ESMTP id 40F909FA12B for ; Fri, 1 Dec 2006 07:14:45 -0400 (AST) Received: by ug-out-1314.google.com with SMTP id k3so2149873ugf for ; Fri, 01 Dec 2006 03:14:43 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:date:to:cc:subject:message-id:in-reply-to:references:x-mailer:mime-version:content-type:content-transfer-encoding:from; b=a1bMpnLx38nT+gzXwrfPVpmbLIGMsKxenb6y49Npabo95pCZ5btgg3kRTpWMljj1GSYhBX4k6o9ntcDxIzDQGcsUzX7l0Jm0CQoEUrYOW1N7Eowmi3aFZdSuDLBQOaZwrACQOZvtO4iNn5SGQ50C947yyOpnzIIXyKQijxLP1O8= Received: by 10.67.106.3 with SMTP id i3mr7035104ugm.1164971683426; Fri, 01 Dec 2006 03:14:43 -0800 (PST) Received: from localhost.localdomain ( [193.204.167.87]) by mx.google.com with ESMTP id q40sm21549362ugc.2006.12.01.03.14.42; Fri, 01 Dec 2006 03:14:43 -0800 (PST) Date: Fri, 1 Dec 2006 13:14:29 +0100 To: "Heikki Linnakangas" Cc: Subject: Re: Authentication trick Message-Id: <20061201131429.87e1956f.www.gmail.com@localhost.localdomain> In-Reply-To: <45700839.4090000@enterprisedb.com> References: <20061130191032.fe2311a9.www.gmail.com@localhost.localdomain> <456FF683.7030705@enterprisedb.com> <20061201115743.288a566a.www.gmail.com@localhost.localdomain> <45700839.4090000@enterprisedb.com> X-Mailer: Sylpheed version 2.3.0beta5 (GTK+ 2.8.20; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit From: "antongiulio05@gmail.com" X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200612/8 X-Sequence-Number: 16240 Hi Heikki > You don't want to forbid your users to restore from a backup, do you? Yes I want! This is a (painful) trick:) I want to avoid not authorized dump/restore in other machines (a single customer pays for remote upgrading of his db-infos). If you want dump/restore backup you will contact me - I'll enable new user-authentication based on new "unique-key-from-db" but will disable old key. You pay for one db not 2,3,..... one db:one license Obviously this is a real pain the ass for restore (but we are thinking to authomatize it with: unlock-new-key/lock-old-key). Problem now is how to retrieve this unique-key:) > I'd recommend trusting your users instead of adding limitations like > that. They can be a real pain the ass if you're user wants to move his > database to another server, run a warm-standby, backup/restore, run in a > virtualized environment etc. and you don't want to cause hardship like > that to your customers, do you? > > If you still want to add a server key etc, I'd suggest creating user > defined function that extracts a system identifier from somewhere else > than the database. Thanks, Giulio