[Samba] Solaris 9 --with-krb5 problems
ww m-pubsyssamba
pubsyssamba at bbc.co.uk
Fri Mar 5 17:58:20 GMT 2004
## Ok as far as I'm aware the following is true, you must use MIT or Heimdal Kerberos with
## Solaris because Solaris Kerberos is not available with header files (Sun have no plans
## to include headers with their bundled distribution). Sun/MIT/Heimdal implementations of
## Kerberos are all gssapi compliant authentication mechanisms.
## You appear to have installed what looks like a second version of gssapi (I assume also Heimdal)
## which Samba make is not liking. I'm sorry I haven't tried installing Heimdal Kerberos myself,
## can you check whether it is possible to install/compile it without installing a duplicate
## implementation of gssapi? Or maybe someone else on the list can help?
## thanks Andy.
The problem is with the header files. It tries to use the ones from
Solaris 9 kerberos implementatoin which are located in /usr/include as
opposed to the ones from heimdal in /opt/local/include). This happens
using both cc and gcc.
configure works fine but make fails.
I also changed /var/ld/ld.config, but the problem is not the libraries, is
the include files. This is what crle shows:
oak:/tmp/samba-3.0.2a/source % crle
Configuration file [3]: /var/ld/ld.config
Default Library Path (ELF): /opt/local/lib:/usr/lib
Trusted Directories (ELF): /usr/lib/secure (system default)
Command line:
crle -c /var/ld/ld.config -l /opt/local/lib:/usr/lib
The last few lines of configure are:
----------------snip------------
checking how to build vfs_cap... shared
Using libraries:
LIBS = -lsendfile -lsec -lgen -lresolv -lsocket -lnsl -liconv
KRB5_LIBS = -lcom_err -L/opt/local/encap/heimdal-0.6/lib -lgssapi
-lkrb5 -lasn1 -L/opt/local/lib -lcrypto -lroken
LDAP_LIBS = -lldap -llber
AUTH_LIBS =
checking configure summary... yes
configure: creating ./config.status
config.status: creating include/stamp-h
config.status: creating Makefile
config.status: creating script/findsmb
config.status: creating smbadduser
config.status: creating script/gen-8bit-gap.sh
config.status: creating include/config.h
Then when I type make:
oak:/tmp/samba-3.0.2a/source % make
Using FLAGS = -O -I/opt/local/encap/heimdal-0.6/include
-I/opt/local/include -Iinclude -I/tmp/samba-3.0.2a/source/include
-I/tmp/samba-3.0.2a/source/ubiqx -I/tmp/samba-3.0.2a/source/smbwrapper
-I. -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-I/opt/local/encap/heimdal-0.6/include -I/opt/local/include
-I/tmp/samba-3.0.2a/source
LIBS = -lsendfile -lsec -lgen -lresolv -lsocket -lnsl -liconv
LDSHFLAGS = -G
LDFLAGS =
Generating smbd/build_options.c
Building include/proto.h
creating /tmp/samba-3.0.2a/source/include/proto.h
Building include/wrepld_proto.h
creating /tmp/samba-3.0.2a/source/include/wrepld_proto.h
Building include/build_env.h
creating /tmp/samba-3.0.2a/source/nsswitch/winbindd_proto.h
creating /tmp/samba-3.0.2a/source/web/swat_proto.h
creating /tmp/samba-3.0.2a/source/client/client_proto.h
creating /tmp/samba-3.0.2a/source/utils/net_proto.h
Compiling dynconfig.c
In file included from include/includes.h:421,
from dynconfig.c:21:
/opt/local/encap/heimdal-0.6/include/gssapi.h:50: warning: redefinition of
`OM_uint32'
/usr/include/gssapi/gssapi.h:87: warning: `OM_uint32' previously declared
here
/opt/local/encap/heimdal-0.6/include/gssapi.h:52: warning: redefinition of
`gss_uint32'
/usr/include/gssapi/gssapi.h:64: warning: `gss_uint32' previously declared
here
/opt/local/encap/heimdal-0.6/include/gssapi.h:64: error: conflicting types
for `gss_name_t'
/usr/include/gssapi/gssapi.h:57: error: previous declaration of
`gss_name_t'
/opt/local/encap/heimdal-0.6/include/gssapi.h:76: error: conflicting types
for `gss_ctx_id_t'
.
.
. keeps going.. it is a long list
.
.
/usr/include/gssapi/gssapi.h:695: error: previous declaration of
`gss_seal'
/opt/local/encap/heimdal-0.6/include/gssapi.h:765: error: conflicting
types for `gss_unseal'
/usr/include/gssapi/gssapi.h:704: error: previous declaration of
`gss_unseal'
make: *** [dynconfig.o] Error 1
Any ideas?
----------------------------------
Diego Julian Remolina
System Administrator
School of Mathematics
Georgia Institute of Technology
(404) 894-7385
(404) 894-1309
----------------------------------
On Fri, 5 Mar 2004, ww m-pubsyssamba wrote:
> Hi,
>
> I am running configure with the option --with-krb5=/opt/local which is
> where I have heimdal installed. The problem is that after running make,
> it still tries to use the include files from SUN that are in /usr/ and this
> screws up the compile.
>
> ## Mmm strange, I've not had any problems on Solaris 9 with MIT Kerberos...
> ## What files is it accidentally using, and in what way does this screw up your compile?
>
> Since I only need samba to be a PDC for my windows workstations,
> Should I just build it without kerberos support? I will store all samba
> user information in ldap and so authentication will be done against the
> ldap LMpasswd and NTpasswd entries and not through kerberos. This is my
> understanding so please correct me if I am wrong.
>
> ## I think there are some ways of implementing MIT KDC server with Samba as a PDC but this is not a normal configuration.
> ## If all you want is a Samba PDC using NTLM authentication then I do not beleive you need any Kerberos support
> ## hope this helps, Andy.
> --
> To unsubscribe from this list go to the following URL and read the
> instructions: http://lists.samba.org/mailman/listinfo/samba
>
More information about the samba
mailing list