For grant LDAP user as administrator , you can use occ command for add member to admin group:

sudo -u www-data php /location/nextcloud/file/occ group:adduser admin shaari

admin – Group name that have Administrator privilege
shaari – username for local user or LDAP user

Example:

add group