#include "jabberd.h"
Functions | |
| int | acl_check_access (xdbcache xdb, const char *function, const jid user) |
| jid | acl_get_users (xdbcache xdb, const char *function) |
Variables | |
| xmlnode | greymatter__ |
For the moment this is only a provisional implementation of ACLs for jabberd14 to get the interfaces working. A more dynamic implementation of ACLs should soon follow, that will allow authorized accounts to alter ACLs at runtime of the server using Jabber requests.
check if a user has access to a given functionality
| xdb | instance of an xdbcache used to check the access | |
| function | functionality for which access should be checked | |
| user | user for which access should be checked |
References acl_get_users(), xmppd::jabberid_pool::get_pool(), jid_cmpx(), jid_full(), JID_SERVER, JID_USER, log_debug2, LOGT_AUTH, xmppd::jabberid_pool::next, pool_free(), and ZONE.
Referenced by js_trust().
get the list of users, that have access to a given functionality
| xdb | instance of an xdbcache used to check the access | |
| function | functionality for which access should be checked |
References j_strcmp(), jid_append(), jid_new(), NS_JABBERD_ACL, NS_JABBERD_CONFIGFILE, pool_new, xhash_new(), xhash_put(), xmlnode_get_attrib_ns(), xmlnode_get_data(), and xmlnode_get_tags().
Referenced by acl_check_access().
this holds the parsed configuration file
1.5.5