original_docstring: Return a password auth plugin object.
  
      :param username: the user to authenticate as.
  
      :param password: the user's password.
  
      :param project_name: the project(ex. tenant) name to scope the auth.
  
      :param user_domain_name: the domain the user belongs to.
  
      :param project_domain_name: the domain the project belongs to.
  
      :param trust_id: a trust id to scope the auth.
  
      :returns: a password auth plugin object.
      
docstring: Return a password auth plugin object.
docstring_tokens: Return a password auth plugin object .
code: def _password_auth(username, password,
                     project_name=None, user_domain_name=None,
                     project_domain_name=None, trust_id=None):
      '''Return a password auth plugin object.
  
      :param username: the user to authenticate as.
  
      :param password: the user's password.
  
      :param project_name: the project(ex. tenant) name to scope the auth.
  
      :param user_domain_name: the domain the user belongs to.
  
      :param project_domain_name: the domain the project belongs to.
  
      :param trust_id: a trust id to scope the auth.
  
      :returns: a password auth plugin object.
      '''
      passwd_kwargs = dict(
          auth_url=CONF.trustee.auth_url,
          username=username,
          password=password
      )
      if CONF.use_identity_api_v3:
          passwd_kwargs.update(dict(
              project_name=project_name,
              user_domain_name=user_domain_name,
              project_domain_name=project_domain_name,
              trust_id=trust_id
          ))
          auth = keystone_identity.v3.Password(**passwd_kwargs)
      else:
          passwd_kwargs.update(dict(
              tenant_name=project_name,
              trust_id=trust_id
          ))
          auth = keystone_identity.v2.Password(**passwd_kwargs)
      return auth
code_tokens: def _password_auth ( username , password , project_name = None , user_domain_name = None , project_domain_name = None , trust_id = None ) : passwd_kwargs = dict ( auth_url = CONF . trustee . auth_url , username = username , password = password ) if CONF . use_identity_api_v3 : passwd_kwargs . update ( dict ( project_name = project_name , user_domain_name = user_domain_name , project_domain_name = project_domain_name , trust_id = trust_id ) ) auth = keystone_identity . v3 . Password ( ** passwd_kwargs ) else : passwd_kwargs . update ( dict ( tenant_name = project_name , trust_id = trust_id ) ) auth = keystone_identity . v2 . Password ( ** passwd_kwargs ) return auth
short_docstring: Return a password auth plugin object.
short_docstring_tokens: Return a password auth plugin object .
comment: '''Return a password auth plugin object.
  
      :param username: the user to authenticate as.
  
      :param password: the user's password.
  
      :param project_name: the project(ex. tenant) name to scope the auth.
  
      :param user_domain_name: the domain the user belongs to.
  
      :param project_domain_name: the domain the project belongs to.
  
      :param trust_id: a trust id to scope the auth.
  
      :returns: a password auth plugin object.
      '''