(self, user, host_auth=None, container_auth=None)
return (True, user_id)
user password entry from host or container passwd
           Returns (valid_user: bool, user_passwd_fields: dict)
user password entry from host or container passwd
           Returns (valid_user: bool, user_passwd_fields: dict)
user password entry from host or container passwd Returns ( valid_user : bool user_passwd_fields : dict )
def _user_from_str(self, user, host_auth=None, container_auth=None):
        """user password entry from host or container passwd
           Returns (valid_user: bool, user_passwd_fields: dict)
        """
        user_id = self._validate_user_str(user)
        if not user_id:
            return (False, user_id)
        search_field = user_id.get("uid", user_id.get("user", ""))
        if self.opt["hostauth"]:
            (self.opt["user"], self.opt["uid"], self.opt["gid"],
             self.opt["gecos"], self.opt["home"], self.opt["shell"]) = \
                host_auth.get_user(search_field)
        else:
            (self.opt["user"], self.opt["uid"], self.opt["gid"],
             self.opt["gecos"], self.opt["home"], self.opt["shell"]) = \
                container_auth.get_user(search_field)
        return (True, user_id)
def _user_from_str ( self , user , host_auth = None , container_auth = None ) : user_id = self . _validate_user_str ( user ) if not user_id : return ( False , user_id ) search_field = user_id . get ( "uid" , user_id . get ( "user" , "" ) ) if self . opt [ "hostauth" ] : ( self . opt [ "user" ] , self . opt [ "uid" ] , self . opt [ "gid" ] , self . opt [ "gecos" ] , self . opt [ "home" ] , self . opt [ "shell" ] ) = host_auth . get_user ( search_field ) else : ( self . opt [ "user" ] , self . opt [ "uid" ] , self . opt [ "gid" ] , self . opt [ "gecos" ] , self . opt [ "home" ] , self . opt [ "shell" ] ) = container_auth . get_user ( search_field ) return ( True , user_id )