Hello community, here is the log from the commit of package webyast-users-ws for openSUSE:Factory checked in at Wed May 25 11:33:37 CEST 2011.
-------- --- webyast-users-ws/webyast-users-ws.changes 2011-05-19 10:31:17.000000000 +0200 +++ /mounts/work_src_done/STABLE/webyast-users-ws/webyast-users-ws.changes 2011-05-24 16:33:26.000000000 +0200 @@ -1,0 +2,12 @@ +Tue May 24 10:09:20 UTC 2011 - [email protected] + +- added workaround for the users which UID < 1000, since a lot of netowrk users don't appear in roles ui +- 0.2.8 + +------------------------------------------------------------------- +Tue May 24 09:27:35 UTC 2011 - [email protected] + +- removed single caching (bnc#694831) +- 0.2.7 + +------------------------------------------------------------------- calling whatdependson for head-i586 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ webyast-users-ws.spec ++++++ --- /var/tmp/diff_new_pack.HCVGMy/_old 2011-05-25 11:31:31.000000000 +0200 +++ /var/tmp/diff_new_pack.HCVGMy/_new 2011-05-25 11:31:31.000000000 +0200 @@ -27,7 +27,7 @@ Group: Productivity/Networking/Web/Utilities Url: http://en.opensuse.org/Portal:WebYaST AutoReqProv: on -Version: 0.2.6 +Version: 0.2.8 Release: 1 Summary: WebYaST - users management Source: www.tar.bz2 ++++++ www.tar.bz2 ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/www/app/models/getent_passwd.rb new/www/app/models/getent_passwd.rb --- old/www/app/models/getent_passwd.rb 2011-05-19 08:52:22.000000000 +0200 +++ new/www/app/models/getent_passwd.rb 2011-05-24 12:47:54.000000000 +0200 @@ -34,9 +34,12 @@ lines = res.split "\n" lines.each do |l| elements = l.split ":" - if elements[2].to_i >= minimum && - elements[0] != "nobody" #bnc#632326 - result << GetentPasswd.new(:login => elements[0], :full_name => elements[4]) + #TODO: Find a better solution for user which UID < 1000 + #possible solution could be config.yml where vendor can set UID range + #elements[1] != 'x' workaround, since some user has UID < 1000 + if elements[2].to_i >= minimum && elements[0] != "nobody" || (elements[1] != 'x' && elements[2].to_i <= minimum ) #bnc#632326 + name = elements[4].split(/\s*,\s*/) + result << GetentPasswd.new(:login => elements[0], :full_name => name[0]) end end active_directory_users = pure_wbinfo diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/www/app/models/user.rb new/www/app/models/user.rb --- old/www/app/models/user.rb 2011-04-29 18:23:25.000000000 +0200 +++ new/www/app/models/user.rb 2011-05-24 11:23:12.000000000 +0200 @@ -77,28 +77,26 @@ return find_all if id == :all - YastCache.fetch(self, id) { - user = User.new - parameters = { + user = User.new + parameters = { # user to find "uid" => [ "s", id ], # list of attributes to return; "user_attributes" => [ "as", [ "cn", "uidNumber", "homeDirectory", "grouplist", "uid", "loginShell", "groupname" ] ] - } - user_map = YastService.Call("YaPI::USERS::UserGet", parameters) + } + user_map = YastService.Call("YaPI::USERS::UserGet", parameters) # system_groups = YastService.Call("YaPI::USERS::GroupsGet", {"index"=>["s","cn"],"type"=>["s","system"]}) # local_groups = YastService.Call("YaPI::USERS::GroupsGet", {"index"=>["s","cn"],"type"=>["s","local"]}) # user.allgroups = Hash[*(local_groups.keys | system_groups.keys).collect {|v| [v,1]}.flatten] - raise "Got no data while loading user attributes" if user_map.empty? + raise "Got no data while loading user attributes" if user_map.empty? - user.load_data(user_map) - user.uid = id - user - } + user.load_data(user_map) + user.uid = id + user end # User.destroy("joe") ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
