Hi Michael M. Thanks for mentioning me about this program.

If anyone of you would like to try out external authentication using mysql
(http://www.xtradius.com/download/AuthAccount-1.0.tar.gz), there is an error
in the code in authmysql.c, line 153.

If you will try to compile it, you will receive this error
gcc -c authmysql.c -DCRYPT -I/usr/include/mysql
gcc -o authmysql authmysql.o -L/usr/lib/mysql -lmysqlclient
authmysql.o: In function `crypt_pw':
authmysql.o(.text+0x306): undefined reference to `crypt'
collect2: ld returned 1 exit status
make: *** [authmysql] Error 1

To correct this, replace (at line 153)

  strcpy(st, (char *) crypt(ct_pw, salt));

with

 strcpy(st, (char *) crypt_pw(ct_pw, salt));

I have already informed Ahmad S. Al-rasheedan, the author of this program.

-
Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]

Reply via email to