original_docstring: 
      Verifies a member is part of a group.
  
      Params:
          ldap_server: the ldap server, e.g., abc.def.com:1234
          ldap_username: the ldap user to query permissions
          ldap_password: the password for ldap_username
          ldap_search_base: the location of the user in LDAP
          username: the user to search for group membership
          object_class: the LDAP object class of the user
          group_names: the list of group names to check for user membership
          lookup_attribute: the attribute used to lookup the object
  
      Returns:
          bool: indicates whether the user is or is not a member
              of the group
      
docstring: Verifies a member is part of a group.
docstring_tokens: Verifies a member is part of a group .
code: def verify_group_membership(ldap_server: str, ldap_username: str, ldap_password: str,
                              ldap_search_base: str, username: str, object_class: str,
                              group_names: [], lookup_attribute: str) -> bool:
      """
      Verifies a member is part of a group.
  
      Params:
          ldap_server: the ldap server, e.g., abc.def.com:1234
          ldap_username: the ldap user to query permissions
          ldap_password: the password for ldap_username
          ldap_search_base: the location of the user in LDAP
          username: the user to search for group membership
          object_class: the LDAP object class of the user
          group_names: the list of group names to check for user membership
          lookup_attribute: the attribute used to lookup the object
  
      Returns:
          bool: indicates whether the user is or is not a member
              of the group
      """
  
      user_groups = get_user_groups(ldap_server, ldap_username, ldap_password,
                              ldap_search_base, username, object_class, lookup_attribute)
      # Iterate over user groups
      for group in user_groups:
          # Isolate group properties to search for CN
          for group_component in group.split(','):
              # Iterate over allowed groups from input
              for group_name in group_names:
                  if group_component.upper() == "CN={}".format(group_name.upper()):
                      return True
      return False
code_tokens: def verify_group_membership ( ldap_server : str , ldap_username : str , ldap_password : str , ldap_search_base : str , username : str , object_class : str , group_names : [ ] , lookup_attribute : str ) -> bool : user_groups = get_user_groups ( ldap_server , ldap_username , ldap_password , ldap_search_base , username , object_class , lookup_attribute ) for group in user_groups : for group_component in group . split ( ',' ) : for group_name in group_names : if group_component . upper ( ) == "CN={}" . format ( group_name . upper ( ) ) : return True return False
short_docstring: Verifies a member is part of a group.
short_docstring_tokens: Verifies a member is part of a group .
comment: """
      Verifies a member is part of a group.
  
      Params:
          ldap_server: the ldap server, e.g., abc.def.com:1234
          ldap_username: the ldap user to query permissions
          ldap_password: the password for ldap_username
          ldap_search_base: the location of the user in LDAP
          username: the user to search for group membership
          object_class: the LDAP object class of the user
          group_names: the list of group names to check for user membership
          lookup_attribute: the attribute used to lookup the object
  
      Returns:
          bool: indicates whether the user is or is not a member
              of the group
      """$SEP$# Iterate over user groups$SEP$# Isolate group properties to search for CN$SEP$# Iterate over allowed groups from input