aboutsummaryrefslogtreecommitdiffstats
path: root/idmap_plugin.h
Commit message (Collapse)AuthorAgeFilesLines
* cifs-utils: convert cifs.idmap to use plugin interfaceJeff Layton2012-12-191-0/+8
| | | | | | | Add routines for the various things that cifs.idmap needs and have it call them. Signed-off-by: Jeff Layton <jlayton@samba.org>
* cifs-utils: convert setcifsacl to use the plugin interfaceJeff Layton2012-12-191-0/+3
| | | | | | | Add str_to_sid() functionality to the plugin API and have setcifsacl use it. Signed-off-by: Jeff Layton <jlayton@samba.org>
* cifs-utils: new plugin architecture for ID mapping codeJeff Layton2012-12-191-0/+46
Currently, the ACL-related tools in cifs-utils call into the wbclient libs directly in order to do their bidding. The wbclient developers want to get away from needing to configure winbind on the clients and instead allow sssd to handle the mapping in most cases. This patch represents an initial step in that direction. It adds a plugin architecture for cifs-utils, adds wrappers around the calls into libwbclient that find an idmap plugin library to use and then has it call into that plugin to do the actual ID mapping. The application will call into a set of routines that find the correct plugin and dlopen() it. Currently the plugin is located in a well-known location that is settable via autoconf. That location is intended to be a symlink that points to the real plugin (generally under $pkglibdir). The plugin will export a number of functions with well-known names. The wrappers find those by using dlsym() and then call them. Signed-off-by: Jeff Layton <jlayton@samba.org>