[38075] in Kerberos

home help back first fref pref prev next nref lref last post

Re: powershell calling cpw - white space in password problem

daemon@ATHENA.MIT.EDU (Greg Hudson)
Thu Oct 12 01:02:05 2017

To: "Ramaiah, Vanna G." <ramaiah@musc.edu>,
        "kerberos@mit.edu" <kerberos@mit.edu>
From: Greg Hudson <ghudson@mit.edu>
Message-ID: <3eed9476-82d2-d30c-d424-99d2cb03d9b6@mit.edu>
Date: Thu, 12 Oct 2017 01:01:44 -0400
MIME-Version: 1.0
In-Reply-To: <AE3FEB1BD25D22479E9F293EBBF869B9017FC6C0FE@exg-mb10b.clinlan.local>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: kerberos-bounces@mit.edu

On 10/11/2017 05:36 PM, Ramaiah, Vanna G. wrote:
> I have a non-interactive powershell that changes password using cpw. It works fine. When the password contain white space character in it, it fails because it sees white space as delimiter.

kadmin -q 'cpw -pw "a b" user' works for me; I'm not certain why it
isn't working for you.

In MIT krb5 1.14 and later, you can also omit the -q option and just write:

  kadmin -p AdminAccount/admin -w AdminPassword cpw -pw "a b" user

This form bypasses the internal word-splitting logic and lets you
specify each word of the command as a separate argument value.
________________________________________________
Kerberos mailing list           Kerberos@mit.edu
https://mailman.mit.edu/mailman/listinfo/kerberos

home help back first fref pref prev next nref lref last post