ldapsearch vs LDAP URL

ldap://ldap.domain.tld:389/dc=domain,dc=tld?cn,mail?sub?(uid=user01)
ldapsearch -x -h ldap.domain.tld -p 389 -b dc=domain,dc=tld -s sub '(uid=user01)' cn mail