Send Linux-ha-cvs mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        http://lists.community.tummy.com/mailman/listinfo/linux-ha-cvs
or, via email, send a message with subject or body 'help' to
        [EMAIL PROTECTED]

You can reach the person managing the list at
        [EMAIL PROTECTED]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Linux-ha-cvs digest..."


Today's Topics:

   1. Linux-HA CVS: mgmt by zhenh from 
      ([email protected])
   2. Linux-HA CVS: mgmt by zhenh from 
      ([email protected])
   3. Linux-HA CVS: mgmt by zhenh from 
      ([email protected])
   4. Linux-HA CVS: mgmt by zhenh from 
      ([email protected])
   5. Linux-HA CVS: mgmt by zhenh from 
      ([email protected])


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

Message: 1
Date: Tue,  6 Dec 2005 22:21:13 -0700 (MST)
From: [email protected]
Subject: [Linux-ha-cvs] Linux-HA CVS: mgmt by zhenh from 
To: [EMAIL PROTECTED]
Message-ID: <[EMAIL PROTECTED]>

linux-ha CVS committal

Author  : zhenh
Host    : 
Project : linux-ha
Module  : mgmt

Dir     : linux-ha/mgmt/client


Removed Files:
        testclient.c 


Log Message:
change name to mgmtdtet.c




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

Message: 2
Date: Tue,  6 Dec 2005 22:24:38 -0700 (MST)
From: [email protected]
Subject: [Linux-ha-cvs] Linux-HA CVS: mgmt by zhenh from 
To: [EMAIL PROTECTED]
Message-ID: <[EMAIL PROTECTED]>

linux-ha CVS committal

Author  : zhenh
Host    : 
Project : linux-ha
Module  : mgmt

Dir     : linux-ha/mgmt/client


Added Files:
        mgmtdtest.c 


Log Message:
change name to mgmtdtet.c




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

Message: 3
Date: Tue,  6 Dec 2005 22:28:03 -0700 (MST)
From: [email protected]
Subject: [Linux-ha-cvs] Linux-HA CVS: mgmt by zhenh from 
To: [EMAIL PROTECTED]
Message-ID: <[EMAIL PROTECTED]>

linux-ha CVS committal

Author  : zhenh
Host    : 
Project : linux-ha
Module  : mgmt

Dir     : linux-ha/mgmt/client


Modified Files:
        Makefile.am 


Log Message:
change name to mgmtdtest.c
===================================================================
RCS file: /home/cvs/linux-ha/linux-ha/mgmt/client/Makefile.am,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- Makefile.am 6 Dec 2005 15:35:08 -0000       1.3
+++ Makefile.am 7 Dec 2005 05:28:02 -0000       1.4
@@ -19,19 +19,19 @@
 #
 MAINTAINERCLEANFILES    = Makefile.in
 
-halibdir       = $(libdir)/@HB_PKG@
-halib_SCRIPTS  = haclient.py   
-halib_DATA     = haclient.glade ha.png
+halibdir               = $(libdir)/@HB_PKG@
+halib_SCRIPTS          = haclient.py   
+halib_DATA             = haclient.glade ha.png
 
-INCLUDES             = -I$(top_builddir)/include  -I$(top_srcdir)/include \
-                       -I$(top_builddir)/linux-ha -I$(top_srcdir)/linux-ha \
-                       -I$(top_builddir)/libltdl -I$(top_srcdir)/libltdl
+INCLUDES               = -I$(top_builddir)/include  -I$(top_srcdir)/include \
+                         -I$(top_builddir)/linux-ha -I$(top_srcdir)/linux-ha \
+                         -I$(top_builddir)/libltdl -I$(top_srcdir)/libltdl
 
-MGMT_DIR               =       mgmt
+MGMT_DIR               = mgmt
 
-noinst_PROGRAMS        =       testclient
-testclient_SOURCES     =       testclient.c
-testclient_LDFLAGS     =       
$(top_builddir)/lib/$(MGMT_DIR)/libmgmtclient.la \
-                               $(top_builddir)/lib/$(MGMT_DIR)/libmgmttls.la \
-                               
$(top_builddir)/lib/$(MGMT_DIR)/libmgmtcommon.la \
-                               `libgnutls-config --libs`
+halib_PROGRAMS                 = mgmtdtest
+mgmtdtest_SOURCES      = mgmtdtest.c
+mgmtdtest_LDFLAGS      = $(top_builddir)/lib/$(MGMT_DIR)/libmgmtclient.la \
+                         $(top_builddir)/lib/$(MGMT_DIR)/libmgmttls.la \
+                         $(top_builddir)/lib/$(MGMT_DIR)/libmgmtcommon.la \
+                         `libgnutls-config --libs`




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

Message: 4
Date: Tue,  6 Dec 2005 22:28:51 -0700 (MST)
From: [email protected]
Subject: [Linux-ha-cvs] Linux-HA CVS: mgmt by zhenh from 
To: [EMAIL PROTECTED]
Message-ID: <[EMAIL PROTECTED]>

linux-ha CVS committal

Author  : zhenh
Host    : 
Project : linux-ha
Module  : mgmt

Dir     : linux-ha/mgmt/daemon


Modified Files:
        mgmtd.c 


Log Message:
add test mode. in test mode, the client can use any password to login, used in 
BasicSanityCheck.
===================================================================
RCS file: /home/cvs/linux-ha/linux-ha/mgmt/daemon/mgmtd.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -3 -r1.6 -r1.7
--- mgmtd.c     6 Dec 2005 16:09:39 -0000       1.6
+++ mgmtd.c     7 Dec 2005 05:28:51 -0000       1.7
@@ -43,6 +43,9 @@
 #include <mgmt/mgmt_client.h>
 #include "mgmt_internal.h"
 
+#define OPTARGS                "skrhvt"
+#define PID_FILE       HA_VARRUNDIR"/mgmtd.pid"
+
 
 /* common daemon and debug functions */
 static gboolean debug_level_adjust(int nsig, gpointer user_data);
@@ -84,8 +87,9 @@
 
 const char* mgmtd_name         = "mgmtd";
 
-static GMainLoop* mainloop     = NULL;
 extern int debug_level;
+int test_mode = FALSE;
+static GMainLoop* mainloop     = NULL;
 static GHashTable* clients     = NULL;
 static GHashTable* evt_map     = NULL;         
 
@@ -118,6 +122,9 @@
                        case 'r':               /* Restart */
                                req_restart = TRUE;
                                break;
+                       case 't':               /* in test mode, any password 
is acceptable */
+                               test_mode = TRUE;
+                               break;
                        default:
                                ++argerr;
                                break;
@@ -212,9 +219,9 @@
        return rc;
 }
 
-static const char usagemsg[] = "[-srkhv]\n\ts: status\n\tr: restart"
+static const char usagemsg[] = "[-srkhvt]\n\ts: status\n\tr: restart"
        "\n\tk: kill\n\t"
-       "h: help\n\tv: debug\n";
+       "h: help\n\tv: debug\n\tv: testmode\n";
 
 void
 usage(const char* cmd, int exit_status)
@@ -503,7 +510,10 @@
        pam_handle_t *pamh = NULL;
        int ret;
        struct pam_conv conv;
-
+       
+       if (test_mode) {
+               return 0;
+       }
        conv.conv = pam_conv;
        conv.appdata_ptr = strdup(passwd);
 




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

Message: 5
Date: Tue,  6 Dec 2005 22:29:41 -0700 (MST)
From: [email protected]
Subject: [Linux-ha-cvs] Linux-HA CVS: mgmt by zhenh from 
To: [EMAIL PROTECTED]
Message-ID: <[EMAIL PROTECTED]>

linux-ha CVS committal

Author  : zhenh
Host    : 
Project : linux-ha
Module  : mgmt

Dir     : linux-ha/mgmt/daemon


Modified Files:
        mgmt_internal.h 


Log Message:
move some macros to mgmtd.c
===================================================================
RCS file: /home/cvs/linux-ha/linux-ha/mgmt/daemon/mgmt_internal.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- mgmt_internal.h     6 Dec 2005 16:06:14 -0000       1.1
+++ mgmt_internal.h     7 Dec 2005 05:29:41 -0000       1.2
@@ -25,8 +25,6 @@
 
 #include <mgmt/mgmt_common.h>
 
-#define OPTARGS                "skrhv"
-#define PID_FILE       HA_VARRUNDIR"/mgmtd.pid"
 #define ENV_PREFIX     "HA_"
 #define KEY_LOGDAEMON   "use_logd"
 #define HADEBUGVAL     "HA_DEBUG"




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

_______________________________________________
Linux-ha-cvs mailing list
[email protected]
http://lists.community.tummy.com/mailman/listinfo/linux-ha-cvs


End of Linux-ha-cvs Digest, Vol 25, Issue 12
********************************************

Reply via email to