376eaf187c13c2a1eaea0ffbdd970b6b563ab74cPetr Cech/*
376eaf187c13c2a1eaea0ffbdd970b6b563ab74cPetr Cech SSSD
376eaf187c13c2a1eaea0ffbdd970b6b563ab74cPetr Cech
376eaf187c13c2a1eaea0ffbdd970b6b563ab74cPetr Cech Data Provider -- backend request
376eaf187c13c2a1eaea0ffbdd970b6b563ab74cPetr Cech
376eaf187c13c2a1eaea0ffbdd970b6b563ab74cPetr Cech Copyright (C) Petr Cech <pcech@redhat.com> 2015
376eaf187c13c2a1eaea0ffbdd970b6b563ab74cPetr Cech
376eaf187c13c2a1eaea0ffbdd970b6b563ab74cPetr Cech This program is free software; you can redistribute it and/or modify
376eaf187c13c2a1eaea0ffbdd970b6b563ab74cPetr Cech it under the terms of the GNU General Public License as published by
376eaf187c13c2a1eaea0ffbdd970b6b563ab74cPetr Cech the Free Software Foundation; either version 3 of the License, or
376eaf187c13c2a1eaea0ffbdd970b6b563ab74cPetr Cech (at your option) any later version.
376eaf187c13c2a1eaea0ffbdd970b6b563ab74cPetr Cech
376eaf187c13c2a1eaea0ffbdd970b6b563ab74cPetr Cech This program is distributed in the hope that it will be useful,
376eaf187c13c2a1eaea0ffbdd970b6b563ab74cPetr Cech but WITHOUT ANY WARRANTY; without even the implied warranty of
376eaf187c13c2a1eaea0ffbdd970b6b563ab74cPetr Cech MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
376eaf187c13c2a1eaea0ffbdd970b6b563ab74cPetr Cech GNU General Public License for more details.
376eaf187c13c2a1eaea0ffbdd970b6b563ab74cPetr Cech
376eaf187c13c2a1eaea0ffbdd970b6b563ab74cPetr Cech You should have received a copy of the GNU General Public License
376eaf187c13c2a1eaea0ffbdd970b6b563ab74cPetr Cech along with this program. If not, see <http://www.gnu.org/licenses/>.
376eaf187c13c2a1eaea0ffbdd970b6b563ab74cPetr Cech*/
376eaf187c13c2a1eaea0ffbdd970b6b563ab74cPetr Cech
376eaf187c13c2a1eaea0ffbdd970b6b563ab74cPetr Cech#ifndef __DATA_PROVIDER_REQ__
376eaf187c13c2a1eaea0ffbdd970b6b563ab74cPetr Cech#define __DATA_PROVIDER_REQ__
376eaf187c13c2a1eaea0ffbdd970b6b563ab74cPetr Cech
376eaf187c13c2a1eaea0ffbdd970b6b563ab74cPetr Cech#include <dbus/dbus.h>
376eaf187c13c2a1eaea0ffbdd970b6b563ab74cPetr Cech
8c829226ce0cf98c35ffce39a66f9645cff65767Jakub Hrozek/* When changing these constants, also please change sssd_functions.stp
8c829226ce0cf98c35ffce39a66f9645cff65767Jakub Hrozek */
376eaf187c13c2a1eaea0ffbdd970b6b563ab74cPetr Cech#define BE_REQ_USER 0x0001
376eaf187c13c2a1eaea0ffbdd970b6b563ab74cPetr Cech#define BE_REQ_GROUP 0x0002
376eaf187c13c2a1eaea0ffbdd970b6b563ab74cPetr Cech#define BE_REQ_INITGROUPS 0x0003
376eaf187c13c2a1eaea0ffbdd970b6b563ab74cPetr Cech#define BE_REQ_NETGROUP 0x0004
376eaf187c13c2a1eaea0ffbdd970b6b563ab74cPetr Cech#define BE_REQ_SERVICES 0x0005
376eaf187c13c2a1eaea0ffbdd970b6b563ab74cPetr Cech#define BE_REQ_SUDO_FULL 0x0006
376eaf187c13c2a1eaea0ffbdd970b6b563ab74cPetr Cech#define BE_REQ_SUDO_RULES 0x0007
376eaf187c13c2a1eaea0ffbdd970b6b563ab74cPetr Cech#define BE_REQ_BY_SECID 0x0011
376eaf187c13c2a1eaea0ffbdd970b6b563ab74cPetr Cech#define BE_REQ_USER_AND_GROUP 0x0012
376eaf187c13c2a1eaea0ffbdd970b6b563ab74cPetr Cech#define BE_REQ_BY_UUID 0x0013
376eaf187c13c2a1eaea0ffbdd970b6b563ab74cPetr Cech#define BE_REQ_BY_CERT 0x0014
376eaf187c13c2a1eaea0ffbdd970b6b563ab74cPetr Cech#define BE_REQ_TYPE_MASK 0x00FF
376eaf187c13c2a1eaea0ffbdd970b6b563ab74cPetr Cech
376eaf187c13c2a1eaea0ffbdd970b6b563ab74cPetr Cech/**
376eaf187c13c2a1eaea0ffbdd970b6b563ab74cPetr Cech * @brief Convert request type to string for logging purpose.
376eaf187c13c2a1eaea0ffbdd970b6b563ab74cPetr Cech *
376eaf187c13c2a1eaea0ffbdd970b6b563ab74cPetr Cech * @param[in] req_type Type of request.
376eaf187c13c2a1eaea0ffbdd970b6b563ab74cPetr Cech * @return Pointer to string with request type. There could be 'fast' flag.
376eaf187c13c2a1eaea0ffbdd970b6b563ab74cPetr Cech */
376eaf187c13c2a1eaea0ffbdd970b6b563ab74cPetr Cechconst char *be_req2str(dbus_uint32_t req_type);
376eaf187c13c2a1eaea0ffbdd970b6b563ab74cPetr Cech
376eaf187c13c2a1eaea0ffbdd970b6b563ab74cPetr Cech#endif /* __DATA_PROVIDER_REQ__ */