[OpenAFS] Re: Build samba 3.2.2 with openafs 1.4.7

Gémes Géza geza@kzsdabas.hu
Sun, 07 Sep 2008 16:19:15 +0200


Derrick Brashear írta:
> 2008/9/7 Gémes Géza <geza@kzsdabas.hu>:
>   
>> Volker Lendecke írta:
>>     
>>> On Sat, Sep 06, 2008 at 03:32:25PM +0200, Gémes Géza wrote:
>>>
>>>       
>>>> Sorry, does it mean, that running a nonguest samba share on top of an
>>>> afs mounted directory require the use of plaintext passwords?!
>>>> Is there no way to "impersonate" the  user connected via smb/cifs and
>>>> obtain the afs tokens on behalf of he/she?
>>>>
>>>>         
>>> No, but you need to use the fake kaserver.
>>>
>>> Volker
>>>
>>>       
>> With a patched afs/afs.h and afs/com_err.h (added #include "afs/param.h"
>> on the top of both)
>>     
>
> which is still wrong, but whatever.
>
>   
I admit, but wasn't able to figure out other solution.
>> samba 3.2.3 builds with a configure line :
>>
>> ./configure --with-fake-kaserver --with-vfs-afsacl
>>
>> The build process (invoked by make) fails at:
>>
>> Compiling smbd/server.c
>> Linking bin/smbd
>> bin/smbd.a(afs.o): In function `afs_createtoken':
>> afs.c:(.text+0x2b7): undefined reference to `DES_key_sched'
>> afs.c:(.text+0x2e9): undefined reference to `DES_pcbc_encrypt'
>>     
>
> Either the linker is failing to try to link the openssl libraries or
> you have a version which is too new.
>   
My openssl version is 0.9.8g
gcc 4.1.2
GNU ld version 2.17
libc 2.3.6

I've run the make process under strace as well, but even with the -f
option I couldn't see anything relevant.

Thanks for any idea

Geza