sysdb_services.c revision fd555d130dc733509347fa096a2cb858b014a196
458N/A along with this program. If not, see <http://www.gnu.org/licenses/>.
458N/A#include "db/sysdb_private.h"
458N/A#include "db/sysdb_services.h"
458N/A const char *primary_name,
458N/A char *sanitized_name;
458N/A char *sanitized_proto;
done:
return ret;
int port,
const char *proto,
char *subfilter;
if (port <= 0) {
return EINVAL;
if (!tmp_ctx) {
return ENOMEM;
if (proto) {
goto done;
(unsigned int) port);
if (!subfilter) {
goto done;
if (!res) {
goto done;
done:
return ret;
const char *primary_name,
int port,
const char **aliases,
const char **protocols,
char **remove_attrs,
bool in_transaction = false;
const char *name;
goto done;
in_transaction = true;
goto done;
goto done;
NULL);
if (!name) {
goto done;
NULL);
if (!name) {
goto done;
if(update_dn) {
primary_name));
update_dn)));
goto done;
goto done;
if (update_dn) {
if (!extra_attrs) {
if (!attrs) {
goto done;
((cache_timeout) ?
if (remove_attrs) {
goto done;
goto done;
in_transaction = false;
done:
if (in_transaction) {
return ret;
struct ldb_dn *
char *clean_name;
return NULL;
return dn;
const char *primary_name,
int port,
const char **aliases,
const char **protocols,
int lret;
if (!msg) {
goto done;
goto done;
goto done;
for (i=0; aliases[i]; i++) {
goto done;
goto done;
for (i=0; protocols[i]; i++) {
goto done;
done:
if (ret) {
return ret;
static errno_t
int port,
const char **aliases,
const char **protocols)
int lret;
return EINVAL;
if (!msg) {
goto done;
goto done;
for (i = 0; aliases[i]; i++) {
goto done;
goto done;
for (i = 0; protocols[i]; i++) {
goto done;
done:
if (ret) {
return ret;
const char *alias)
int lret;
if (!msg) {
goto done;
done:
if (ret) {
return ret;
const char *name,
int port,
const char *proto)
bool in_transaction = false;
if (!tmp_ctx) {
return ENOMEM;
goto done;
in_transaction = true;
if (name) {
goto done;
goto done;
goto done;
in_transaction = false;
done:
if (in_transaction) {
return ret;
if (!tmp_ctx) {
return ENOMEM;
if (!res) {
goto done;
done:
return ret;
const char *name,
int mod_op)
if (!tmp_ctx) {
return ENOMEM;
if (!dn) {
goto done;
done:
return ret;
const char *sub_filter,
const char **attrs,
char *filter;
int ret;
if (!tmp_ctx) {
return ENOMEM;
if (!basedn) {
goto fail;
if (!filter) {
goto fail;
if (ret) {
goto fail;
return EOK;
fail:
else if (ret) {
return ret;