Ok...  i don't give up that easily and after a lot
of poking around, I found the answer to this...

In order to compile samba from SRPM to work with ldap,
you need to make the end of the  --with section of the samba.spec
file look like this:

        --with-profile \
        --disable-static \
        --with-msdfs \
        --with-ldapsam \
        --with-ssl \
        --with-pam_smbpass

and then ... you need to fix some paths in the ssl headers...

kerberos headers aren't found first... as they are in

/usr/kerberos/include

symlink all the dirs and files there to

/usr/include

but that's not all...

you need to edit:

/usr/include/krb5.h

and hardcode the path to profile.h...
change
#include <profile.h>
to
#include </usr/include/profile.h>

and then rpmbuild -ba samba.spec
and you get a samba that works with ldap...
I guess you don't need the ssl if you aren't
using ldap with ssl ... which is fine if you
feel it's safe, I don't.

Took me a day and a half to figure that out,
hopefully it might save someone else the time
as well.

Cheers
Bill




Bill Dossett wrote:
Hi,

If you're considering using samba, ldap and
Redhat 9, forget it.  Spent all day yesterday
trying to get RH9 samba srpm to compile with it and
no go... I was under the impression that a lot
of people use ldap to authenticate samba users
for central authentication, at least I do...
they are certainly going to be dissapointed if
they try it with RH9.

Don't really see why Redhat don't build samba
with ldap support built in... it's hardly experimental
any more...

Really starting to lose the faith in Redhat these
days... perhaps it's time to move on.

Bill Dossett





-- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list

Reply via email to