[Gloucs] Pam_mysql Install Help...
Tony Davis
tony at ukcube.com
Thu Feb 16 23:07:06 GMT 2006
Hi Guys,
First off let me say hello!
Secondly, please help me :o)
I was just wondering if anyone could give a helping hand with a problem
im having following an install.
Basically these are the instructions I have:
#############################################
Getting and installing pam_mysql
Download
Origin-Site: http://sourceforge.net/projects/pam-mysql/
Installing
tar -xvzf pam_mysql-0.5.tar.gz
cd pam_mysql
If you have compiled mysql by yourself, check the Makefile and enter the
correct path to your mysql libs and add the compiler flag CFLAGS
-I/path/to/mysql/include.
ifndef FULL_LINUX_PAM_SOURCE_TREE
export DYNAMIC=-DPAM_DYNAMIC
export CC=gcc
export CFLAGS=-O2 -Dlinux -DLINUX_PAM \
-ansi -D_POSIX_SOURCE -Wall -Wwrite-strings \
-Wpointer-arith -Wcast-qual -Wcast-align -Wtraditional \
-Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline \
-Wshadow -pedantic -fPIC -I/usr/local/mysql/include
export MKDIR=mkdir -p
export LD_D=gcc -shared -Xlinker -x -L/usr/local/mysql/lib/mysql -lz
endif
After customizing that file you an go ahead with the pam_mysql compile.
make
cp pam_mysql.so /lib/security
[[ ! -d /var/lib/mysql ]] && mkdir /var/lib/mysql
ln -s /tmp/mysql.sock /var/lib/mysql/mysql.sock
###########################################
I am confused, because firstly I am using version 0.7RC1, not 5. Also
what do I have to change? it is telling me to edit the Makefile? But
what do i have to change? because the syntax looks like it should be a
patch file, but that would be for version 5?
Can anyone help or am i getting th wrong end of the stick?
Thankyou in advance!
Kind Regards
Tony
More information about the gloucs
mailing list