My server is running OpenBSD 3.6. I wish to join this machine to a Windows 2003 AD domain so Windows clients can copy files to and from it for FTP use. I have untar'd the following files to /usr/src: openldap-stable-20050125.tgz samba-3.0.11.tar.gz When running configure it stops with this error: checking for LDAP support... yes checking ldap.h usability... no checking ldap.h presence... no checking for ldap.h... no checking lber.h usability... no checking lber.h presence... no checking for lber.h... no configure: error: ldap.h is needed for LDAP support These are my configure options: ./configure \ --with-ldap \ --with-ads \ --includedir=/usr/src/openldap-2.2.23/ \ --with-krb5=/etc/kerberosV The missing file *is* in the openldap-2.2.23/include folder. I have tried copying the ldap.h file to the samba/source/include folder but that doesn't help. I can't seem to get Samba to see this file. Sorry if this an often asked question. I searched Google for an hour and found other people with this problem but no solution. -- Regards, Mike
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Mike wrote: | My server is running OpenBSD 3.6. I wish to join this machine to a | Windows 2003 AD domain so Windows clients can copy files to and from it | for FTP use. | | I have untar'd the following files to /usr/src: | | openldap-stable-20050125.tgz | samba-3.0.11.tar.gz | | When running configure it stops with this error: | | checking for LDAP support... yes | checking ldap.h usability... no | checking ldap.h presence... no | checking for ldap.h... no | checking lber.h usability... no | checking lber.h presence... no | checking for lber.h... no | configure: error: ldap.h is needed for LDAP support | | These are my configure options: | ./configure \ | --with-ldap \ | --with-ads \ | --includedir=/usr/src/openldap-2.2.23/ \ | --with-krb5=/etc/kerberosV I don;t think the includedir works. Just a hunch. Use CPPFLAGS="-I/usr/src/openldap-2.2.23/include" LDFLAGS="-L/usr/src/openldap-2.2.23/lib" cheers, jerry ====================================================================Alleviating the pain of Windows(tm) ------- http://www.samba.org GnuPG Key ----- http://www.plainjoe.org/gpg_public.asc "I never saved anything for the swim back." Ethan Hawk in Gattaca -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCBD4qIR7qMdg1EfYRArL7AJ9QZfsCIXoLyJDNKwVNgtUt4u7EEgCgx02S 1YOuw7PzS52Ivg50e9v8E+U=FrRD -----END PGP SIGNATURE-----
Gerald (Jerry) Carter wrote:> Here's my build script. You can modify it for you needs. > > Hope this helps.Thanks.> ## > ## required library paths > ## > DIRPATH="" > for dir in $DIRPATH ; do > CPPFLAGS="$CPPFLAGS -I$dir/include" > CFLAGS="$CFLAGS -Wl,-rpath,$dir/lib" > LDFLAGS="$LDFLAGS -L$dir/lib" > doneSorry, I'm not that good with scripting. What is the purpose of DIRPATH for? I'm not sure what to set it to. I noticed the autogen.sh line in that script and tried to manually run it. I get this error: ./autogen.sh ./autogen.sh[25]: [: ,: unexpected operator/operand ./autogen.sh[39]: [: ,: unexpected operator/operand ./autogen.sh: need autoconf 2.53 or later to build samba from SVN So I installed autoconf 2.59 and get this: # ./autogen.sh ./autogen.sh[25]: [: ,: unexpected operator/operand ./autogen.sh: need autoconf 2.53 or later to build samba from SVN P.S. When I reply I didn't notice my first message went to you and not the list. Is this normal behaviour for this list?
So does this mean Samba can't be an AD domain member on a BSD machine?
Gerald (Jerry) Carter wrote:> -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Mike wrote: > > | As my luck would have it, OpenLDAP won't configure now. > | > | configure: error: BDB/HDB: BerkeleyDB version incompatible > > add --enable-slapd=no to configure for openldap). You only > need the client libs.Thanks. =] So here is where I am at now. BerkeleyDB - built and installed OpenLDAP - built and installed Samba - got past the ldap.h configure issue and got past a krb5.h after that. Now I'm stuck on this: # CPPFLAGS="-I/usr/include/kerberosV" # LDFLAGS="-L/usr/lib" # export CPPFLAGS LDFLAGS # ./configure --with-ldap --with-ads <snip> # configure: error: libkrb5 is needed for Active Directory support If I do a directory listing: # ls -al /usr/lib/ | grep libkrb5 -r--r--r-- 5 root bin 648772 Sep 17 11:01 libkrb5.a -r--r--r-- 4 root bin 457791 Mar 29 2004 libkrb5.so.13.0 -r--r--r-- 4 root bin 459006 Sep 17 11:02 libkrb5.so.14.0 -r--r--r-- 5 root bin 704612 Sep 17 11:01 libkrb5_p.a -r--r--r-- 4 root bin 689852 Sep 17 11:02 libkrb5_pic.a OpenBSD comes with Heimdal Kerberos 5. I have seen other posts on the Google groups with this same problem, but no solutions. I am thinking the specific file name it's looking for is not present and that I may need to symlink? Or how do I verify what version of Heimdal I have installed? Here is part of the config.log: configure: failed program was: | /* confdefs.h. */ | | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" <snip> #define HAVE_COM_ERR_H 1 | /* end confdefs.h. */ | | /* Override any gcc2 internal prototype to avoid an error. */ | #ifdef __cplusplus | extern "C" | #endif | /* We use char because int might match the return type of a gcc2 | builtin and then its argument prototype would still apply. */ | char krb5_mk_req_extended (); | int | main () | { | krb5_mk_req_extended (); | ; | return 0; | } configure:29365: result: no -- Regards, Mike
Gerald (Jerry) Carter wrote:> What platform are you compiling on ? At this point > point it's probably best to look for pre-compiled packages. > I can't really continue to spend time on this right now.The platform is OpenBSD. There are no precompiled binaries for *BSD that I can see (what's up with that?). OpenBSD's ports only contain Samba2, so I can't take the easy way out there.> The compile error you are hitting is due to the a > conflict with (or missing) com_err.h header. You can > build MIT kerberos to include it's own libcomm_err > or use the system.# locate com_err.h /usr/include/com_err.h /usr/include/kerberosV/com_err.h Not missing and both those files are identical. Several posts I have seen indicate Heimdal is the best choice for BSD, though I don't know the technical reasons why. I too have burned too much time on this. I will just grab a Windows box and put the FTP server there. Thanks again for your time. I didn't expect to get help from an actual team member. -- Regards, Mike