[389-users] 389 DS Plugin development

Prashant Bapat prashant at apigee.com
Wed Mar 25 15:52:02 UTC 2015


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.fedoraproject.org/pipermail/389-users/attachments/20150325/7a13dc9f/attachment.html>


More information about the 389-users mailing list