[Bug 609449] New: yast2 ca-mgm module have mangled capasswd option
http://bugzilla.novell.com/show_bug.cgi?id=609449 http://bugzilla.novell.com/show_bug.cgi?id=609449#c0 Summary: yast2 ca-mgm module have mangled capasswd option Classification: openSUSE Product: openSUSE 11.2 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: YaST2 AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: tthidney@seznam.cz QAContact: jsrain@novell.com Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (compatible; Konqueror/4.4) KHTML/4.4.2 (like Gecko) SUSE I am trying to create certificate from cmdline using yast ca-mgm module. As I need to pass CA password I tried one from documentation: capasswd [string] CA password (Security: This should be given by an environment variable) however using capasswd="password" is ignored, obviously caPassword option is readed. So Window asking me to pass ca password appear (which is problem in batch) And of course passing caPasswd will fail: Unknown option for command 'createCertificate': caPasswd And at the end when I do not pass capasswd at all command complain about ca creation: Invalid password. Use of uninitialized value in sprintf at /usr/share/YaST2/modules/YaST/caUtils.pm line 1848 (#1) (W uninitialized) An undefined value was used as if it were already defined. It was interpreted as a "" or a 0, but maybe it was a mistake. To suppress this warning assign a defined value to your variables. To help you figure out what was undefined, perl will try to tell you the name of the variable (if any) that was undefined. In some cases it cannot do this, so it also tells you what operation you used the undefined value in. Note, however, that perl optimizes your program and the operation displayed in the warning may not necessarily appear literally in your program. For example, "that $foo" is usually optimized into "that " . $foo, and the warning will refer to the concatenation (.) operator, even though there is no . in your program. Invalid value '' for parameter 'caPasswd'. Invalid value '' for parameter 'caPasswd'. Command look like: LANG=us yast2 ca_mgm createCertificate caname="CANAME" type="server" days="3" cn="testauto" keyPasswd="test" email="mymail" verbose Reproducible: Always Steps to Reproduce: 1. 2. 3. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=609449
http://bugzilla.novell.com/show_bug.cgi?id=609449#c
yang xiaoyu
http://bugzilla.novell.com/show_bug.cgi?id=609449
http://bugzilla.novell.com/show_bug.cgi?id=609449#c1
Vladislav Gorobets
http://bugzilla.novell.com/show_bug.cgi?id=609449
http://bugzilla.novell.com/show_bug.cgi?id=609449#c2
J. Daniel Schmidt
however using capasswd="password" is ignored, obviously caPassword option is readed.
According to the code the parameter is indeed "capasswd" in lowercase. The error message you saw came from internal processing - internally the password is saved with the camelCase name "caPassword. The error bwt. occurs if the password is missing or if it is shorter than 4 characters. Unfortunately this error message does not report such an error. -> Bug #1
So Window asking me to pass ca password appear (which is problem in batch) -> Bug #2
And of course passing caPasswd will fail: Unknown option for command 'createCertificate': caPasswd
As already said, the parameter is "capasswd".
when I do not pass capasswd at all command complain about ca creation:
Invalid password. Use of uninitialized value in sprintf at /usr/share/YaST2/modules/YaST/caUtils.pm line 1848 (#1) Invalid value '' for parameter 'caPasswd'. -> Bug #1.1 (or #3 if you like)
Please provide YaST the logs in any case, thank you. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=609449
http://bugzilla.novell.com/show_bug.cgi?id=609449#c3
Thidney Thidney
https://bugzilla.novell.com/show_bug.cgi?id=609449
https://bugzilla.novell.com/show_bug.cgi?id=609449#c4
Igor Podgorski
https://bugzilla.novell.com/show_bug.cgi?id=609449
https://bugzilla.novell.com/show_bug.cgi?id=609449#c5
--- Comment #5 from Igor Podgorski
https://bugzilla.novell.com/show_bug.cgi?id=609449
https://bugzilla.novell.com/show_bug.cgi?id=609449#c6
J. Daniel Schmidt
https://bugzilla.novell.com/show_bug.cgi?id=609449
https://bugzilla.novell.com/show_bug.cgi?id=609449#c7
J. Daniel Schmidt
https://bugzilla.novell.com/show_bug.cgi?id=609449
https://bugzilla.novell.com/show_bug.cgi?id=609449#c8
--- Comment #8 from Bernhard Wiedemann
participants (1)
-
bugzilla_noreply@novell.com