def METHOD_NAME(base, query, fields):
    lc = ldap.initialize('ldap://xldap.cern.ch')
    lc.search_ext(
        base,
        ldap.SCOPE_ONELEVEL,
        query,
        fields,
        serverctrls=[
            ldap.controls.SimplePagedResultsControl(True, size=7, cookie='')
        ],
    )
    return lc.result()[1]