LdapTools\Operation\AddOperation::setDn PHP Méthode

setDn() public méthode

Set the distinguished name that the operation is working on.
public setDn ( string $dn )
$dn string
    public function setDn($dn)
    {
        $this->properties['dn'] = $dn;
        return $this;
    }

Usage Example

 function it_should_respect_an_explicitly_set_dn($connection)
 {
     $connection->execute($this->addOperation)->willReturn(true);
     $this->addOperation->setDn('cn=chad,ou=users,dc=foo,dc=bar');
     $this->config->setSchemaName('ad');
     $this->beConstructedWith($connection, $this->schemaFactory, $this->dispatcher);
     $this->createUser()->with(['username' => 'somedude', 'password' => '12345'])->setDn('cn=chad,ou=users,dc=foo,dc=bar')->execute();
 }
All Usage Examples Of LdapTools\Operation\AddOperation::setDn