Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 9E419200B71 for ; Wed, 17 Aug 2016 00:32:18 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 9CD9D160ABA; Tue, 16 Aug 2016 22:32:18 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id E2BD9160AA8 for ; Wed, 17 Aug 2016 00:32:17 +0200 (CEST) Received: (qmail 69729 invoked by uid 500); 16 Aug 2016 22:32:17 -0000 Mailing-List: contact users-help@archiva.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@archiva.apache.org Delivered-To: mailing list users@archiva.apache.org Received: (qmail 69717 invoked by uid 99); 16 Aug 2016 22:32:16 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Aug 2016 22:32:16 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 770BAC0957 for ; Tue, 16 Aug 2016 22:32:16 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 4.001 X-Spam-Level: **** X-Spam-Status: No, score=4.001 tagged_above=-999 required=6.31 tests=[HEADER_FROM_DIFFERENT_DOMAINS=0.001, KAM_LAZY_DOMAIN_SECURITY=1, RDNS_NONE=3] autolearn=disabled Received: from mx2-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id t8uVM6eBZgBK for ; Tue, 16 Aug 2016 22:32:15 +0000 (UTC) Received: from blaine.gmane.org (unknown [195.159.176.226]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with ESMTPS id E04975F479 for ; Tue, 16 Aug 2016 22:32:14 +0000 (UTC) Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1bZmu4-0008CC-Uj for users@archiva.apache.org; Wed, 17 Aug 2016 00:32:12 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: users@archiva.apache.org From: =?UTF-8?B?SsO2cmc=?= Schaible Subject: Re: Archiva 2.2.x, resetting password Date: Wed, 17 Aug 2016 00:32:05 +0200 Lines: 37 Message-ID: References: Reply-To: joerg.schaible@gmx.de Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8Bit X-Complaints-To: usenet@blaine.gmane.org User-Agent: KNode/4.14.10 archived-at: Tue, 16 Aug 2016 22:32:18 -0000 Hi Thad, Thad Humphries wrote: > Despite earlier efforts to get Archiva to stop requiring password reset, > it's done it again. Now neither user nor admin can get in and the "Reset > Password" button seems to do nothing. > > How can I clear the old passwords and reset the admin and users? Or (as > done at least once before) must I blow it all away an reinstall? > > Can't this "feature" be disable? There is *at most* only two of using > this. I had also a very annoying fight with this and I am only one. I found finally a location to turn the expiration off (at least I hope so): ================ %< =============== $ sudo cat /var/lib/archiva/security.properties security.policy.password.previous.count=0 security.policy.password.expiration.enabled=false ================ %< =============== However, I was in the same situation as you and I finally created a new DB for the Archiva users, configured Archiva to use that one instead and let it recreate an admin and guest user (note, you have to turn off password expiration before). Then I exported the two JDOUSER* tables, dropped anything in these tables of the original DB and imported the data. After that I configured Archiva to use the original User DB again. Now I could login as admin again and was able to recreated my user. Note: Always shut down Tomcat before you change something in the DB. Hope this works for you also. Cheers, Jörg