summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSimo Sorce <ssorce@redhat.com>2011-04-07 15:45:09 -0400
committerSimo Sorce <ssorce@redhat.com>2011-04-13 17:44:28 -0400
commit4fdee87041850d6052f655e3c75c5c0a515be207 (patch)
tree14d92b27770014b7737dd06bf154e447ca82fa8c /src
parente6e26182d58c05d896f72f2925426658a6dc70b5 (diff)
downloadsssd-4fdee87041850d6052f655e3c75c5c0a515be207.tar.gz
sssd-4fdee87041850d6052f655e3c75c5c0a515be207.tar.bz2
sssd-4fdee87041850d6052f655e3c75c5c0a515be207.zip
sysdb: use header defined macros instead of explicit values
Diffstat (limited to 'src')
-rw-r--r--src/db/sysdb.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/db/sysdb.c b/src/db/sysdb.c
index cd785219..26904f4f 100644
--- a/src/db/sysdb.c
+++ b/src/db/sysdb.c
@@ -787,7 +787,7 @@ static int sysdb_upgrade_01(TALLOC_CTX *mem_ctx,
char *domain;
int ret, i, j;
- basedn = ldb_dn_new(mem_ctx, ldb, "cn=sysdb");
+ basedn = ldb_dn_new(mem_ctx, ldb, SYSDB_BASE);
if (!basedn) {
ret = EIO;
goto done;
@@ -881,7 +881,7 @@ static int sysdb_upgrade_01(TALLOC_CTX *mem_ctx,
ret = ENOMEM;
goto done;
}
- msg->dn = ldb_dn_new(mem_ctx, ldb, "cn=sysdb");
+ msg->dn = ldb_dn_new(mem_ctx, ldb, SYSDB_BASE);
if (!msg->dn) {
ret = ENOMEM;
goto done;
@@ -957,7 +957,7 @@ static int sysdb_check_upgrade_02(TALLOC_CTX *mem_ctx,
return ret;
}
- verdn = ldb_dn_new(tmp_ctx, ldb, "cn=sysdb");
+ verdn = ldb_dn_new(tmp_ctx, ldb, SYSDB_BASE);
if (!verdn) {
ret = EIO;
goto exit;
@@ -1200,7 +1200,7 @@ static int sysdb_check_upgrade_02(TALLOC_CTX *mem_ctx,
ret = ENOMEM;
goto done;
}
- msg->dn = ldb_dn_new(tmp_ctx, ldb, "cn=sysdb");
+ msg->dn = ldb_dn_new(tmp_ctx, ldb, SYSDB_BASE);
if (!msg->dn) {
ret = ENOMEM;
goto done;
@@ -1300,7 +1300,7 @@ static int sysdb_upgrade_03(struct sysdb_ctx *ctx, const char **ver)
ret = ENOMEM;
goto done;
}
- msg->dn = ldb_dn_new(tmp_ctx, ctx->ldb, "cn=sysdb");
+ msg->dn = ldb_dn_new(tmp_ctx, ctx->ldb, SYSDB_BASE);
if (!msg->dn) {
ret = ENOMEM;
goto done;
@@ -1413,7 +1413,7 @@ static int sysdb_upgrade_04(struct sysdb_ctx *ctx, const char **ver)
ret = ENOMEM;
goto done;
}
- msg->dn = ldb_dn_new(tmp_ctx, ctx->ldb, "cn=sysdb");
+ msg->dn = ldb_dn_new(tmp_ctx, ctx->ldb, SYSDB_BASE);
if (!msg->dn) {
ret = ENOMEM;
goto done;
@@ -1521,7 +1521,7 @@ static int sysdb_upgrade_05(struct sysdb_ctx *ctx, const char **ver)
ret = ENOMEM;
goto done;
}
- msg->dn = ldb_dn_new(tmp_ctx, ctx->ldb, "cn=sysdb");
+ msg->dn = ldb_dn_new(tmp_ctx, ctx->ldb, SYSDB_BASE);
if (!msg->dn) {
ret = ENOMEM;
goto done;
@@ -1610,7 +1610,7 @@ static int sysdb_domain_init_internal(TALLOC_CTX *mem_ctx,
return ENOMEM;
}
- verdn = ldb_dn_new(tmp_ctx, ctx->ldb, "cn=sysdb");
+ verdn = ldb_dn_new(tmp_ctx, ctx->ldb, SYSDB_BASE);
if (!verdn) {
ret = EIO;
goto done;
@@ -1683,7 +1683,7 @@ static int sysdb_domain_init_internal(TALLOC_CTX *mem_ctx,
goto done;
}
- /* cn=sysdb does not exists, means db is empty, populate */
+ /* SYSDB_BASE does not exists, means db is empty, populate */
base_ldif = SYSDB_BASE_LDIF;
while ((ldif = ldb_ldif_read_string(ctx->ldb, &base_ldif))) {