summaryrefslogtreecommitdiffstats
path: root/src/responder/nss/nsssrv.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/responder/nss/nsssrv.c')
-rw-r--r--src/responder/nss/nsssrv.c70
1 files changed, 35 insertions, 35 deletions
diff --git a/src/responder/nss/nsssrv.c b/src/responder/nss/nsssrv.c
index 4da774cc8..685ebeb35 100644
--- a/src/responder/nss/nsssrv.c
+++ b/src/responder/nss/nsssrv.c
@@ -91,11 +91,11 @@ static int nss_clear_memcache(DBusMessage *message,
ret = errno;
if (ret == ENOENT) {
DEBUG(SSSDBG_TRACE_FUNC,
- ("CLEAR_MC_FLAG not found. Nothing to do.\n"));
+ "CLEAR_MC_FLAG not found. Nothing to do.\n");
goto done;
} else {
- DEBUG(SSSDBG_CRIT_FAILURE, ("Failed to unlink file: %s.\n",
- strerror(ret)));
+ DEBUG(SSSDBG_CRIT_FAILURE, "Failed to unlink file: %s.\n",
+ strerror(ret));
return ret;
}
}
@@ -108,18 +108,18 @@ static int nss_clear_memcache(DBusMessage *message,
300, &memcache_timeout);
if (ret != EOK) {
DEBUG(SSSDBG_FATAL_FAILURE,
- ("Unable to get memory cache entry timeout.\n"));
+ "Unable to get memory cache entry timeout.\n");
return ret;
}
/* TODO: read cache sizes from configuration */
- DEBUG(SSSDBG_TRACE_FUNC, ("Clearing memory caches.\n"));
+ DEBUG(SSSDBG_TRACE_FUNC, "Clearing memory caches.\n");
ret = sss_mmap_cache_reinit(nctx, SSS_MC_CACHE_ELEMENTS,
(time_t) memcache_timeout,
&nctx->pwd_mc_ctx);
if (ret != EOK) {
DEBUG(SSSDBG_CRIT_FAILURE,
- ("passwd mmap cache invalidation failed\n"));
+ "passwd mmap cache invalidation failed\n");
return ret;
}
@@ -128,7 +128,7 @@ static int nss_clear_memcache(DBusMessage *message,
&nctx->grp_mc_ctx);
if (ret != EOK) {
DEBUG(SSSDBG_CRIT_FAILURE,
- ("group mmap cache invalidation failed\n"));
+ "group mmap cache invalidation failed\n");
return ret;
}
@@ -147,7 +147,7 @@ static int nss_clear_netgroup_hash_table(DBusMessage *message,
ret = nss_orphan_netgroups(nctx);
if (ret != EOK) {
DEBUG(SSSDBG_CRIT_FAILURE,
- ("Could not invalidate netgroups\n"));
+ "Could not invalidate netgroups\n");
return ret;
}
@@ -181,16 +181,16 @@ static errno_t nss_get_etc_shells(TALLOC_CTX *mem_ctx, char ***_shells)
ret = ENOMEM;
goto done;
}
- DEBUG(6, ("Found shell %s in /etc/shells\n", shells[i]));
+ DEBUG(6, "Found shell %s in /etc/shells\n", shells[i]);
i++;
if (i == size) {
size += SHELL_REALLOC_INCREMENT;
if (size > SHELL_REALLOC_MAX) {
- DEBUG(0, ("Reached maximum number of shells [%d]. "
+ DEBUG(0, "Reached maximum number of shells [%d]. "
"Users may be denied access. "
"Please check /etc/shells for sanity\n",
- SHELL_REALLOC_MAX));
+ SHELL_REALLOC_MAX);
break;
}
shells = talloc_realloc(NULL, shells, char *,
@@ -245,8 +245,8 @@ static int nss_get_config(struct nss_ctx *nctx,
if (ret != EOK) goto done;
if (nctx->cache_refresh_percent < 0 ||
nctx->cache_refresh_percent > 99) {
- DEBUG(0,("Configuration error: entry_cache_nowait_percentage is "
- "invalid. Disabling feature.\n"));
+ DEBUG(0,"Configuration error: entry_cache_nowait_percentage is "
+ "invalid. Disabling feature.\n");
nctx->cache_refresh_percent = 0;
}
@@ -342,7 +342,7 @@ static int nss_memcache_initgr_check(DBusMessage *message,
DBUS_TYPE_INVALID);
if (!dbret) {
- DEBUG(SSSDBG_CRIT_FAILURE, ("Failed, to parse message!\n"));
+ DEBUG(SSSDBG_CRIT_FAILURE, "Failed, to parse message!\n");
if (dbus_error_is_set(&dbus_error)) {
dbus_error_free(&dbus_error);
}
@@ -350,7 +350,7 @@ static int nss_memcache_initgr_check(DBusMessage *message,
}
DEBUG(SSSDBG_TRACE_LIBS,
- ("Got request for [%s@%s]\n", user, domain));
+ "Got request for [%s@%s]\n", user, domain);
nss_update_initgr_memcache(nctx, user, domain, gnum, groups);
@@ -393,7 +393,7 @@ static void nss_dp_reconnect_init(struct sbus_connection *conn,
/* Did we reconnect successfully? */
if (status == SBUS_RECONNECT_SUCCESS) {
- DEBUG(1, ("Reconnected to the Data Provider.\n"));
+ DEBUG(1, "Reconnected to the Data Provider.\n");
/* Identify ourselves to the data provider */
ret = dp_common_send_id(be_conn->conn,
@@ -407,8 +407,8 @@ static void nss_dp_reconnect_init(struct sbus_connection *conn,
}
/* Failed to reconnect */
- DEBUG(0, ("Could not reconnect to %s provider.\n",
- be_conn->domain->name));
+ DEBUG(0, "Could not reconnect to %s provider.\n",
+ be_conn->domain->name);
/* FIXME: kill the frontend and let the monitor restart it ? */
/* nss_shutdown(rctx); */
@@ -440,20 +440,20 @@ int nss_process_init(TALLOC_CTX *mem_ctx,
"NSS", &nss_dp_interface,
&rctx);
if (ret != EOK) {
- DEBUG(SSSDBG_FATAL_FAILURE, ("sss_process_init() failed\n"));
+ DEBUG(SSSDBG_FATAL_FAILURE, "sss_process_init() failed\n");
return ret;
}
nctx = talloc_zero(rctx, struct nss_ctx);
if (!nctx) {
- DEBUG(0, ("fatal error initializing nss_ctx\n"));
+ DEBUG(0, "fatal error initializing nss_ctx\n");
ret = ENOMEM;
goto fail;
}
ret = sss_ncache_init(rctx, &nctx->ncache);
if (ret != EOK) {
- DEBUG(0, ("fatal error initializing negative cache\n"));
+ DEBUG(0, "fatal error initializing negative cache\n");
goto fail;
}
@@ -462,7 +462,7 @@ int nss_process_init(TALLOC_CTX *mem_ctx,
ret = nss_get_config(nctx, cdb);
if (ret != EOK) {
- DEBUG(0, ("fatal error getting nss config\n"));
+ DEBUG(0, "fatal error getting nss config\n");
goto fail;
}
@@ -472,7 +472,7 @@ int nss_process_init(TALLOC_CTX *mem_ctx,
CONFDB_SERVICE_RECON_RETRIES,
3, &max_retries);
if (ret != EOK) {
- DEBUG(0, ("Failed to set up automatic reconnection\n"));
+ DEBUG(0, "Failed to set up automatic reconnection\n");
goto fail;
}
@@ -484,7 +484,7 @@ int nss_process_init(TALLOC_CTX *mem_ctx,
err = sss_idmap_init(sss_idmap_talloc, nctx, sss_idmap_talloc_free,
&nctx->idmap_ctx);
if (err != IDMAP_SUCCESS) {
- DEBUG(SSSDBG_FATAL_FAILURE, ("sss_idmap_init failed.\n"));
+ DEBUG(SSSDBG_FATAL_FAILURE, "sss_idmap_init failed.\n");
ret = EFAULT;
goto fail;
}
@@ -493,7 +493,7 @@ int nss_process_init(TALLOC_CTX *mem_ctx,
hret = sss_hash_create_ex(nctx, 10, &nctx->netgroups, 0, 0, 0, 0,
netgroup_hash_delete_cb, NULL);
if (hret != HASH_SUCCESS) {
- DEBUG(0,("Unable to initialize netgroup hash table\n"));
+ DEBUG(0,"Unable to initialize netgroup hash table\n");
ret = EIO;
goto fail;
}
@@ -504,9 +504,9 @@ int nss_process_init(TALLOC_CTX *mem_ctx,
if (ret != 0 && errno != ENOENT) {
ret = errno;
DEBUG(SSSDBG_CRIT_FAILURE,
- ("Failed to unlink file [%s]. This can cause memory cache to "
+ "Failed to unlink file [%s]. This can cause memory cache to "
"be purged when next log rotation is requested. %d: %s\n",
- SSS_NSS_MCACHE_DIR"/"CLEAR_MC_FLAG, ret, strerror(ret)));
+ SSS_NSS_MCACHE_DIR"/"CLEAR_MC_FLAG, ret, strerror(ret));
}
ret = confdb_get_int(nctx->rctx->cdb,
@@ -515,7 +515,7 @@ int nss_process_init(TALLOC_CTX *mem_ctx,
300, &memcache_timeout);
if (ret != EOK) {
DEBUG(SSSDBG_FATAL_FAILURE,
- ("Failed to get 'memcache_timeout' option from confdb.\n"));
+ "Failed to get 'memcache_timeout' option from confdb.\n");
goto fail;
}
@@ -524,14 +524,14 @@ int nss_process_init(TALLOC_CTX *mem_ctx,
SSS_MC_CACHE_ELEMENTS, (time_t)memcache_timeout,
&nctx->pwd_mc_ctx);
if (ret) {
- DEBUG(SSSDBG_CRIT_FAILURE, ("passwd mmap cache is DISABLED\n"));
+ DEBUG(SSSDBG_CRIT_FAILURE, "passwd mmap cache is DISABLED\n");
}
ret = sss_mmap_cache_init(nctx, "group", SSS_MC_GROUP,
SSS_MC_CACHE_ELEMENTS, (time_t)memcache_timeout,
&nctx->grp_mc_ctx);
if (ret) {
- DEBUG(SSSDBG_CRIT_FAILURE, ("group mmap cache is DISABLED\n"));
+ DEBUG(SSSDBG_CRIT_FAILURE, "group mmap cache is DISABLED\n");
}
/* Set up file descriptor limits */
@@ -542,24 +542,24 @@ int nss_process_init(TALLOC_CTX *mem_ctx,
&fd_limit);
if (ret != EOK) {
DEBUG(SSSDBG_FATAL_FAILURE,
- ("Failed to set up file descriptor limit\n"));
+ "Failed to set up file descriptor limit\n");
goto fail;
}
responder_set_fd_limit(fd_limit);
ret = schedule_get_domains_task(rctx, rctx->ev, rctx);
if (ret != EOK) {
- DEBUG(SSSDBG_FATAL_FAILURE, ("schedule_get_domains_tasks failed.\n"));
+ DEBUG(SSSDBG_FATAL_FAILURE, "schedule_get_domains_tasks failed.\n");
goto fail;
}
ret = sss_names_init(nctx, nctx->rctx->cdb, NULL, &nctx->global_names);
if (ret != EOK) {
- DEBUG(SSSDBG_CRIT_FAILURE, ("sss_names_init failed.\n"));
+ DEBUG(SSSDBG_CRIT_FAILURE, "sss_names_init failed.\n");
goto fail;
}
- DEBUG(SSSDBG_TRACE_FUNC, ("NSS Initialization complete\n"));
+ DEBUG(SSSDBG_TRACE_FUNC, "NSS Initialization complete\n");
return EOK;
@@ -608,7 +608,7 @@ int main(int argc, const char *argv[])
ret = die_if_parent_died();
if (ret != EOK) {
/* This is not fatal, don't return */
- DEBUG(2, ("Could not set up to exit when parent process does\n"));
+ DEBUG(2, "Could not set up to exit when parent process does\n");
}
ret = nss_process_init(main_ctx,