Skip to contentSkip to conversation

conga ./conga.spec.in.in make/version.in ricci ...

Cluster-devel [email protected] 1 participant 1 message Oct 24, 2006

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/cluster
Module name: conga
Changes by: kupcevic at sourceware.org 2006-10-24 21:54:29

Modified files:

	.              : conga.spec.in.in 
	make           : version.in 
	ricci/init.d   : ricci 
	ricci/ricci    : Auth.cpp Auth.h Makefile 

Log message:
ricci: switch pam to sasl authentication (bz211191)

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/conga.spec.in.in.diff?cvsroot=cluster&r1=1.45&r2=1.46
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/make/version.in.diff?cvsroot=cluster&r1=1.21&r2=1.22
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/init.d/ricci.diff?cvsroot=cluster&r1=1.8&r2=1.9
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/ricci/Auth.cpp.diff?cvsroot=cluster&r1=1.4&r2=1.5
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/ricci/Auth.h.diff?cvsroot=cluster&r1=1.2&r2=1.3
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/ricci/Makefile.diff?cvsroot=cluster&r1=1.16&r2=1.17

conga.spec.in.in +6 -2
@@ -40,7 +40,10 @@
 BuildRequires: python-devel >= 2.4.1
 %endif
 BuildRequires: glibc-devel gcc-c++ libxml2-devel sed
-BuildRequires: openssl-devel dbus-devel pam-devel pkgconfig file
+#BuildRequires: pam-devel
+BuildRequires: cyrus-sasl-devel >= 2.1
+BuildRequires: openssl-devel dbus-devel pkgconfig file
+
 
 %description
 Conga is a project developing management system for remote stations. 
@@ -182,7 +185,7 @@
 Summary: Remote Management System - Managed Station
 
 Requires: initscripts
-Requires: oddjob dbus openssl pam
+Requires: oddjob dbus openssl pam cyrus-sasl >= 2.1
 Requires: sed util-linux
 Requires: modcluster >= 0.8
 
@@ -279,6 +282,7 @@
 
 
 %changelog
+
 * Wed Oct 16 2006 Stanko Kupcevic <[email protected]> 0.8-20
 - Minor GUI nits
 
make/version.in +10 -1
@@ -1,2 +1,11 @@
+#VERSION=0.9
+#RELEASE=0_TMP_BUILD___WILL_BE_1
+
+# RELEASE has such a strange format just to make sure 
+# people notice that version is not completed
+#
+# after version is ready, replace with real release number
+# 
+
 VERSION=0.8
-RELEASE=20
+RELEASE=20.4
ricci/init.d/ricci +2 -0
@@ -90,6 +90,8 @@
 		    fi
 		fi
 		
+		service saslauthd start > /dev/null 2>&1
+		
 		ssl_certs_ok
 		if [ "1$?" != "10" ] ; then
 		    generate_ssl_certs
ricci/ricci/Auth.cpp +95 -83

205 lines not on this page · raw message

ricci/ricci/Auth.h +6 -2
@@ -27,6 +27,9 @@
 #include "String.h"
 
 
+// thread safe
+
+
 class Auth
 {
  public:
@@ -34,9 +37,10 @@
   virtual ~Auth();
   
   bool authenticate(const String& passwd) const;
- private:
   
-  String _path;
+  
+  static bool initialize_auth_system();  // to be called@start-up (not required)
+  
   
 };
 
ricci/ricci/Makefile +8 -3
@@ -44,7 +44,8 @@
 LDFLAGS     += `pkg-config --libs dbus-1`
 
 
-all: ${TARGET} ${TARGET_AUTH} ${TARGET_WORKER}
+#all: ${TARGET} ${TARGET_AUTH} ${TARGET_WORKER}
+all: ${TARGET} ${TARGET_WORKER}
 
 *.o: *.h ../include/*.h
 
@@ -52,7 +53,7 @@
 	$(INSTALL_DIR)  ${sbindir}
 	$(INSTALL_BIN)  ${TARGET} ${sbindir}
 	$(INSTALL_DIR)  ${libexecdir}/ricci
-	install -m 4755 ${TARGET_AUTH}   ${libexecdir}/ricci
+	#install -m 4755 ${TARGET_AUTH}   ${libexecdir}/ricci
 	$(INSTALL_BIN)  ${TARGET_WORKER} ${libexecdir}/ricci
 	$(INSTALL_DIR)  ${localstatedir}/lib/ricci/queue
 	$(INSTALL_DIR)  ${localstatedir}/lib/ricci/certs
@@ -77,10 +78,14 @@
 
 
 $(TARGET): $(OBJECTS) 
-	$(CXX) -o $(TARGET) $(OBJECTS) $(LDFLAGS)
+	$(CXX) -o $(TARGET) $(OBJECTS) $(LDFLAGS) -lsasl2
 
 ${TARGET_AUTH}: $(TARGET_AUTH_OBJECTS)
 	$(CXX) -o ${TARGET_AUTH} $(TARGET_AUTH_OBJECTS) ${LDFLAGS} -lpam
 
 ${TARGET_WORKER}: ${TARGET_WORKER_OBJECTS}
 	$(CXX) -o ${TARGET_WORKER} ${TARGET_WORKER_OBJECTS} ${LDFLAGS}
+
+
+Auth_test: Auth_test.o Auth.o
+	$(CXX) -o Auth_test Auth_test.o Auth.o ${LDFLAGS} -lsasl2