예제 #1
0
 public function testSlapdDeleteAttributesException()
 {
     $this->setExpectedException('SHLdapException', 'LIB_SHLDAP_ERR_10161', 10161);
     $ldap = new SHLdap(TestsHelper::getLdapConfig(214));
     $ldap->connect();
     $ldap->proxyBind();
     $user = TestsHelper::getUserCreds('trinity');
     // Try to delete an attribute that doesnt exist
     $this->assertTrue($ldap->deleteAttributes($user['dn'], array('attributedoesntexist' => array())));
 }