Gitweb:
http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=...
Commit: 41477a7f678f5c73b0a890ed2e608471cf029c27
Parent: 40fde3c0295e7bb940e1bf4bab3b4633b50f7fe3
Author: Christine Caulfield <ccaulfie(a)redhat.com>
AuthorDate: Mon Sep 14 14:59:48 2009 +0100
Committer: Christine Caulfield <ccaulfie(a)redhat.com>
CommitterDate: Wed Sep 16 10:50:05 2009 +0100
config: in LDAP cluster entry is not a cn=
cn=cluster should be name=cluster. This gets rid of a
schema anomoly.
Signed-off-by: Christine Caulfield <ccaulfie(a)redhat.com>
---
config/plugins/ldap/configldap.c | 2 +-
config/tools/ldap/confdb2ldif.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/config/plugins/ldap/configldap.c b/config/plugins/ldap/configldap.c
index 273d702..557b08f 100644
--- a/config/plugins/ldap/configldap.c
+++ b/config/plugins/ldap/configldap.c
@@ -281,7 +281,7 @@ static int init_config(struct objdb_iface_ver0 *objdb)
return -1;
}
- rc = read_config_for(ld, objdb, OBJECT_PARENT_HANDLE, "cluster",
"cn=cluster", 1);
+ rc = read_config_for(ld, objdb, OBJECT_PARENT_HANDLE, "cluster",
"name=cluster", 1);
ldap_unbind(ld);
return 0;
diff --git a/config/tools/ldap/confdb2ldif.c b/config/tools/ldap/confdb2ldif.c
index 5f59179..607d87d 100644
--- a/config/tools/ldap/confdb2ldif.c
+++ b/config/tools/ldap/confdb2ldif.c
@@ -188,7 +188,7 @@ int main(int argc, char *argv[])
exit (1);
}
- sprintf(basedn, "cn=%s,%s", clusterroot, argv[1]);
+ sprintf(basedn, "name=%s,%s", clusterroot, argv[1]);
/* Print a header */
printf("# This file was generated by confdb2ldif, from an existing cluster
configuration\n");