Samba4 insists on linking with pam

Sam Liddicott sam at liddicott.com
Thu Sep 8 08:42:17 MDT 2011


On 08/09/11 13:03, Andrew Bartlett wrote:
> On Thu, 2011-09-08 at 12:59 +0100, Sam Liddicott wrote:
>> diff --git a/source4/auth/ntlm/auth_unix.c b/source4/auth/ntlm/auth_unix.c
>> index d79ebc1..20c18b5 100644
>> --- a/source4/auth/ntlm/auth_unix.c
>> +++ b/source4/auth/ntlm/auth_unix.c
>> @@ -144,7 +144,7 @@ static NTSTATUS talloc_getpwnam(TALLOC_CTX *ctx, const
>> char *username, struct pa
>>   }
>>
>>
>> -#ifdef HAVE_SECURITY_PAM_APPL_H
>> +#if defined(HAVE_SECURITY_PAM_APPL_H)&&  defined(WITH_PAM)
>>   #include<security/pam_appl.h>
>>
>>   struct smb_pam_user_info {
> Did that actually fix it for you?  I would expect you to need to hack
> the wscript files a little...

It allows it to compile and link OK. I'm guessing from what tests I 
could do what it works also for people who want LDAP.

I'll see how it runs soon.

Sam




More information about the samba-technical mailing list