Re: autostep and encrypted root password

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> I've been looking at the code more closely and found a way to make the  
> patch less intrusive and more efficient.
>
> Attached are new patches for both anaconda-11.1.2.155 (RHEL 5.3 Beta)  
> (tested) and anaconda-11.4.1.57-1-1-gc6cf36a (not tested).

Sorry for not getting back to you sooner on this.

> diff --git a/iw/account_gui.py b/iw/account_gui.py
> index 45f396b..035ebab 100644
> --- a/iw/account_gui.py
> +++ b/iw/account_gui.py
> @@ -59,9 +59,15 @@ class AccountWindow (InstallWindow):
>              lambda w, e: self.handleCapsLockRelease(w, e, self.capslock))
>  
>          # we might have a root password already
> +        # 1. if it's not encrypted, just use it
> +        # 2. if it is encrypted, set text in password fields to "xxxxxxxx"
> +        #    for use in autostep screenshots
>          if not self.rootPassword['isCrypted']:
>              self.pw.set_text(self.rootPassword['password'])
>              self.confirm.set_text(self.rootPassword['password'])
> +        else:
> +            self.pw.set_text("xxxxxxxx")
> +            self.confirm.set_text("xxxxxxxx")
>  
>          # make sure pw has the focus when we enter the screen
>          vbox = self.xml.get_widget("account_box")
> @@ -100,6 +106,9 @@ class AccountWindow (InstallWindow):
>              self.capslock.set_text("")
>  
>      def getNext (self):
> +        # check if we already have a crypted root password from kickstart
> +        if self.rootPassword["isCrypted"]: return None
> +
>          pw = self.pw.get_text()
>          confirm = self.confirm.get_text()

I think using the XXXXXXXX trick is really cheesy, but I support it will
work.  At the least, it puts something into the box so the user knows
they can continue without typing anything in.  I suppose that's the best
that can be hoped for here.

Have you gotten a chance to try against rawhide?  If so and this works
for you, I'm okay with taking it.

We can pursue the RHEL5 one separately through bugzilla I guess.

- Chris

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux