Hello Brent, I'm writing in regards to the thread you opened @ samba.org concerning authenticating users against AD using winbind. Did you need to manipulate the PAM modules? Currently when I run wbinfo -t I get secret is good, and when I run wbinfo -u I get a list of all users but I can't get SAMBA to accept my domain users. Regards, Jesse
Bruce Marriner
2004-Sep-27 17:29 UTC
[Samba] error compiling samba 3.0.7 with ldap support
I am attempting to compile samba 3.0.7 with openldap using the following configure command. ./configure --prefix=/opt/samba-3.0.7/ --enable-developer --enable-krb5developer --with-krb5=/usr/kerberos/ --with-pam=/opt/openpam-20040210/ --with-ldap=/opt/openldap-2.2.17/ I get the following responce. checking lber.h presence... no checking for lber.h... no configure: WARNING: ldap.h is needed for LDAP support checking for Active Directory and krb5 support... auto configure: WARNING: Active Directory Support requires LDAP support So I have toyed around with my ldap file and put it in quite a few locations - which does little to help. Does anyone know where exactly configure is looking for this file at and rather or now I can tell it where the file is. I have been looking at the configure script a bit but I am apparently not so good at reading it because I can't answer my seemingly simple question.
Bruce Marriner
2004-Sep-27 19:44 UTC
[Samba] error compiling samba 3.0.7 with ldap support
Alright so I download strace and compiled it :). The output from it however is of little help to me. It shows that configure is looking for ldap.h but does not seem to say where configure is looking. I have added the OpenLDAP lib folder to my ld.so.conf file and ran ldconfig and that did not help any either. This is a Redhat 9.0 linux box. Rick Brown wrote:>depending on the platform you have lots of options. If it's >linux, use strace to watch where configure is looking. Also, >check /etc/ld.so.conf and make sure your ldap library path is included, >then run ldconfig. > >If it's solaris, watch the configure process with truss and or >set the environment variable LD_LIBRARY_PATH to include your >ldap libs. > >If it's irix, watch the configure process with par and or set the >environment... > >you get the picture :) > >On Mon, 27 Sep 2004, Bruce Marriner wrote: > > > >> I am attempting to compile samba 3.0.7 with openldap using the >>following configure command. >> >>./configure --prefix=/opt/samba-3.0.7/ --enable-developer >>--enable-krb5developer --with-krb5=/usr/kerberos/ >>--with-pam=/opt/openpam-20040210/ --with-ldap=/opt/openldap-2.2.17/ >> >> I get the following responce. >> >>checking lber.h presence... no >>checking for lber.h... no >>configure: WARNING: ldap.h is needed for LDAP support >>checking for Active Directory and krb5 support... auto >>configure: WARNING: Active Directory Support requires LDAP support >> >> So I have toyed around with my ldap file and put it in quite a few >>locations - which does little to help. Does anyone know >>where exactly configure is looking for this file at and rather or now I >>can tell it where the file is. I have been looking >>at the configure script a bit but I am apparently not so good at reading >>it because I can't answer my seemingly simple question. >> >>
Bruce Marriner
2004-Sep-27 20:46 UTC
[Samba] error compiling samba 3.0.7 with ldap support
Hmmn. Maybe I should have tried that --include switch. I finally broke down and jammed them into /usr/include and /usr/lib and configure seems just happy. I do not think ldap-devel is a needed package when you download ldap itself and compile it from code. i guess that is a rpm or something. But it the darn the compiles I'll be happy. (it takes it awhile and it's doing right now). I still seem to get a ton of odd warnings.. Guess I'll work on that next. St?phane Purnelle wrote:> Have you installed ldap-devel > > --with-ldap is the option for specify that samba must compile with > ldap support, not for specify the path of ldap file. > use --include option (I think) for specify include file of ldap. > > Bruce Marriner a ?crit :