summaryrefslogtreecommitdiff
path: root/src/db
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2013-01-06 10:50:38 -0500
committerJakub Hrozek <jhrozek@redhat.com>2013-01-07 10:03:11 +0100
commit5c95a8f77a37cd9ca4e2f6037bebade5284f415c (patch)
treecb2fb9badc33936738896fdd11cf1e42d1739e6c /src/db
parent84f9101ebe880e2b83062e5fba5cb2e519abeb0d (diff)
downloadsssd-5c95a8f77a37cd9ca4e2f6037bebade5284f415c.tar.gz
sssd-5c95a8f77a37cd9ca4e2f6037bebade5284f415c.tar.bz2
sssd-5c95a8f77a37cd9ca4e2f6037bebade5284f415c.zip
Remove redundant definition.
We had 2 defines for the same class. Consolidate and remove confusion.
Diffstat (limited to 'src/db')
-rw-r--r--src/db/sysdb.h1
-rw-r--r--src/db/sysdb_ranges.c2
2 files changed, 1 insertions, 2 deletions
diff --git a/src/db/sysdb.h b/src/db/sysdb.h
index ed00c165..35888977 100644
--- a/src/db/sysdb.h
+++ b/src/db/sysdb.h
@@ -43,7 +43,6 @@
#define SYSDB_TMPL_RANGE_BASE SYSDB_RANGE_CONTAINER",cn=%s,"SYSDB_BASE
#define SYSDB_SUBDOMAIN_CLASS "subdomain"
-#define SYSDB_RANGE_CLASS "idrange"
#define SYSDB_USER_CLASS "user"
#define SYSDB_GROUP_CLASS "group"
#define SYSDB_NETGROUP_CLASS "netgroup"
diff --git a/src/db/sysdb_ranges.c b/src/db/sysdb_ranges.c
index adbabf7b..f49a184f 100644
--- a/src/db/sysdb_ranges.c
+++ b/src/db/sysdb_ranges.c
@@ -75,7 +75,7 @@ errno_t sysdb_get_ranges(TALLOC_CTX *mem_ctx, struct sysdb_ctx *sysdb,
}
ret = ldb_search(sysdb->ldb, tmp_ctx, &res,
basedn, LDB_SCOPE_ONELEVEL,
- attrs, "objectclass=%s", SYSDB_RANGE_CLASS);
+ attrs, "objectclass=%s", SYSDB_ID_RANGE_CLASS);
if (ret != LDB_SUCCESS) {
ret = EIO;
goto done;