The task is to establish a connection to an Active Directory or Lightweight Directory Access Protocol server.

package require ldap
set conn [ldap::connect $host $port]
ldap::bind $conn $user $password