Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Jul 2010 12:34:01 +0100
From:      David Southwell <david@vizion2000.net>
To:        apache@freebsd.org
Subject:   Confusing ldap problem - apache22
Message-ID:  <201007181234.01144.david@vizion2000.net>

next in thread | raw e-mail | index | archive | help
Hi

My apache22 server has been running fine until recent upgrade. Now apache22 
would not start due to ldap loading problems producing http-error.log entry #1 
shown below.

If I then add

LoadModule mod_auth_ldap   libexec/apache22/mod_ldap.so
to http.conf
I get the same http-error.log entry #1 with this output from apachectl start:

dns1# /usr/local/sbin/apachectl start
httpd: Syntax error on line 110 of /usr/local/etc/apache22/httpd.conf: Can't 
locate API module structure `mod_auth_ldap' in file 
/usr/local/libexec/apache22/mod_ldap.so: Undefined symbol "mod_auth_ldap"


I tried to recompile /usr/ports/www/mod_auth_ldap but make fails. Console 
output shown below.

Apache22 options are shown below

Thanks in advance for any advice

David
______________________________________________________________
HERE IS WHATS BELOW:

extracts from                              search in this posting
apache options                                    ***apache_options***
http-error.log (#1)                               ***http-error.log#1***
make www/mod_auth_ldap                  ***mod_auth_ldap***




_____________________________________________________
***apache_options***
______________________________________________

dns1# cat /var/db/ports/apache22/options
# This file is auto-generated by 'make config'.
# No user-servicable parts inside!
# Options for apache-2.2.15_9
_OPTIONS_READ=apache-2.2.15_9
WITH_THREADS=true
WITH_MYSQL=true
WITHOUT_PGSQL=true
WITHOUT_SQLITE=true
WITH_IPV6=true
WITHOUT_BDB=true
WITH_AUTH_BASIC=true
WITH_AUTH_DIGEST=true
WITH_AUTHN_FILE=true
WITHOUT_AUTHN_DBD=true
WITH_AUTHN_DBM=true
WITH_AUTHN_ANON=true
WITH_AUTHN_DEFAULT=true
WITH_AUTHN_ALIAS=true
WITH_AUTHZ_HOST=true
WITH_AUTHZ_GROUPFILE=true
WITH_AUTHZ_USER=true
WITH_AUTHZ_DBM=true
WITH_AUTHZ_OWNER=true
WITH_AUTHZ_DEFAULT=true
WITH_CACHE=true
WITH_DISK_CACHE=true
WITH_FILE_CACHE=true
WITH_MEM_CACHE=true
WITH_DAV=true
WITH_DAV_FS=true
WITHOUT_BUCKETEER=true
WITH_CASE_FILTER=true
WITH_CASE_FILTER_IN=true
WITHOUT_EXT_FILTER=true
WITHOUT_LOG_FORENSIC=true
WITHOUT_OPTIONAL_HOOK_EXPORT=true
WITHOUT_OPTIONAL_HOOK_IMPORT=true
WITHOUT_OPTIONAL_FN_IMPORT=true
WITHOUT_OPTIONAL_FN_EXPORT=true
WITH_LDAP=true
WITHOUT_AUTHNZ_LDAP=true
WITH_ACTIONS=true
WITH_ALIAS=true
WITH_ASIS=true
WITH_AUTOINDEX=true
WITH_CERN_META=true
WITH_CGI=true
WITH_CHARSET_LITE=true
WITHOUT_DBD=true
WITH_DEFLATE=true
WITH_DIR=true
WITH_DUMPIO=true
WITH_ENV=true
WITH_EXPIRES=true
WITH_HEADERS=true
WITH_IMAGEMAP=true
WITH_INCLUDE=true
WITH_INFO=true
WITH_LOG_CONFIG=true
WITH_LOGIO=true
WITH_MIME=true
WITH_MIME_MAGIC=true
WITH_NEGOTIATION=true
WITH_REWRITE=true
WITH_SETENVIF=true
WITH_SPELING=true
WITH_STATUS=true
WITH_UNIQUE_ID=true
WITH_USERDIR=true
WITH_USERTRACK=true
WITH_VHOST_ALIAS=true
WITH_FILTER=true
WITH_VERSION=true
WITH_PROXY=true
WITH_PROXY_CONNECT=true
WITH_PATCH_PROXY_CONNECT=true
WITH_PROXY_FTP=true
WITH_PROXY_HTTP=true
WITH_PROXY_AJP=true
WITH_PROXY_BALANCER=true
WITHOUT_PROXY_SCGI=true
WITH_SSL=true
WITHOUT_SUEXEC=true
WITHOUT_SUEXEC_RSRCLIMIT=true
WITH_REQTIMEOUT=true
WITH_CGID=true
dns1# 





dns1# cd /usr/ports/www/mod_auth_ldap
dns1# make clean
===>  Cleaning for apache-2.2.15_9
===>  Cleaning for ap22-mod_auth_ldap-2.12_1
dns1# make
===>  License check disabled, port has not defined LICENSE
===>  Extracting for ap22-mod_auth_ldap-2.12_1
=> MD5 Checksum OK for modauthldap_apache2.tar.gz.
=> SHA256 Checksum OK for modauthldap_apache2.tar.gz.
===>  Patching for ap22-mod_auth_ldap-2.12_1
===>   ap22-mod_auth_ldap-2.12_1 depends on file: /usr/local/sbin/apxs - found
===>   ap22-mod_auth_ldap-2.12_1 depends on shared library: ldap-2.4.7 - found
===>  Configuring for ap22-mod_auth_ldap-2.12_1
creating cache ./config.cache
checking whether make sets ${MAKE}... yes
checking for gcc... cc
checking whether the C compiler (cc -O2 -fno-strict-aliasing -pipe -
march=nocona -DLDAP_DEPRECATED ) works... yes
checking whether the C compiler (cc -O2 -fno-strict-aliasing -pipe -
march=nocona -DLDAP_DEPRECATED ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether cc accepts -g... yes
checking for socket... yes
checking for htonl... yes
checking for gethostname... yes
checking for gethostbyaddr... yes
checking for yp_get_default_domain... yes
checking for res_search... yes
checking for inet_aton... yes
checking for dn_skipname... no
checking for __dn_skipname... yes
checking for Apache 2.0 module support via DSO through APXS... no
checking for path of LDAP SDK... /usr/local
checking for 3 arg ldap_set_rebind_proc... no
checking for ldap_start_tls_s... yes
checking whether to enable SSL... no
updating cache ./config.cache
creating ./config.status
creating Makefile
creating mk_withldap

==============================================================================
Only generating mk_withldap script for compiling in the ldap module
with  apache 2. cd to the apache2 source directory and run the script 
mk_withldap from there. Supply any needed flag you will supply with 
apache2 configure as the script will run the configure script with the flags.
Example:
$ pwd
$ /home/muquit/modauth_apache2
$ cd ../httpd-2.0.43
$ sh ../modauth_apache2/mk_withldap --prefix=/usr/local/apache243
$ make
$ ./httpd -l
mod_auth_ldap.c must be in the list
==============================================================================

===>  Building for ap22-mod_auth_ldap-2.12_1
===>  Generating apache plist
/usr/local/share/apr/build-1/libtool --silent --mode=compile cc -prefer-pic -
O2 -fno-strict-aliasing -pipe -march=nocona -I/usr/local/include -
DLDAP_DEPRECATED   -O2 -fno-strict-aliasing -pipe -march=nocona -
I/usr/local/include -DLDAP_DEPRECATED -g -I/usr/local/include/apache22  -
I/usr/local/include/apr-1   -I/usr/local/include/apr-1 -I/usr/local/include -
I/usr/include -I/usr/local/include/db42  -c -o mod_auth_ldap.lo 
mod_auth_ldap.c && touch mod_auth_ldap.slo
mod_auth_ldap.c:61:24: error: apr_compat.h: No such file or directory
mod_auth_ldap.c: In function 'create_ldap_auth_dir_config':
mod_auth_ldap.c:303: warning: cast to pointer from integer of different size
mod_auth_ldap.c:322: warning: assignment makes pointer from integer without a 
cast
mod_auth_ldap.c:337: warning: assignment makes pointer from integer without a 
cast
mod_auth_ldap.c: In function 'set_ldap_server':
mod_auth_ldap.c:364: warning: assignment makes pointer from integer without a 
cast
mod_auth_ldap.c: In function 'set_ldap_deref':
mod_auth_ldap.c:403: warning: initialization makes pointer from integer 
without a cast
mod_auth_ldap.c: In function 'set_base_dn':
mod_auth_ldap.c:445: warning: assignment makes pointer from integer without a 
cast
mod_auth_ldap.c: In function 'set_sub_dn':
mod_auth_ldap.c:453: warning: assignment makes pointer from integer without a 
cast
mod_auth_ldap.c: In function 'set_bind_dn':
mod_auth_ldap.c:461: warning: assignment makes pointer from integer without a 
cast
mod_auth_ldap.c: In function 'set_bind_pass':
mod_auth_ldap.c:469: warning: assignment makes pointer from integer without a 
cast
mod_auth_ldap.c: In function 'set_uid_attr':
mod_auth_ldap.c:501: warning: assignment makes pointer from integer without a 
cast
mod_auth_ldap.c: In function 'set_uid_attr_alt':
mod_auth_ldap.c:509: warning: assignment makes pointer from integer without a 
cast
mod_auth_ldap.c: In function 'set_group_attr':
mod_auth_ldap.c:517: warning: assignment makes pointer from integer without a 
cast
mod_auth_ldap.c: In function 'set_ldapauthoritative':
mod_auth_ldap.c:525: warning: initialization makes pointer from integer 
without a cast
mod_auth_ldap.c: At top level:
mod_auth_ldap.c:558: error: expected expression before 'ldap_auth_config_rec'
mod_auth_ldap.c:558: warning: cast to pointer from integer of different size
mod_auth_ldap.c:558: error: initializer element is not constant
mod_auth_ldap.c:558: error: (near initialization for 
'ldap_auth_cmds[0].cmd_data')
mod_auth_ldap.c:631: error: expected expression before 'ldap_auth_config_rec'
mod_auth_ldap.c:631: warning: cast to pointer from integer of different size
mod_auth_ldap.c:631: error: initializer element is not constant
mod_auth_ldap.c:631: error: (near initialization for 
'ldap_auth_cmds[14].cmd_data')
mod_auth_ldap.c:635: error: expected expression before 'ldap_auth_config_rec'
mod_auth_ldap.c:635: warning: cast to pointer from integer of different size
mod_auth_ldap.c:635: error: initializer element is not constant
mod_auth_ldap.c:635: error: (near initialization for 
'ldap_auth_cmds[15].cmd_data')
mod_auth_ldap.c:652: error: expected expression before 'ldap_auth_config_rec'
mod_auth_ldap.c:652: warning: cast to pointer from integer of different size
mod_auth_ldap.c:652: error: initializer element is not constant
mod_auth_ldap.c:652: error: (near initialization for 
'ldap_auth_cmds[16].cmd_data')
mod_auth_ldap.c:656: error: expected expression before 'ldap_auth_config_rec'
mod_auth_ldap.c:656: warning: cast to pointer from integer of different size
mod_auth_ldap.c:656: error: initializer element is not constant
mod_auth_ldap.c:656: error: (near initialization for 
'ldap_auth_cmds[17].cmd_data')
mod_auth_ldap.c: In function 'check_user_authentication':
mod_auth_ldap.c:1348: warning: assignment makes pointer from integer without a 
cast
mod_auth_ldap.c: In function 'check_user_authorization':
mod_auth_ldap.c:1751: error: 'ap_array_header_t' undeclared (first use in this 
function)
mod_auth_ldap.c:1751: error: (Each undeclared identifier is reported only once
mod_auth_ldap.c:1751: error: for each function it appears in.)
mod_auth_ldap.c:1751: error: expected expression before ')' token
mod_auth_ldap.c:1751: error: invalid operands to binary *
mod_auth_ldap.c:1751: error: called object '<erroneous-expression>' is not a 
function
mod_auth_ldap.c:1751: warning: assignment from incompatible pointer type
mod_auth_ldap.c:1927: warning: assignment makes pointer from integer without a 
cast
mod_auth_ldap.c:2035: warning: assignment makes pointer from integer without a 
cast
apxs:Error: Command failed with rc=65536
.
*** Error code 1

Stop in /usr/ports/www/mod_auth_ldap.




____________________________________________
***http-error.log
Extract
______________________________________________-
[Sun Jul 18 10:13:29 2010] [info] mod_ssl/2.2.15 compiled against Server: 
Apache/2.2.15, Library: OpenSSL/1.0.0a
[Sun Jul 18 10:13:29 2010] [error] Module mod_ldap missing. Mod_ldap (aka. 
util_ldap) must be loaded in order for mod_auth_ldap to function properly
Configuration Failed
[Sun Jul 18 10:22:57 2010] [info] mod_unique_id: using ip addr 62.49.197.50
[Sun Jul 18 10:22:58 2010] [info] Init: Seeding PRNG with 144 bytes of entropy
[Sun Jul 18 10:22:58 2010] [info] Loading certificate & private key of SSL-
aware server
[Sun Jul 18 10:22:58 2010] [info] Init: Requesting pass phrase via builtin 
terminal dialog
[Sun Jul 18 10:23:06 2010] [debug] ssl_engine_pphrase.c(476): encrypted RSA 
private key - pass phrase requested
[Sun Jul 18 10:23:06 2010] [info] Init: Wiped out the queried pass phrases 
from memory
[Sun Jul 18 10:23:06 2010] [info] Init: Generating temporary RSA private keys 
(512/1024 bits)
[Sun Jul 18 10:23:07 2010] [info] Init: Generating temporary DH parameters 
(512/1024 bits)
[Sun Jul 18 10:23:07 2010] [info] Init: Initializing (virtual) servers for SSL
[Sun Jul 18 10:23:07 2010] [info] Configuring server for SSL protocol
[Sun Jul 18 10:23:07 2010] [debug] ssl_engine_init.c(415): Creating new SSL 
context (protocols: SSLv2, SSLv3, TLSv1)
[Sun Jul 18 10:23:07 2010] [debug] ssl_engine_init.c(611): Configuring 
permitted SSL ciphers [ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:
+EXP:+eNULL]
[Sun Jul 18 10:23:07 2010] [debug] ssl_engine_init.c(370): Configuring TLS 
extension handling
[Sun Jul 18 10:23:07 2010] [debug] ssl_engine_init.c(742): Configuring RSA 
server certificate
[Sun Jul 18 10:23:07 2010] [warn] RSA server certificate is a CA certificate 
(BasicConstraints: CA == TRUE !?)
[Sun Jul 18 10:23:07 2010] [debug] ssl_engine_init.c(781): Configuring RSA 
server private key
[Sun Jul 18 10:23:07 2010] [info] mod_ssl/2.2.15 compiled against Server: 
Apache/2.2.15, Library: OpenSSL/1.0.0a
[Sun Jul 18 10:23:07 2010] [error] Module mod_ldap missing. Mod_ldap (aka. 
util_ldap) must be loaded in order for mod_auth_ldap to function properly
Configuration Failed 


Photographic Artist
Permanent Installations & Design
Creative Imagery and Advanced Digital Techniques
High Dynamic Range Photography & Official Portraiture
Combined darkroom & digital creations
& Systems Adminstrator for the vizion2000.net network



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201007181234.01144.david>