Your patch applied fine, but when I tried to run make in the delegate8.7.7 directory, I got the following messages: ../lib/library.a(pam.o): In function `pam_auth1': pam.o(.text+0x438): undefined reference to `pam_strerror' collect2: ld returned 1 exit status make[2]: *** [delegated] Error 1 make[2]: Leaving directory `/usr/local/src/delegate8.7.7/src' make[1]: *** [start0] Error 2 make[1]: Leaving directory `/usr/local/src/delegate8.7.7/src' mkmake: ERROR LOG is left at /usr/local/src/delegate8.7.7/src/mkmake.err mkmake: ERROR LOG is left at /usr/local/src/delegate8.7.7/src/mkmake.err make: *** [all] Error 2 Unfortunately I do not know the C language, so I do not know how to fix this error, though I assume it has something to do with the "extern char" declaration? Thank you again for your help. Yutaka Sato wrote: > On 12/05/03(08:20) you high <high.mobley@prioritynetworks..> wrote > in <_A2479@delegate-en.ML_> > | However, I have been unsuccessful in making DeleGate authenticate > |users against PAM. In order to keep things as simple as possible while > |troubleshooting, I added a local user (called 'tester') on my DeleGate > |server. When I browse to my DeleGate server, I am prompted for a > |username and password. I enter my username 'tester' and the correct > |password. DeleGate just repeatedly prompts me for authentication, but > |never accepts my valid logins. > ... > | AUTHORIZER="-pam/passwd" \ > ... > |12/04 17:19:55.12 [7882] 1+1/1: ## dgpam = /home/delegate/subin/dgpam > |PAM: cannot start passwd [tester] > > This line shows that starting PAM failed by some reason. It is the > result of > > pam_start("passwd","tester",&pam_conv,&pamh) > > in "rary/pam.c". Getting more information about the error will be > helpful. Could you test the DeleGate patched with the enclosed patch? > > Cheers, > Yutaka > -- > D G Yutaka Sato <pfqcabdyi-henf65e2g4tw.ml@delegate.org> http://www.delegate.org/y.sato/ > ( - ) National Institute of Advanced Industrial Science and Technology (AIST) > _< >_ 1-1-4 Umezono, Tsukuba, Ibaraki, 305-8568 Japan > Do the more with the less -- B. Fuller > > > *** ../dist/delegate8.7.7/rary/pam.c Fri Aug 29 11:25:00 2003 > --- pam.c Fri Dec 5 17:57:54 2003 > *************** > *** 162,170 **** > --- 162,179 ---- > char *service,*user,*pass; > { int status; > void *pamh; > + int perr; > + extern char *pam_strerror(); > > + /* > if( pam_start(service,user,&pam_conv,&pamh) != PAM_SUCCESS ){ > syslog_ERROR("PAM: cannot start %s [%s]\n",service,user); > + */ > + pamh = NULL; > + perr = pam_start(service,user,&pam_conv,&pamh); > + if( perr != PAM_SUCCESS ){ > + syslog_ERROR("PAM: cannot start %s [%s] error=%d:%s\n", > + service,user,perr,pam_strerror(&pamh,perr)); > return -1; > } > gpass = pass; -- High Mobley Network Systems Administrator Priority Networks