[Samba] Need help with redhat build to --prefix

Joy Veronneau jv11 at cornell.edu
Mon Oct 24 09:52:10 MDT 2011


That was a big help, now I can run ntlm_auth and winbindd and they find
their libraries. 

However, now that I can run ntlm_auth and winbindd with the correct
libraries, it seems that I need to rebuild my samba config to request ADS
support. I am using this configure command:

./configure --prefix=/app/radius/samba/
--with-configdir=/app/radius/samba/conf
--with-privatedir=/app/radius/samba/private --disable-cups
--with-wbclient=/app/radius/samba/lib --with-ads --with-ldap

but it is unable to find ldap.h.

It looks like openldap is installed on this machine but I am not sure
ldap.h is around anywhere - it's not in /usr/include or /usr/local/include
- I did a find and it's in source4...
sudo find . -name "ldap.h" -print

./app/radius/samba-3.5.8/source4/libcli/ldap/ldap.h

but I am building source3. Should I be building source4? or what is the
best way to proceed...?

Thanks in advance...


-- Joy






On 10/24/11 7:02 AM, "Michael Wood" <esiotrot at gmail.com> wrote:

>Hi
>
>On 21 October 2011 20:23, Joy Veronneau <jv11 at cornell.edu> wrote:
>> Hi,
>>
>> Thanks, I think that setting LD_LIBRARY_PATH would fix the problem on
>>the
>> command line, but here's a little more information about what I want to
>> do.
>>
>> I am installing winbindd on a radius server running Radiator. I will
>>start
>> /app/radius/samba/bin/winbindd whenever the server reboots. Then
>>radiator
>> will be using /app/radius/samba/sbin/ntlm_auth when people need to
>> authenticate. So I have to set it up so every time ntlm_auth runs, it
>>can
>> find the libraries... I was hoping there would be a way to build it so
>> that would work but I am pretty rusty on my C programming/building
>> skills...
>
>Well, you could do this in various ways.  e.g. rename ntlm_auth to
>ntlm_auth.real and then create a script called ntlm_auth like this:
>
>#!/bin/sh
>export LD_LIBRARY_PATH=/app/radius/samba/lib
>exec /app/radius/samba/sbin/ntlm_auth.real "$@"
>
>> Or maybe there is a way to specify the library location in the samba
>> config file?
>
>I don't believe so.
>
>It seems what you need is to pass the -rpath option to the linker
>while building Samba.  This will explicitly tell the dynamic linker
>where to find the libraries when running the binaries.
>
>Try configuring Samba like this (untested):
>
>LDFLAGS=-Wl,-rpath,/app/radius/samba/lib ./configure ...
>
>-- 
>Michael Wood <esiotrot at gmail.com>



More information about the samba mailing list