FW: [squid-users] help with configuration of NTLM support

From: Vincent, Nicolas <nicolas.vincent@dont-contact.us>
Date: Tue, 21 Aug 2001 03:42:39 -0400

I've attach trace of configure'script and complete make's trace.
I don't understand why I'm getting these parse errors for gint16, offset,
gint32, ...

The system is currently running squid 2.2 stable 5 on Suze Linux 7.0.
I want to install v2.5 to get NTLM authentification.

TRACE:
======

bwe:/home/nvincent/squid-head-200108192302 #
pers=NTLMSSP ntlm' '--enable-basic-auth-helpers=SMB MSNT'
--enable-ntlm-auth-he
loading cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking for gcc... (cached) gcc
checking whether the C compiler (gcc -g) works... yes
checking whether the C compiler (gcc -g) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
Store modules built: ufs
Removal policies built: lru
SNMP monitoring enabled
Auth scheme modules built: basic ntlm
Basic auth helpers built: SMB MSNT
NTLM auth helpers built: NTLMSSP
unlinkd enabled
checking how to run the C preprocessor... (cached) gcc -E
checking for a BSD compatible install... (cached) /usr/bin/ginstall -c
checking for ranlib... (cached) ranlib
checking whether ln -s works... (cached) yes
checking for sh... (cached) /bin/sh
checking for false... (cached) /bin/false
checking for true... (cached) /bin/true
checking for rm... (cached) /bin/rm
checking for mv... (cached) /bin/mv
checking for mkdir... (cached) /bin/mkdir
checking for ln... (cached) /bin/ln
checking for perl... (cached) /usr/bin/perl
checking for makedepend... (cached) /usr/X11R6/bin/makedepend
checking for ar... (cached) /usr/bin/ar
checking for dirent.h that defines DIR... (cached) yes
checking for opendir in -ldir... (cached) no
checking for ANSI C header files... (cached) yes
checking for arpa/inet.h... (cached) yes
checking for arpa/nameser.h... (cached) yes
checking for assert.h... (cached) yes
checking for bstring.h... (cached) no
checking for config.h... (cached) no
checking for crypt.h... (cached) yes
checking for ctype.h... (cached) yes
checking for errno.h... (cached) yes
checking for execinfo.h... (cached) yes
checking for fcntl.h... (cached) yes
checking for getopt.h... (cached) yes
checking for gnumalloc.h... (cached) no
checking for grp.h... (cached) yes
checking for ip_compat.h... (cached) no
checking for ip_fil_compat.h... (cached) no
checking for ip_fil.h... (cached) no
checking for ip_nat.h... (cached) no
checking for libc.h... (cached) no
checking for limits.h... (cached) yes
checking for linux/netfilter_ipv4.h... (cached) no
checking for malloc.h... (cached) yes
checking for math.h... (cached) yes
checking for memory.h... (cached) yes
checking for mount.h... (cached) no
checking for net/if.h... (cached) yes
checking for netdb.h... (cached) yes
checking for netinet/if_ether.h... (cached) yes
checking for netinet/in.h... (cached) yes
checking for netinet/tcp.h... (cached) yes
checking for netinet/ip_compat.h... (cached) no
checking for netinet/ip_fil_compat.h... (cached) no
checking for netinet/ip_fil.h... (cached) no
checking for netinet/ip_nat.h... (cached) no
checking for openssl/err.h... (cached) yes
checking for openssl/md5.h... (cached) yes
checking for openssl/ssl.h... (cached) yes
checking for poll.h... (cached) yes
checking for pwd.h... (cached) yes
checking for regex.h... (cached) yes
checking for resolv.h... (cached) yes
checking for sched.h... (cached) yes
checking for signal.h... (cached) yes
checking for stdarg.h... (cached) yes
checking for stddef.h... (cached) yes
checking for stdio.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking for sys/file.h... (cached) yes
checking for sys/ioctl.h... (cached) yes
checking for sys/mount.h... (cached) yes
checking for sys/msg.h... (cached) yes
checking for sys/param.h... (cached) yes
checking for sys/resource.h... (cached) yes
checking for sys/select.h... (cached) yes
checking for sys/socket.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking for sys/statvfs.h... (cached) yes
checking for sys/syscall.h... (cached) yes
checking for sys/time.h... (cached) yes
checking for sys/types.h... (cached) yes
checking for sys/un.h... (cached) yes
checking for sys/vfs.h... (cached) yes
checking for sys/wait.h... (cached) yes
checking for syslog.h... (cached) yes
checking for time.h... (cached) yes
checking for unistd.h... (cached) yes
checking for varargs.h... (cached) yes
checking for byteswap.h... (cached) yes
checking for glib.h... (cached) yes
checking for stdint.h... (cached) yes
checking for inttypes.h... (cached) yes
checking for working const... (cached) yes
checking whether byte ordering is bigendian... (cached) no
checking if ANSI prototypes work... (cached) yes
checking for tm->tm_gmtoff... (cached) yes
checking for struct mallinfo... (cached) yes
checking for extended mallinfo... (cached) no
checking for struct rusage... (cached) yes
checking for ip->ip_hl... (cached) yes
checking size of void *... (cached) 4
checking size of short... (cached) 2
checking size of int... (cached) 4
checking size of long... (cached) 4
checking size of long long... (cached) 8
checking size of __int64... (cached) 0
checking size of int16_t... (cached) 0
checking size of uint16_t... (cached) 0
checking size of u_int16_t... (cached) 0
checking size of int32_t... (cached) 0
checking size of uint32_t... (cached) 0
checking size of u_int32_t... (cached) 0
checking size of int64_t... (cached) 0
checking size of uint64_t... (cached) 0
checking size of u_int64_t... (cached) 0
checking for int16_t... (cached) yes
checking for u_int16_t... (cached) yes
checking for int32_t... (cached) yes
checking for u_int32_t... (cached) yes
checking for int64_t... (cached) yes
checking for u_int64_t... (cached) yes
checking for pid_t... (cached) yes
checking for size_t... (cached) yes
checking for ssize_t... (cached) yes
checking for off_t... (cached) yes
checking for mode_t... (cached) yes
checking for fd_mask... (cached) yes
checking for working alloca.h... (cached) yes
checking for alloca... (cached) yes
checking for socklen_t... (cached) yes
checking for mtyp_t... (cached) no
checking for main in -lnsl... (cached) yes
checking for main in -lsocket... (cached) no
checking for main in -lgnumalloc... (cached) no
checking for main in -lmalloc... (cached) no
checking for main in -lbsd... (cached) no
checking for main in -lregex... (cached) no
checking for gethostbyname in -lbind... (cached) no
checking for inet_aton in -lresolv... (cached) yes
checking for inet_aton in -l44bsd... (cached) no
checking for main in -lresolv... (cached) yes
checking for main in -lm... (cached) yes
checking for crypt in -lcrypt... (cached) yes
checking for dlopen in -ldl... (cached) yes
checking for main in -lpthread... (cached) yes
Removing -O for gcc on i686-pc-linux-gnu with GCC 2.95.2
checking for bcopy... (cached) yes
checking for backtrace_symbols_fd... (cached) yes
checking for crypt... (cached) no
checking for fchmod... (cached) yes
checking for getdtablesize... (cached) yes
checking for getpagesize... (cached) yes
checking for getrusage... (cached) yes
checking for getspnam... (cached) yes
checking for lrand48... (cached) yes
checking for mallinfo... (cached) yes
checking for mallocblksize... (cached) no
checking for mallopt... (cached) yes
checking for memcpy... (cached) yes
checking for memmove... (cached) yes
checking for memset... (cached) yes
checking for mkstemp... (cached) yes
checking for mktime... (cached) yes
checking for mstats... (cached) no
checking for poll... (cached) yes
checking for pthread_attr_setscope... (cached) yes
checking for pthread_setschedparam... (cached) yes
checking for pthread_attr_setschedparam... (cached) yes
checking for pthread_sigmask... (cached) no
checking for putenv... (cached) yes
checking for random... (cached) yes
checking for regcomp... (cached) yes
checking for regexec... (cached) yes
checking for regfree... (cached) yes
checking for res_init... (cached) yes
checking for rint... (cached) yes
checking for seteuid... (cached) yes
checking for setgroups... (cached) yes
checking for setpgrp... (cached) yes
checking for setrlimit... (cached) yes
checking for getrlimit... (cached) yes
checking for setsid... (cached) yes
checking for sigaction... (cached) yes
checking for snprintf... (cached) yes
checking for srand48... (cached) yes
checking for srandom... (cached) yes
checking for statfs... (cached) yes
checking for sysconf... (cached) yes
checking for syslog... (cached) yes
checking for timegm... (cached) yes
checking for vsnprintf... (cached) yes
checking for bswap_16... (cached) no
checking for bswap_32... (cached) no
checking if setresuid is implemented... (cached) yes
checking if GNUregex needs to be compiled... no
checking for drand48... (cached) yes
checking for tempnam... (cached) yes
checking for strerror... (cached) yes
checking Default FD_SETSIZE value... 1024
checking Maximum number of filedescriptors we can open... 1024
checking Default UDP send buffer size... 65535
checking Default UDP receive buffer size... 65535
checking Default TCP send buffer size... 65535
checking Default TCP receive buffer size... 65535
checking if sys_errlist is already defined... (cached) no
checking for libresolv _dns_ttl_ hack... no
checking if inet_ntoa() actually works... yes
checking for working statvfs() interface... yes
checking for _res.nsaddr_list... (cached) yes
creating ./config.status
creating ./makefile
creating ./lib/Makefile
creating ./include/config.h
creating ./scripts/Makefile
creating ./scripts/RunCache
creating ./scripts/RunAccel
creating ./src/Makefile
creating ./src/fs/Makefile
creating ./src/fs/ufs/Makefile
creating ./src/repl/Makefile
creating ./src/repl/lru/Makefile
creating ./src/auth/Makefile
creating ./src/auth/Makefile
creating ./src/auth/basic/Makefile
creating ./src/auth/basic/helpers/Makefile
creating ./src/auth/basic/helpers/PAM/Makefile
creating ./src/auth/basic/helpers/LDAP/Makefile
creating ./src/auth/basic/helpers/MSNT/Makefile
creating ./src/auth/basic/helpers/NCSA/Makefile
creating ./src/auth/basic/helpers/SMB/Makefile
creating ./src/auth/basic/helpers/YP/Makefile
creating ./src/auth/basic/helpers/getpwnam/Makefile
creating ./src/auth/digest/Makefile
creating ./src/auth/digest/helpers/Makefile
creating ./src/auth/digest/helpers/password/Makefile
creating ./src/auth/ntlm/Makefile
creating ./src/auth/ntlm/helpers/Makefile
creating ./src/auth/ntlm/helpers/NTLMSSP/Makefile
creating ./src/auth/ntlm/helpers/NTLMSSP/smbval/Makefile
creating ./src/auth/ntlm/helpers/fakeauth/Makefile
creating ./src/auth/ntlm/helpers/no_check/Makefile
creating ./contrib/Makefile
creating ./snmplib/Makefile
creating ./icons/Makefile
creating ./errors/Makefile
creating include/autoconf.h
bwe:/home/nvincent/squid-head-200108192302 # make all
Making all in lib...
make[1]: Entering directory `/home/nvincent/squid-head-200108192302/lib'
gcc -g -Wall -I../include -I../include -c -o ntlmauth.o ntlmauth.c
In file included from ntlmauth.c:24:
../include/ntlmauth.h:121: parse error before `gint16'
../include/ntlmauth.h:121: warning: no semicolon at end of struct or union
../include/ntlmauth.h:122: warning: type defaults to `int' in declaration of
`m'
../include/ntlmauth.h:122: warning: data definition has no type or storage
class
../include/ntlmauth.h:123: parse error before `offset'
../include/ntlmauth.h:123: warning: type defaults to `int' in declaration of
`o'
../include/ntlmauth.h:123: warning: data definition has no type or storage
class
../include/ntlmauth.h:124: warning: type defaults to `int' in declaration of
`s'
../include/ntlmauth.h:124: warning: data definition has no type or storage
class
../include/ntlmauth.h:128: parse error before `gint32'
../include/ntlmauth.h:128: warning: no semicolon at end of struct or union
../include/ntlmauth.h:130: parse error before `}'
../include/ntlmauth.h:130: warning: type defaults to `int' in declaration of
`l'
../include/ntlmauth.h:130: warning: data definition has no type or storage
class
../include/ntlmauth.h:136: parse error before `gint32'
../include/ntlmauth.h:136: warning: no semicolon at end of struct or union
../include/ntlmauth.h:137: warning: type defaults to `int' in declaration of
`n'
../include/ntlmauth.h:137: warning: data definition has no type or storage
class
../include/ntlmauth.h:142: parse error before `gint32'
../include/ntlmauth.h:142: warning: no semicolon at end of struct or union
../include/ntlmauth.h:143: warning: type defaults to `int' in declaration of
`h'
../include/ntlmauth.h:143: warning: data definition has no type or storage
class
../include/ntlmauth.h:145: parse error before `domain'
../include/ntlmauth.h:145: warning: type defaults to `int' in declaration of
`d'
../include/ntlmauth.h:145: warning: data definition has no type or storage
class
../include/ntlmauth.h:146: parse error before `workstation'
../include/ntlmauth.h:146: warning: type defaults to `int' in declaration of
`w'
../include/ntlmauth.h:146: warning: data definition has no type or storage
class
../include/ntlmauth.h:148: parse error before `}'
../include/ntlmauth.h:148: warning: type defaults to `int' in declaration of
`n'
../include/ntlmauth.h:148: warning: data definition has no type or storage
class
../include/ntlmauth.h:153: parse error before `gint32'
../include/ntlmauth.h:153: warning: no semicolon at end of struct or union
../include/ntlmauth.h:154: warning: type defaults to `int' in declaration of
`t'
../include/ntlmauth.h:154: warning: data definition has no type or storage
class
../include/ntlmauth.h:160: parse error before `}'
../include/ntlmauth.h:160: warning: type defaults to `int' in declaration of
`n'
../include/ntlmauth.h:160: warning: data definition has no type or storage
class
../include/ntlmauth.h:165: parse error before `gint32'
../include/ntlmauth.h:165: warning: no semicolon at end of struct or union
../include/ntlmauth.h:166: warning: type defaults to `int' in declaration of
`l'
../include/ntlmauth.h:166: warning: data definition has no type or storage
class
../include/ntlmauth.h:167: parse error before `ntresponse'
../include/ntlmauth.h:167: warning: type defaults to `int' in declaration of
`n'
../include/ntlmauth.h:167: warning: data definition has no type or storage
class
../include/ntlmauth.h:168: parse error before `domain'
../include/ntlmauth.h:168: warning: type defaults to `int' in declaration of
`d'
../include/ntlmauth.h:168: warning: data definition has no type or storage
class
../include/ntlmauth.h:169: parse error before `user'
../include/ntlmauth.h:169: warning: type defaults to `int' in declaration of
`u'
../include/ntlmauth.h:169: warning: data definition has no type or storage
class
../include/ntlmauth.h:170: parse error before `workstation'
../include/ntlmauth.h:170: warning: type defaults to `int' in declaration of
`w'
../include/ntlmauth.h:170: warning: data definition has no type or storage
class
../include/ntlmauth.h:171: parse error before `sessionkey'
../include/ntlmauth.h:171: warning: type defaults to `int' in declaration of
`s'
../include/ntlmauth.h:171: warning: data definition has no type or storage
class
../include/ntlmauth.h:172: parse error before `flags'
../include/ntlmauth.h:172: warning: type defaults to `int' in declaration of
`f'
../include/ntlmauth.h:172: conflicting types for `flags'
../include/ntlmauth.h:155: previous declaration of `flags'
../include/ntlmauth.h:172: warning: data definition has no type or storage
class
../include/ntlmauth.h:173: conflicting types for `payload'
../include/ntlmauth.h:159: previous declaration of `payload'
../include/ntlmauth.h:174: parse error before `}'
../include/ntlmauth.h:174: warning: type defaults to `int' in declaration of
`n'
../include/ntlmauth.h:174: warning: data definition has no type or storage
class
../include/ntlmauth.h:178: parse error before `ntlm_fetch_string'
../include/ntlmauth.h:178: parse error before `gint32'
../include/ntlmauth.h:178: warning: type defaults to `int' in declaration of
`n'
../include/ntlmauth.h:178: warning: data definition has no type or storage
class
../include/ntlmauth.h:180: parse error before `strhdr'
ntlmauth.c:65: parse error before `ntlm_fetch_string'
ntlmauth.c:65: parse error before `gint32'
ntlmauth.c:66: warning: return-type defaults to `int'
ntlmauth.c: In function `ntlm_fetch_string':
ntlmauth.c:67: `gint16' undeclared (first use in this function)
ntlmauth.c:67: (Each undeclared identifier is reported only once
ntlmauth.c:67: for each function it appears in.)
ntlmauth.c:67: parse error before `l'
ntlmauth.c:68: `gint32' undeclared (first use in this function)
ntlmauth.c:69: `lstring' undeclared (first use in this function)
ntlmauth.c:71: `rv' undeclared (first use in this function)
ntlmauth.c:73: `l' undeclared (first use in this function)
ntlmauth.c:73: request for member `len' in something not a structure or
union
ntlmauth.c:74: `o' undeclared (first use in this function)
ntlmauth.c:74: request for member `offset' in something not a structure or
union
ntlmauth.c:77: `length' undeclared (first use in this function)
ntlmauth.c:81: `packet' undeclared (first use in this function)
ntlmauth.c:85: warning: control reaches end of non-void function
ntlmauth.c: At top level:
ntlmauth.c:95: parse error before `strhdr'
ntlmauth.c: In function `ntlm_add_to_payload':
ntlmauth.c:99: `payload_length' undeclared (first use in this function)
ntlmauth.c:100: `toadd' undeclared (first use in this function)
ntlmauth.c:100: `toadd_length' undeclared (first use in this function)
ntlmauth.c:102: invalid type argument of `->'
ntlmauth.c:103: invalid type argument of `->'
ntlmauth.c:104: invalid type argument of `->'
ntlmauth.c:104: `base_offset' undeclared (first use in this function)
ntlmauth.c: In function `ntlm_make_challenge':
ntlmauth.c:118: `ntlm_challenge' undeclared (first use in this function)
ntlmauth.c:118: parse error before `ch'
ntlmauth.c:121: `ch' undeclared (first use in this function)
make[1]: *** [ntlmauth.o] Error 1
make[1]: Leaving directory `/home/nvincent/squid-head-200108192302/lib'
make: *** [all] Error 1

-----Original Message-----
From: Vincent, Nicolas [mailto:nicolas.vincent@cambrex.com]
Sent: Monday, August 20, 2001 17:00
To: 'squid-users@squid-cache.org'
Subject: FW: [squid-users] help with configuration of NTLM support

I've download squid 2.5, untar and execute the configure script with the
following options :
./configure --prefix=/opt/squid-ntlm --disable-wccp --enable-snmp
--disable-ident-lookups --enable-underscores '--enable-auth=basic ntlm'
'--enable-basic-auth-helpers=SMB MSNT' --enable-ntlm-auth-helpers=NTLMSSP

but when doing the make, it suddently stop with the following starting
errors :

bwe:/home/nvincent/squid-head-200108192302 # make
Making all in lib...
make[1]: Entering directory `/home/nvincent/squid-head-200108192302/lib'
gcc -g -Wall -I../include -I../include -c -o ntlmauth.o ntlmauth.c
In file included from ntlmauth.c:24:
../include/ntlmauth.h:121: parse error before `gint16'
../include/ntlmauth.h:121: warning: no semicolon at end of struct or union
../include/ntlmauth.h:122: warning: type defaults to `int' in declaration of
`m'
../include/ntlmauth.h:122: warning: data definition has no type or storage
class
../include/ntlmauth.h:123: parse error before `offset'
../include/ntlmauth.h:123: warning: type defaults to `int' in declaration of
`o'
../include/ntlmauth.h:123: warning: data definition has no type or storage
class
../include/ntlmauth.h:124: warning: type defaults to `int' in declaration of
`s'
../include/ntlmauth.h:124: warning: data definition has no type or storage
class
../include/ntlmauth.h:128: parse error before `gint32'
../include/ntlmauth.h:128: warning: no semicolon at end of struct or union
../include/ntlmauth.h:130: parse error before `}'

Anyone having an idea about what's going wrong ?

Many thanks !

Nicolas

-----Original Message-----
From: Van Bossche Koen [mailto:Koen.VanBossche@KONE.com]
Sent: Monday, August 20, 2001 14:02
To: 'squid-users@squid-cache.org'
Subject: RE: [squid-users] help with configuration of NTLM support

Thanks Rob,
I did this however I still cannot authenticate. I cannot find anything in my
cache.log though. If I try it manually ./ntlm_auth DOMAIN\user, then I
receive the error :"BH Helper detected protocol error". Can it be something
todo with NTLMSSP helper, cause I have nowhere (except for compiling)
mentionned to use this default.
Do you have any further info on this, how to do some checks ..
Regards/Koen

-----Original Message-----
From: Robert Collins [mailto:robert.collins@itdomain.com.au]
Sent: 20 August 2001 12:34
To: Van Bossche Koen
Cc: 'squid-users@squid-cache.org'
Subject: Re: [squid-users] help with configuration of NTLM support

On 20 Aug 2001 13:15:48 +0300, Van Bossche Koen wrote:
> Hi,
> Can anyone give me some help on installing the NTLM authentication without
> popping up password box?
> I have downloaded the latest tar file for v2.5DEV and configured it with
the
> following parameters :
> ./configure --prefix=/opt/squid-ntlm --disable-wccp --enable-snmp
> --disable-ident-lookups --enable-underscores '--enable-auth=basic ntlm'
> '--enable-basic-auth-helpers=SMB MSNT' --enable-ntlm-auth-helpers=NTLMSSP
> I had a
> How do I continue from here on? Are these the only settings in squid.conf
to
> configure?
> auth_param ntlm program /opt/squid/bin/ntlm_auth DOMAIN\user
run ntlm_auth -? to get the options - this is wrong.
> auth_param ntlm children 5
> auth_param ntlm max_challenge_reuses 1000
> auth_param ntlm max_challenge_lifetime 3600 minutes
>
> What about not showing the messagebox for authentication?

Add a proxy_auth acl as usual.Thats it.

Rob

> Any help or
> information regarding this issue would be very much appreciated.
>
> Regards/Koen
>
Received on Tue Aug 21 2001 - 01:44:36 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:01:52 MST