Skip to contentSkip to conversation

Cluster Project branch, master, updated. cluster-2.99.05-60-gd049388

Cluster-devel [email protected] 1 participant 1 message Jul 10, 2008

lore
Share & tools
lore
#0 lore raw

This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "Cluster Project".

http://sources.redhat.com/git/gitweb.cgi?p=cluster.git;a=commitdiff;h=d049388bf38cb58f7121fae8afab1be8277caad5

The branch, master has been updated

       via  d049388bf38cb58f7121fae8afab1be8277caad5 (commit)
      from  b67b729e452fa8f76fd13669c1879122cb59fdc6 (commit)

Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below.

- Log ----------------------------------------------------------------- commit d049388bf38cb58f7121fae8afab1be8277caad5

Author: Christine Caulfield <[email protected]>
Date:   Thu Jul 10 08:51:04 2008 +0100

[CONFIG] rename ldap config generator

Rename loadldap to confdb2ldif. This more accurately expresses what the program does. I've also added a comment to the generated ldif file.

-----------------------------------------------------------------------

Summary of changes:

 config/tools/ldap/Makefile                      |    5 ++---
 config/tools/ldap/{loadldap.c => confdb2ldif.c} |    5 +++++
 2 files changed, 7 insertions(+), 3 deletions(-)
 rename config/tools/ldap/{loadldap.c => confdb2ldif.c} (96%)
config/tools/ldap/Makefile +2 -3
index dae9849..2eacf97 100644
@@ -1,4 +1,4 @@
-TARGET= loadldap
+TARGET= confdb2ldif
 
 SBINDIRT=$(TARGET)
 
@@ -10,7 +10,7 @@ include $(OBJDIR)/make/clean.mk
 include $(OBJDIR)/make/install.mk
 include $(OBJDIR)/make/uninstall.mk
 
-OBJS=	loadldap.o
+OBJS=	confdb2ldif.o
 
 CFLAGS += -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE
 CFLAGS += -I${openaisincdir}
@@ -23,7 +23,6 @@ ${TARGET}: ${OBJS}
 	$(CC) -o $@ $^ $(LDFLAGS)
 
 depends:
-	$(MAKE) -C ../../libs all
 
 clean: generalclean
 
config/tools/ldap/confdb2ldif.c renamed from config/tools/ldap/loadldap.c +5 -0
similarity index 96%
rename from config/tools/ldap/loadldap.c
rename to config/tools/ldap/confdb2ldif.c
index c6c8f01..d173d00 100644
@@ -37,6 +37,7 @@ struct objectclasses
 	{ "device", "rhcsFenceagent" },
 	{ "fencedevice", "rhcsFencedevice" },
 	{ "method", "rhcsFencemethod" },
+	{ "logging", "rhcsLoggersubsys" },
 };
 /* TODO: Add more here as the schema gets filled in */
 
@@ -197,6 +198,10 @@ int main(int argc, char *argv[])
 
 	sprintf(basedn, "cn=%s,%s", clusterroot, argv[1]);
 
+	/* Print a header */
+	printf("# This file was generated by confdb2ldif, from an existing cluster configuration\n");
+	printf("#\n");
+
 	/* Print the configuration */
 	print_config_tree(handle, cluster_handle, clusterroot, basedn);
 

hooks/post-receive
--
Cluster Project