<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">On 08/12/2014 12:04 AM,
      <a class="moz-txt-link-abbreviated" href="mailto:shaohef@linux.vnet.ibm.com">shaohef@linux.vnet.ibm.com</a> wrote:<br>
    </div>
    <blockquote
      cite="mid:1407773086-24614-1-git-send-email-shaohef@linux.vnet.ibm.com"
      type="cite">
      <pre wrap="">From: Simon Jin <a class="moz-txt-link-rfc2396E" href="mailto:simonjin@linux.vnet.ibm.com">&lt;simonjin@linux.vnet.ibm.com&gt;</a>

The backend should fitler the user name who can not login the shell.

Signed-off-by: ShaoHe Feng <a class="moz-txt-link-rfc2396E" href="mailto:shaohef@linux.vnet.ibm.com">&lt;shaohef@linux.vnet.ibm.com&gt;</a>
Signed-off-by: Simon Jin <a class="moz-txt-link-rfc2396E" href="mailto:simonjin@linux.vnet.ibm.com">&lt;simonjin@linux.vnet.ibm.com&gt;</a>
---
 src/kimchi/model/host.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/kimchi/model/host.py b/src/kimchi/model/host.py
index a1f8944..39f45d8 100644
--- a/src/kimchi/model/host.py
+++ b/src/kimchi/model/host.py
@@ -419,7 +419,8 @@ def __init__(self, **kargs):
         pass

     def get_list(self):
-        return [user.pw_name for user in pwd.getpwall()]
+        return [user.pw_name for user in pwd.getpwall()
+                if user.pw_shell.rsplit("/")[-1] not in ["nologin", "false"]]</pre>
    </blockquote>
    need to check the group filter. <br>
    can<br>
    <font size="3">[g.gr_name for g in grp.getgrall() if len(g.gr_mem)
      &gt; 0]</font><br>
    work well. <br>
    <blockquote
      cite="mid:1407773086-24614-1-git-send-email-shaohef@linux.vnet.ibm.com"
      type="cite">
      <pre wrap="">


 class GroupsModel(object):
</pre>
    </blockquote>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
Thanks and best regards!

Sheldon Feng(冯少合)<a class="moz-txt-link-rfc2396E" href="mailto:shaohef@linux.vnet.ibm.com">&lt;shaohef@linux.vnet.ibm.com&gt;</a>
IBM Linux Technology Center</pre>
  </body>
</html>