sysdb_services.h revision e299638926171e0e92a36122aeff6611cd52418d
658187feb755694eb5ff29561bda7109c22c743cAlexis Tsogias Stephen Gallagher <sgallagh@redhat.com>
658187feb755694eb5ff29561bda7109c22c743cAlexis Tsogias Copyright (C) 2012 Red Hat
658187feb755694eb5ff29561bda7109c22c743cAlexis Tsogias This program is free software; you can redistribute it and/or modify
658187feb755694eb5ff29561bda7109c22c743cAlexis Tsogias it under the terms of the GNU General Public License as published by
658187feb755694eb5ff29561bda7109c22c743cAlexis Tsogias the Free Software Foundation; either version 3 of the License, or
658187feb755694eb5ff29561bda7109c22c743cAlexis Tsogias (at your option) any later version.
658187feb755694eb5ff29561bda7109c22c743cAlexis Tsogias This program is distributed in the hope that it will be useful,
658187feb755694eb5ff29561bda7109c22c743cAlexis Tsogias but WITHOUT ANY WARRANTY; without even the implied warranty of
658187feb755694eb5ff29561bda7109c22c743cAlexis Tsogias MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
658187feb755694eb5ff29561bda7109c22c743cAlexis Tsogias GNU General Public License for more details.
c95de7451b35950f21196b610dab702730221a98Alexis Tsogias You should have received a copy of the GNU General Public License
658187feb755694eb5ff29561bda7109c22c743cAlexis Tsogias along with this program. If not, see <http://www.gnu.org/licenses/>.
658187feb755694eb5ff29561bda7109c22c743cAlexis Tsogias#define SYSDB_SC "objectclass="SYSDB_SVC_CLASS
c95de7451b35950f21196b610dab702730221a98Alexis Tsogias#define SYSDB_TMPL_SVC_BASE SYSDB_SVC_CONTAINER",cn=%s,"SYSDB_BASE
658187feb755694eb5ff29561bda7109c22c743cAlexis Tsogias#define SYSDB_TMPL_SVC SYSDB_NAME"=%s,"SYSDB_TMPL_SVC_BASE
658187feb755694eb5ff29561bda7109c22c743cAlexis Tsogias#define SYSDB_SVC_BYNAME_FILTER "(&("SYSDB_SC")("SYSDB_SVC_PROTO"=%s)(|("SYSDB_NAME_ALIAS"=%s)("SYSDB_NAME"=%s)))"
658187feb755694eb5ff29561bda7109c22c743cAlexis Tsogias#define SYSDB_SVC_BYPORT_FILTER "(&("SYSDB_SC")("SYSDB_SVC_PROTO"=%s)("SYSDB_SVC_PORT"=%u))"
658187feb755694eb5ff29561bda7109c22c743cAlexis Tsogiassysdb_svc_dn(struct sysdb_ctx *sysdb, TALLOC_CTX *mem_ctx,
658187feb755694eb5ff29561bda7109c22c743cAlexis Tsogias const char *proto);
8fb127028cb7dd361e348a3252e33487f73428bcJonathan von Schroeder#endif /* SYSDB_SERVICES_H_ */