wftk core: permissions directory adaptor

[ back to the core ] [ discussion ]

A permissions directory adaptor is responsible for interfacing with a directory system in order to determine whether a given user has permission to perform a named task (or group of tasks or whatever) on a given object.

These are the functions exposed by a permission directory adaptor (well, OK, they're not there yet):
0: init   Initialize adaptor instance
1: free   Clean up instance before shutting down
2: info   Return XML describing the adaptor
3: perm XML * action
XML * user (optional: use NULL if anonymous)
Judge permission level. Returns "ok", "no", or the name of an approval process to start.


This code and documentation are released under the terms of the GNU license. They are additionally copyright (c) 2000, Vivtek. All rights reserved except those explicitly granted under the terms of the GNU license. This presentation was prepared with LPML. Try literate programming. You'll like it.