/**
* Sets the base DN property.
*
* @param string $dn
*/
public function setBaseDn($dn)
{
// We'll construct a new Distinguished name with
// the DN we're given so we know it's valid.
if (!$dn instanceof DistinguishedName) {
$dn = new DistinguishedName($dn);
}
$this->baseDn = $dn->get();
}