@Test public void testUpdateControlCharPasswd() { String controlChar = "\n"; String password = new StringBuilder().append("fo0").append(controlChar).append("bar").toString(); try { getFacade().update(ObjectClass.ACCOUNT, new Uid(getUsername()), CollectionUtil.newSet(AttributeBuilder.buildPassword(password.toCharArray())), null); fail("Exception should be thrown when password containing control char sent."); } catch (RuntimeException ex) { } }
public Uid update(ObjectClass objectClass, Uid uid, Set<Attribute> replaceAttributes, OperationOptions options) { return new SolarisUpdate(this).update(objectClass, uid, AttributeUtil.addUid( replaceAttributes, uid), options); }
SolarisConnector implements PoolableConnector, AuthenticateOp, SchemaOp, CreateOp,
        DeleteOp, UpdateOp, SearchOp<Node>, TestOp, ScriptOnResourceOp, ResolveUsernameOp { public Uid update(ObjectClass objectClass, Uid uid, Set<Attribute> replaceAttributes, OperationOptions options) { return new SolarisUpdate(this).update(objectClass, uid, AttributeUtil.addUid( replaceAttributes, uid), options); } }
SolarisConnector implements PoolableConnector, AuthenticateOp, SchemaOp, CreateOp,
        DeleteOp, UpdateOp, SearchOp<Node>, TestOp, ScriptOnResourceOp, ResolveUsernameOp { public Uid update(ObjectClass objectClass, Uid uid, Set<Attribute> replaceAttributes, OperationOptions options) { return new SolarisUpdate(this).update(objectClass, uid, AttributeUtil.addUid( replaceAttributes, uid), options); }  }
SolarisConnector implements PoolableConnector, AuthenticateOp, SchemaOp, CreateOp,
        DeleteOp, UpdateOp, SearchOp<Node>, TestOp, ScriptOnResourceOp, ResolveUsernameOp { public Uid update(ObjectClass objectClass, Uid uid, Set<Attribute> replaceAttributes, OperationOptions options) { return new SolarisUpdate(this).update(objectClass, uid, AttributeUtil.addUid( replaceAttributes, uid), options); }  void init(Configuration cfg); void checkAlive(); void dispose(); Uid authenticate(ObjectClass objectClass, String username, GuardedString password,
            OperationOptions options); Uid create(ObjectClass objectClass, Set<Attribute> attrs, OperationOptions options); void delete(ObjectClass objectClass, Uid uid, OperationOptions options); Uid update(ObjectClass objectClass, Uid uid, Set<Attribute> replaceAttributes,
            OperationOptions options); void executeQuery(ObjectClass objectClass, Node query, ResultsHandler handler,
            OperationOptions options); FilterTranslator<Node> createFilterTranslator(ObjectClass objectClass,
            OperationOptions options); Schema schema(); void test(); SolarisConnection getConnection(); Configuration getConfiguration(); Object runScriptOnResource(ScriptContext request, OperationOptions options); Uid resolveUsername(ObjectClass objectClass, String username, OperationOptions options); }
SolarisConnector implements PoolableConnector, AuthenticateOp, SchemaOp, CreateOp,
        DeleteOp, UpdateOp, SearchOp<Node>, TestOp, ScriptOnResourceOp, ResolveUsernameOp { public Uid update(ObjectClass objectClass, Uid uid, Set<Attribute> replaceAttributes, OperationOptions options) { return new SolarisUpdate(this).update(objectClass, uid, AttributeUtil.addUid( replaceAttributes, uid), options); }  void init(Configuration cfg); void checkAlive(); void dispose(); Uid authenticate(ObjectClass objectClass, String username, GuardedString password,
            OperationOptions options); Uid create(ObjectClass objectClass, Set<Attribute> attrs, OperationOptions options); void delete(ObjectClass objectClass, Uid uid, OperationOptions options); Uid update(ObjectClass objectClass, Uid uid, Set<Attribute> replaceAttributes,
            OperationOptions options); void executeQuery(ObjectClass objectClass, Node query, ResultsHandler handler,
            OperationOptions options); FilterTranslator<Node> createFilterTranslator(ObjectClass objectClass,
            OperationOptions options); Schema schema(); void test(); SolarisConnection getConnection(); Configuration getConfiguration(); Object runScriptOnResource(ScriptContext request, OperationOptions options); Uid resolveUsername(ObjectClass objectClass, String username, OperationOptions options);  }