Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id CE23B9F9FDA for ; Fri, 1 Dec 2006 05:57:59 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-new, port 10024) with ESMTP id 79770-05 for ; Fri, 1 Dec 2006 05:57:56 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4 Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.189]) by postgresql.org (Postfix) with ESMTP id CF4F89F942F for ; Fri, 1 Dec 2006 05:57:55 -0400 (AST) Received: by nf-out-0910.google.com with SMTP id x4so3607224nfb for ; Fri, 01 Dec 2006 01:57:54 -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=IPBh28DHUIzCiEQ+nPbxQPjQ2DxMsNtg4Mg2QclNICKD1cprVSvzzsKP7EXXHREZ+wc5nkjRnSgPt0CJkFAopaDOSpBfx+7QGYyuWVZ8jrLxvWLe7qY0cru/+i1sn6Hrgzs3Xmlj3/jrFOR3vW42F+Zy6JmttTbIPZ7z4MYr160= Received: by 10.49.41.3 with SMTP id t3mr4496463nfj.1164967074011; Fri, 01 Dec 2006 01:57:54 -0800 (PST) Received: from localhost.localdomain ( [193.204.167.87]) by mx.google.com with ESMTP id l22sm36424212nfc.2006.12.01.01.57.53; Fri, 01 Dec 2006 01:57:53 -0800 (PST) Date: Fri, 1 Dec 2006 11:57:43 +0100 To: "Heikki Linnakangas" Cc: pgsql-jdbc@postgresql.org Subject: Re: Authentication trick Message-Id: <20061201115743.288a566a.www.gmail.com@localhost.localdomain> In-Reply-To: <456FF683.7030705@enterprisedb.com> References: <20061130191032.fe2311a9.www.gmail.com@localhost.localdomain> <456FF683.7030705@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/5 X-Sequence-Number: 16237 > > some commercial softwares use a trick to avoid copy of a db, license-crack, etc. They use generate a key -> "ID of db-instance". For example, if you dump a db on other machine with postgres installed, this key will be different and so application will not start. > > PostgreSQL is not commercial, so there's no need for such artificial > restrictions. My application is commercial. It uses postgresql. I want include in my-app a "protection-trick" retrieving a some kind of "unique system_identifier". Your pg_control file could be good, but it's a "data-file". How can I extract infos from it? Around same dir I have found these infos: "myappdb" 20496 1663 3221455155 229682 Maybe are these the keys? Thanks, Giulio P.S.: sorry, now post became OT for "jdbc".