4c1bf6607060cea867fccf667063c028dfd51e96Stephen Gallagher Stephen Gallagher <sgallagh@redhat.com>
4c1bf6607060cea867fccf667063c028dfd51e96Stephen Gallagher Copyright (C) 2012 Red Hat
4c1bf6607060cea867fccf667063c028dfd51e96Stephen Gallagher This program is free software; you can redistribute it and/or modify
4c1bf6607060cea867fccf667063c028dfd51e96Stephen Gallagher it under the terms of the GNU General Public License as published by
4c1bf6607060cea867fccf667063c028dfd51e96Stephen Gallagher the Free Software Foundation; either version 3 of the License, or
4c1bf6607060cea867fccf667063c028dfd51e96Stephen Gallagher (at your option) any later version.
4c1bf6607060cea867fccf667063c028dfd51e96Stephen Gallagher This program is distributed in the hope that it will be useful,
4c1bf6607060cea867fccf667063c028dfd51e96Stephen Gallagher but WITHOUT ANY WARRANTY; without even the implied warranty of
4c1bf6607060cea867fccf667063c028dfd51e96Stephen Gallagher MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
4c1bf6607060cea867fccf667063c028dfd51e96Stephen Gallagher GNU General Public License for more details.
4c1bf6607060cea867fccf667063c028dfd51e96Stephen Gallagher You should have received a copy of the GNU General Public License
4c1bf6607060cea867fccf667063c028dfd51e96Stephen Gallagher along with this program. If not, see <http://www.gnu.org/licenses/>.
4c1bf6607060cea867fccf667063c028dfd51e96Stephen Gallagher#define SYSDB_SC "objectclass="SYSDB_SVC_CLASS
4c1bf6607060cea867fccf667063c028dfd51e96Stephen Gallagher#define SYSDB_TMPL_SVC_BASE SYSDB_SVC_CONTAINER",cn=%s,"SYSDB_BASE
4c1bf6607060cea867fccf667063c028dfd51e96Stephen Gallagher#define SYSDB_TMPL_SVC SYSDB_NAME"=%s,"SYSDB_TMPL_SVC_BASE
fd555d130dc733509347fa096a2cb858b014a196Simo Sorce#define SYSDB_SVC_BYNAME_FILTER "(&("SYSDB_SVC_PROTO"=%s)(|("SYSDB_NAME_ALIAS"=%s)("SYSDB_NAME"=%s)))"
fd555d130dc733509347fa096a2cb858b014a196Simo Sorce#define SYSDB_SVC_BYPORT_FILTER "(&("SYSDB_SVC_PROTO"=%s)("SYSDB_SVC_PORT"=%u))"
4fcc50e133f90cd4c5931a3ac48c84cb628b16fcMichal Zideksysdb_store_service(struct sss_domain_info *domain,
4c1bf6607060cea867fccf667063c028dfd51e96Stephen Gallaghersysdb_svc_dn(struct sysdb_ctx *sysdb, TALLOC_CTX *mem_ctx,
681742138b2afbbefa7f14de937beb438409208eSimo Sorce const char **aliases,
681742138b2afbbefa7f14de937beb438409208eSimo Sorce const char **protocols,
4fcc50e133f90cd4c5931a3ac48c84cb628b16fcMichal Zideksysdb_svc_delete(struct sss_domain_info *domain,
4fcc50e133f90cd4c5931a3ac48c84cb628b16fcMichal Zideksysdb_set_service_attr(struct sss_domain_info *domain,
eb29ae58117ca88868491fe2240e27393c7a9068Jakub Hrozek const char *name,
d0483eefc41ac295ed4c56e08ad76ca7b5fb3b2cSimo Sorceerrno_t sysdb_search_services(TALLOC_CTX *mem_ctx,
d0483eefc41ac295ed4c56e08ad76ca7b5fb3b2cSimo Sorce const char **attrs,
4c1bf6607060cea867fccf667063c028dfd51e96Stephen Gallagher#endif /* SYSDB_SERVICES_H_ */