389 DS Plugin development

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
--
389 users mailing list
389-users@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/389-users

[Index of Archives]     [Fedora User Discussion]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora News]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora QA]     [Fedora Triage]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Yosemite Photos]     [Linux Apps]     [Maemo Users]     [Gnome Users]     [KDE Users]     [Fedora Tools]     [Fedora Art]     [Fedora Docs]     [Maemo Users]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Fedora ARM]

  Powered by Linux