sysdb_services.h revision 4fcc50e133f90cd4c5931a3ac48c84cb628b16fc
/*
SSSD
Authors:
Stephen Gallagher <sgallagh@redhat.com>
Copyright (C) 2012 Red Hat
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef SYSDB_SERVICES_H_
#define SYSDB_SERVICES_H_
#define SYSDB_SVC_CLASS "service"
#define SYSDB_SVC_CONTAINER "cn=services"
#define SYSDB_SVC_PORT "servicePort"
#define SYSDB_SVC_PROTO "serviceProtocol"
#define SYSDB_SVC_BYNAME_FILTER "(&("SYSDB_SVC_PROTO"=%s)(|("SYSDB_NAME_ALIAS"=%s)("SYSDB_NAME"=%s)))"
#define SYSDB_SVC_ATTRS { \
SYSDB_NAME, \
NULL }
struct sss_domain_info *domain,
const char *name,
const char *proto,
struct ldb_result **_res);
struct sss_domain_info *domain,
int port,
const char *proto,
struct ldb_result **_res);
struct sss_domain_info *domain,
struct ldb_result **_res);
const char *primary_name,
int port,
const char **aliases,
const char **protocols,
struct sysdb_attrs *extra_attrs,
char **remove_attrs,
struct ldb_dn *
struct sss_domain_info *domain,
const char *primary_name,
int port,
const char **aliases,
const char **protocols,
const char *name,
int port,
const char *proto);
const char *name,
struct sysdb_attrs *attrs,
int mod_op);
struct sss_domain_info *domain,
const char *sub_filter,
const char **attrs,
struct ldb_message ***msgs);
#endif /* SYSDB_SERVICES_H_ */