Hi, Rodrigo Henriquez,

Thank you for trying the new management daemon and GUI code.

Now there are several issues to run the management daemon and GUI client.

1. we need install following packages on the machine running the GUI client
        swig
        python(2.4) and python-devel
        python-gtk(>2.4)
        gnutls

2. we need install following packages on the machine running the daemon
        gnutls
        pam-devel

3. we need building python binding library on the machine running the GUI 
client. Run following commands in lib/mgmt/ :
        swig -python pymgmt.i
        gcc -c pymgmt_wrap.c -I /usr/include/python2.4/ -I ../../include/
        gcc -shared pymgmt_wrap.o libmgmtclient_la-mgmt_client_lib.o  
libmgmttls_la-mgmt_tls_lib.o libmgmtcommon_la-mgmt_common_lib.o 
`libgnutls-config --libs` -o _pymgmt.so
        cp _pymgmt.so pymgmt.py /usr/lib/heartbeat/

For the point 1, 2 and 3, thank Mr. Sun Jiang Dong, he is helping me on the 
makefile, it should be ready tomorrow.

4. change the /etc/pam.d/mgmtd to the format according to the distribution of 
the node running the daemon.

5. we need add mgmtd to ha.cf as root.
"
...
apiauth         mgmtd   uid=root
crm             1
respawn         root    /usr/lib/heartbeat/mgmtd -v
...
"

6. mgmtd uses the port 5560, please open it in firewall configuration.

7. change the password of hacluster on the node running the daemon, so you can 
use the password to login later.

8. running /usr/lib/heartbeat/haclient.py


About the point 4, the pam one, the difference of pam config files is a 
problem, and some system even doesn't use pam at all.
Any suggestions on this security issue?

And the testing of the GUI is welcome!


Rodrigo Henriquez M. wrote:
FYI:

./ConfigureMe make --enable-crm --disable-fatal-warnings
--enable-mgmt


make[1]: Entering directory `/home/rhenriqu/dev/linux-ha/mgmt'
Making all in daemon
make[2]: Entering directory `/home/rhenriqu/dev/linux-ha/mgmt/daemon'
gcc -DHAVE_CONFIG_H -I. -I. -I../../linux-ha -I../../include
-I../../include  -I../../include                       -I../../libltdl
-I../../libltdl                      -I../../linux-ha -I../../linux-ha
-I../..          -I../..  -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD
-DHAVE_NET_ETHERNET_H  -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include     -g -O2  -Wall -Wmissing-prototypes
-Wmissing-declarations -Wstrict-prototypes -Wpointer-arith
-Wwrite-strings -Wcast-qual -Wcast-align -Wbad-function-cast -Winline
-Wmissing-format-attribute -Wformat=2 -Wformat-security
-Wformat-nonliteral -Wno-long-long -Wno-strict-aliasing   -ggdb3
-funsigned-char -c mgmtd.c
mgmtd.c:27:31: error: security/pam_appl.h: No existe el fichero o el
directorio
In file included from ../../include/heartbeat.h:47,
                 from mgmtd.c:30:
/usr/include/sys/ipc.h:25:3: warning: #warning "Files using this header
must be compiled with _SVID_SOURCE or _XOPEN_SOURCE"
mgmtd.c:39:22: error: mgmt/tls.h: No existe el fichero o el directorio
mgmtd.c:86: warning: 'struct pam_response' declared inside parameter
list
mgmtd.c:86: warning: its scope is only this definition or declaration,
which is probably not what you want
mgmtd.c:86: warning: 'struct pam_message' declared inside parameter list
mgmtd.c: In function 'register_pid':
mgmtd.c:257: warning: implicit declaration of function 'sigignore'
mgmtd.c: In function 'init_start':
mgmtd.c:339: warning: implicit declaration of function 'tls_init_server'
mgmtd.c:353: error: 'PORT' undeclared (first use in this function)
mgmtd.c:353: error: (Each undeclared identifier is reported only once
mgmtd.c:353: error: for each function it appears in.)
mgmtd.c: In function 'on_listen':
mgmtd.c:401: warning: passing argument 3 of 'accept' from incompatible
pointer type
mgmtd.c:407: warning: implicit declaration of function
'tls_attach_server'
mgmtd.c:407: warning: assignment makes pointer from integer without a
cast
mgmtd.c:408: warning: implicit declaration of function
'mgmt_session_recvmsg'
mgmtd.c:408: warning: assignment makes pointer from integer without a
cast
mgmtd.c:414: warning: implicit declaration of function
'mgmt_session_sendmsg'
mgmtd.c:415: warning: implicit declaration of function 'tls_detach'
mgmtd.c: In function 'on_msg_arrived':
mgmtd.c:450: warning: cast from pointer to integer of different size
mgmtd.c:454: warning: assignment makes pointer from integer without a
cast
mgmtd.c: In function 'new_client':
mgmtd.c:485: warning: cast to pointer from integer of different size
mgmtd.c: In function 'pam_auth':
mgmtd.c:518: error: 'pam_handle_t' undeclared (first use in this
function)
mgmtd.c:518: error: 'pamh' undeclared (first use in this function)
mgmtd.c:520: error: storage size of 'conv' isn't known
mgmtd.c:525: warning: implicit declaration of function 'pam_start'
mgmtd.c:527: error: 'PAM_SUCCESS' undeclared (first use in this
function)
mgmtd.c:528: warning: implicit declaration of function
'pam_authenticate'
mgmtd.c:530: warning: implicit declaration of function 'pam_end'
mgmtd.c:520: warning: unused variable 'conv'
mgmtd.c: At top level:
mgmtd.c:536: warning: 'struct pam_response' declared inside parameter
list
mgmtd.c:536: warning: 'struct pam_message' declared inside parameter
list
mgmtd.c:537: error: conflicting types for 'pam_conv'
mgmtd.c:86: error: previous declaration of 'pam_conv' was here
mgmtd.c: In function 'pam_conv':
mgmtd.c:547: error: dereferencing pointer to incomplete type
mgmtd.c:549: error: 'PAM_CONV_ERR' undeclared (first use in this
function)
mgmtd.c:551: error: dereferencing pointer to incomplete type
mgmtd.c:555: error: dereferencing pointer to incomplete type
mgmtd.c:556: error: 'PAM_PROMPT_ECHO_OFF' undeclared (first use in this
function)
mgmtd.c:557: error: 'PAM_PROMPT_ECHO_ON' undeclared (first use in this
function)
mgmtd.c:558: error: invalid use of undefined type 'struct pam_response'
mgmtd.c:558: error: dereferencing pointer to incomplete type
mgmtd.c:560: error: 'PAM_ERROR_MSG' undeclared (first use in this
function)
mgmtd.c:561: error: 'PAM_TEXT_INFO' undeclared (first use in this
function)
mgmtd.c:570: error: 'PAM_SUCCESS' undeclared (first use in this
function)
mgmtd.c: In function 'fire_evt':
mgmtd.c:602: warning: cast from pointer to integer of different size
mgmtd.c:607: warning: cast to pointer from integer of different size
mgmtd.c: In function 'reg_evt':
mgmtd.c:648: warning: cast to pointer from integer of different size
make[2]: *** [mgmtd.o] Error 1
make[2]: Leaving directory `/home/rhenriqu/dev/linux-ha/mgmt/daemon'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/rhenriqu/dev/linux-ha/mgmt'
make: *** [all-recursive] Error 1


Working on :

[EMAIL PROTECTED]:~/dev/linux-ha$ uname -a
Linux muadib 2.6.12-1-amd64-generic #1 Wed Sep 28 02:05:15 CEST 2005
x86_64 GNU/Linux



Regards.


_______________________________________________________
Linux-HA-Dev: [email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/

Reply via email to