To check if anonymous binds are allowed, you can perform a simple LDAP bind operation without providing any credentials and see if it succeeds or fails:
ldapsearch -H ldap://10.10.10.161 -x -b 'dc=htb,dc=local' -s base
# -x for anonymous auth, -b to specify base DC, -s for scope
windapsearch
If LDAP is open, we can enumerate users, computers, and groups using windapsearch