(groupuid, ldap_server=None)
return name
Get a human readable name from a groupuid, try ldap_server if provided.

  Try resolving the uid locally, then with ldap if a server is specified.

  Args:
    groupuid: UID to resolve
    ldap_server: use ldap_server if defined
  Returns:
    human-readable name or None if it couldn't be resolved
Get a human readable name from a groupuid, try ldap_server if provided.
Get a human readable name from a groupuid try ldap_server if provided .
def _GetNameFromGroupUID(groupuid, ldap_server=None):
  """Get a human readable name from a groupuid, try ldap_server if provided.

  Try resolving the uid locally, then with ldap if a server is specified.

  Args:
    groupuid: UID to resolve
    ldap_server: use ldap_server if defined
  Returns:
    human-readable name or None if it couldn't be resolved
  """
  name = None
  try:
    name = DSGetRecordNameFromUUID('group', groupuid)
    if not name and ldap_server:
      name = DSGetRecordNameFromUUID('group',
                                     groupuid,
                                     node='/LDAPv3/%s' % ldap_server)
  except DSException:
    pass
  return name
def _GetNameFromGroupUID ( groupuid , ldap_server = None ) : name = None try : name = DSGetRecordNameFromUUID ( 'group' , groupuid ) if not name and ldap_server : name = DSGetRecordNameFromUUID ( 'group' , groupuid , node = '/LDAPv3/%s' % ldap_server ) except DSException : pass return name