def testPasswordSetting_abortsOnFirstError(self):
        client = LDAPClientTestDriver(
            [pureldap.LDAPExtendedResponse(resultCode=ldaperrors.LDAPInsufficientAccessRights.resultCode,
                                           matchedDN='',
                                           errorMessage='')],
            )

        o=ldapsyntax.LDAPEntry(client=client,
                               dn='cn=foo,dc=example,dc=com',
                               attributes={
            'objectClass': ['foo', 'sambaAccount'],
            },
                               complete=1)
        d=o.setPassword(newPasswd='new')
        def eb(fail):
            fail.trap(ldapsyntax.PasswordSetAggregateError)
            l=fail.value.errors
            assert len(l)==2

            assert len(l[0])==2
            self.assertEquals(l[0][0], 'ExtendedOperation')
            assert isinstance(l[0][1], failure.Failure)
            l[0][1].trap(ldaperrors.LDAPInsufficientAccessRights)

            assert len(l[1])==2
            self.assertEquals(l[1][0], 'Samba')
            assert isinstance(l[1][1], failure.Failure)
            l[1][1].trap(ldapsyntax.PasswordSetAborted)

            client.assertSent(pureldap.LDAPPasswordModifyRequest(
                userIdentity='cn=foo,dc=example,dc=com',
                newPasswd='new'),
                              )
        d.addCallbacks(testutil.mustRaise, eb)
        return d
Query the node for specific information.
dataset/ETHPy150Open twisted/ldaptor/ldaptor/test/test_ldapsyntax.py/LDAPSyntaxPasswords.testPasswordSetting_abortsOnFirstError--crossover with--dataset/ETHPy150Open saltstack/salt/salt/modules/node.py/query