Author: kmachalkova
Date: Tue Jan 29 16:49:25 2008
New Revision: 43979
URL: http://svn.opensuse.org/viewcvs/yast?rev=43979&view=rev
Log:
Extended set of valid characters for usernames
(esp. \ for winbind users) (bnc#353499)
Modified:
trunk/sudo/src/Sudo.ycp
trunk/sudo/src/dialog-spec.ycp
Modified: trunk/sudo/src/Sudo.ycp
URL: http://svn.opensuse.org/viewcvs/yast/trunk/sudo/src/Sudo.ycp?rev=43979&r1=43978&r2=43979&view=diff
==============================================================================
--- trunk/sudo/src/Sudo.ycp (original)
+++ trunk/sudo/src/Sudo.ycp Tue Jan 29 16:49:25 2008
@@ -35,13 +35,14 @@
module "Sudo";
textdomain "sudo";
+import "Message";
import "Progress";
import "Report";
-import "Summary";
-import "Message";
-import "Service";
import "Popup";
+import "Service";
import "SCR";
+import "String";
+import "Summary";
import "Users";
import "UsersCache";
@@ -63,6 +64,8 @@
modified = true;
}
+global string ValidCharsUsername = deletechars (String::CGraph (), "'\"") + " ";
+
map > settings = $[];
map host_aliases = $[];
map user_aliases = $[];
Modified: trunk/sudo/src/dialog-spec.ycp
URL: http://svn.opensuse.org/viewcvs/yast/trunk/sudo/src/dialog-spec.ycp?rev=43979&r1=43978&r2=43979&view=diff
==============================================================================
--- trunk/sudo/src/dialog-spec.ycp (original)
+++ trunk/sudo/src/dialog-spec.ycp Tue Jan 29 16:49:25 2008
@@ -64,8 +64,8 @@
);
Wizard::SetContentsButtons(caption, contents,HELPS["spec_single"]:"",Label::BackButton(), Label::OKButton());
- UI::ChangeWidget(`id("user_name"),`ValidChars, "_%-0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ");
- UI::ChangeWidget(`id("run_as"),`ValidChars, "_%-0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ");
+ UI::ChangeWidget(`id("user_name"),`ValidChars, Sudo::ValidCharsUsername);
+ UI::ChangeWidget(`id("run_as"),`ValidChars, Sudo::ValidCharsUsername);
//initialize UI
UI::ChangeWidget(`id("user_name"),`Value, spec["user"]:"");
--
To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org
For additional commands, e-mail: yast-commit+help@opensuse.org