Hi All,

I'm trying to write a rather straightforward plugin. I need to search for an entry and return a specific attribute. But when I'm using the slapi_search_internal_set_pb and slapi_search_internal_pb functions, I'm always getting all the attributes. 

My code is on the lines of whats is described here http://docs.oracle.com/cd/E19424-01/820-4810/aahhb/index.html

The set_pb looks like this in my code. 

slapi_search_internal_set_pb( 
        pb,
        dn,            /* Base DN for search            */
        LDAP_SCOPE_SUBTREE,                                         /* Scope                         */
        "objectclass=*",                                                         /* Filter                        */
        srch_attrs,                                                 /* Set to get all user attrs.    */
        0,                                                          /* Return attrs. and values      */
        NULL,                                                       /* No controls                   */
        NULL,                                                       /* DN rather than unique ID      */
        plugin_id,
        SLAPI_OP_FLAG_NEVER_CHAIN                                   /* Never chain this operation.   */
      );

The attrs are set like this:

char    * srch_attrs[] =  {"ipaSshPubKey", NULL};

Any help would be appreciated. 

Thanks.
--Prashant