|
Bugzilla – Full Text Bug Listing |
| Summary: | yast2-user ; password required in the command line interface | ||
|---|---|---|---|
| Product: | [openSUSE] openSUSE 11.1 | Reporter: | Stefan Schubert <schubi> |
| Component: | YaST2 | Assignee: | Stefan Schubert <schubi> |
| Status: | RESOLVED FIXED | QA Contact: | Jiri Srain <jsrain> |
| Severity: | Normal | ||
| Priority: | P5 - None | CC: | jsuchome |
| Version: | Factory | ||
| Target Milestone: | --- | ||
| Hardware: | Other | ||
| OS: | Other | ||
| Whiteboard: | |||
| Found By: | --- | Services Priority: | |
| Business Priority: | Blocker: | --- | |
| Marketing QA Status: | --- | IT Deployment: | --- |
| Attachments: | patch for yast2-users | ||
|
Description
Stefan Schubert
2008-10-02 17:12:23 UTC
Well, it's intended for a couple of releases and was reggarded as a feature. Is it wrong? I think this is OK. Stefan, is this a problem for your commandline gathering? Yes, it is cause the server hangs at that moment. It is the same problem as a popup. But if this is a feature for other cases I will solve it on my side to ask for a password before I call the YaST module. Thanks ! There's also one more trap in yast2-users: if you're modifying LDAP users and do not provide password to LDAP server, it will ask you as well. Thank you for the hint, I will regard this. Hm, I am using the commandline interface in two ways: - With the webservice API where I check the parameters. So here is no problem returning an error message already in YaST webservice. - Generic YaST command line. There will be checked no parameter cause it is generic and YaST webservice does not know about. For the second case I have two solutions: - Do not allow the line modus of the user module in the generic YaST interface of the YaST service. - An additional parameter in the YaST user commandline interface, that an error will be returned instead a user action if any user input is required. (like "noUserInputPossible=1" Jiri, Stano please select ;-) Do you mean something like "batchmode=1" ? Ähm, Yes !!! Created attachment 245164 [details]
patch for yast2-users
Please patch users.ycp, groups.ycp (of /usr/share/YaST2/clients) and cmdline.ycp (in .../include/users) and test if it is good enough.
Additional option is: (see yast2 users help)
batchmode Don't ask for missing data; return error instead.
Without the password, the module only prints an error to stderr.
It works fine. Please check in. Thank you for the help !!! yast2-users-2.17.17 |