Previous Topic: How You Search for an ObjectNext Topic: How You Implement doSearch


How you Implement doLookup

To implement this method, use the object reference and attribute names provided, and return a javax.naming.directory.Attributes object containing the values for any of the named attributes which have values. If an attribute has no value, then do not include it in the returned attributes. Otherwise, the CA IAM CS framework throws an exception as such attributes are known to upset the ApacheDS framework over which CA IAM CS is built.

Note: The ApacheDS SchemaService calls this method on your connector to sanity test MODIFY and other operations. Therefore, implement it as one of the first operations for your connector, before everything except, perhaps, the ADD operation. Also, if an operation makes it to the expected method call on PartititionLoaderService (for example, modify()), but it does not make it to the corresponding call on MetaConnector, (for example, modify()), then it is worth putting a breakpoint in your connector’s attribute-style processor’s doLookUp() method to see if a problem is occurring here. Or if doLookUp is not being executed, in MetaConnector.lookup() or MetaConnector.search().