Return-Path: X-Original-To: apmail-cloudstack-dev-archive@www.apache.org Delivered-To: apmail-cloudstack-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 598C711409 for ; Wed, 25 Jun 2014 19:28:53 +0000 (UTC) Received: (qmail 49936 invoked by uid 500); 25 Jun 2014 19:28:53 -0000 Delivered-To: apmail-cloudstack-dev-archive@cloudstack.apache.org Received: (qmail 49892 invoked by uid 500); 25 Jun 2014 19:28:52 -0000 Mailing-List: contact dev-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list dev@cloudstack.apache.org Received: (qmail 49881 invoked by uid 99); 25 Jun 2014 19:28:52 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Jun 2014 19:28:52 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of ian@ianduffy.ie designates 209.85.216.47 as permitted sender) Received: from [209.85.216.47] (HELO mail-qa0-f47.google.com) (209.85.216.47) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Jun 2014 19:28:47 +0000 Received: by mail-qa0-f47.google.com with SMTP id hw13so1911771qab.6 for ; Wed, 25 Jun 2014 12:28:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=EOjqbEOK6POACJ7rmQHVLNkpV+M7gfPNS8Grl+coTDs=; b=CPt2oRxSK5sSsZOELIt2T6ZeMZmjWRzPC9rn9dPRp88ux1mKwnPlgQORLfCIP8Nzcw deEvcL7n/Ba+ccjZsYu6Q7ceFt5iQ5wJp9CjGq2pdtfRpa8FPw10vlRK9BjpQkD+XIFo Nc9XKLQ0gfUENc1PzW/BB+Zz0ZPlD21ZYoYuIBIDaocyHflIH0aD0i39/xl/5oHPn5cm NjvaCyOAPxiHptSTiG1jxtrrAMyPdo/muogCvXPVH25aZac4yc7JAqEMi1C4BGWfCNR6 U0l08EK55bE0MOW0xO7hFJoHOaRqoSpXi/yllXplai8xhBYWSpL6Zmh4LGr1D1PH20RG /aRw== X-Gm-Message-State: ALoCoQlXWrjkI6lBdhGcSsqjXpzlMjG7tc0DcjKrNYvr+MZXyV2WaeR7CdRHz3HMBWPkk6TDUQGy MIME-Version: 1.0 X-Received: by 10.224.115.3 with SMTP id g3mr2480196qaq.9.1403724507309; Wed, 25 Jun 2014 12:28:27 -0700 (PDT) Received: by 10.96.157.200 with HTTP; Wed, 25 Jun 2014 12:28:27 -0700 (PDT) X-Originating-IP: [80.111.117.20] In-Reply-To: References: <1050158658.2812.1403712979420.JavaMail.zimbra@li.nux.ro> <1800049720.2814.1403713018769.JavaMail.zimbra@li.nux.ro> <1740983448.2901.1403715961231.JavaMail.zimbra@li.nux.ro> <973544562.2925.1403716472326.JavaMail.zimbra@li.nux.ro> <53AB0731.4020805@gmail.com> <1390159963.3070.1403718655187.JavaMail.zimbra@li.nux.ro> Date: Wed, 25 Jun 2014 20:28:27 +0100 Message-ID: Subject: Re: What to modify to increase instance password length? From: Ian Duffy To: CloudStack Dev Content-Type: multipart/alternative; boundary=047d7bdc96b09f20b904fcae1418 X-Virus-Checked: Checked by ClamAV on apache.org --047d7bdc96b09f20b904fcae1418 Content-Type: text/plain; charset=UTF-8 :( Get them solved? Fixed a styecheck issue in 2bb12f2a85c8497a15cd7b17099aefbd7c486f9b needed to remove unused imports. On 25 June 2014 20:24, Daan Hoogland wrote: > c70cadff0e3d70f625e7160a3aee600a3198cc67 in 4.4 it had conflicts in the > sql:( > > On Wed, Jun 25, 2014 at 8:53 PM, Ian Duffy wrote: > > Just pushed a change for this to the 4.4-forward branch. > > > > Daan, will you review / cherrypick? > 96412e3e58fd1ced9d269e4552aaa6410bedf556 > > > > Testing done: > > > > Brought up simulator. > > > > Changed password flag for the builtin template. > > > > Brought up VM, password was displayed at length of 6. Stopped the VM, > reset > > the password, new password was displayed at length of 6. > > > > Went into global settings, modified the value for vm.password.length to > 20. > > Restarted the management server. > > Created a new VM, password was displayed at length of 20. Stopped the VM, > > reset the password, new password was displayed at length of 20. > > > > Thanks, > > > > Ian > > > > On 25 June 2014 18:50, Nux! wrote: > > > >> Volunteer to do it in time for 4.4? > >> > >> Lucian > >> > >> -- > >> Sent from the Delta quadrant using Borg technology! > >> > >> Nux! > >> www.nux.ro > >> > >> > >> ----- Original Message ----- > >> From: "ilya musayev" > >> To: dev@cloudstack.apache.org > >> Sent: Wednesday, 25 June, 2014 6:30:25 PM > >> Subject: Re: What to modify to increase instance password length? > >> > >> You should ask if this can be done as global setting variable - not hard > >> coded. > >> > >> This should be an easy one. > >> > >> On 6/25/14, 10:14 AM, Nux! wrote: > >> > I should submit a bug report to rewrite ACS in a scripting language. > >> > > >> > Cheers :) > >> > > >> > -- > >> > Sent from the Delta quadrant using Borg technology! > >> > > >> > Nux! > >> > www.nux.ro > >> > > >> > > >> > ----- Original Message ----- > >> > From: "Ian Duffy" > >> > To: "CloudStack Dev" > >> > Sent: Wednesday, 25 June, 2014 6:11:23 PM > >> > Subject: Re: What to modify to increase instance password length? > >> > > >> > Afaik yes. (Will to be corrected on this but it appears to be hard > coded) > >> > > >> > > >> > On 25 June 2014 18:06, Nux! wrote: > >> > > >> >> Thanks, Ian, > >> >> > >> >> This means I need to modify the source, rebuild the RPMs and update, > >> >> right? (ie it's not something that I can just modify on the mgmt > server > >> >> right now). > >> >> > >> >> Lucian > >> >> > >> >> -- > >> >> Sent from the Delta quadrant using Borg technology! > >> >> > >> >> Nux! > >> >> www.nux.ro > >> >> > >> >> > >> >> ----- Original Message ----- > >> >> From: "Ian Duffy" > >> >> To: "CloudStack Dev" > >> >> Sent: Wednesday, 25 June, 2014 6:02:12 PM > >> >> Subject: Re: What to modify to increase instance password length? > >> >> > >> >> Hi Lucian, > >> >> > >> >> Take a look at server/src/com/cloud/server/ManagementServerImpl.java > >> >> > >> >> Line 895 - 898 > >> >> > >> >> @Override > >> >> public String generateRandomPassword() { > >> >> return PasswordGenerator.generateRandomPassword(6); > >> >> } > >> >> > >> >> > >> >> > >> >> > >> >> On 25 June 2014 17:16, Nux! wrote: > >> >> > >> >>> Hi guys, > >> >>> > >> >>> Can anyone tell me which changes I should make in order to increase > >> >>> password length for instances? > >> >>> Currently I get something like "tK2yptbby" which might have been > secure > >> >> 10 > >> >>> years ago, but now it's way too short. > >> >>> > >> >>> Thanks! > >> >>> Lucian > >> >>> > >> >>> -- > >> >>> Sent from the Delta quadrant using Borg technology! > >> >>> > >> >>> Nux! > >> >>> www.nux.ro > >> >>> > >> >>> > >> > >> > > > > -- > Daan > --047d7bdc96b09f20b904fcae1418--