[PHP-DEV] Apache 1.3.9 && PHP 3.0.12 && (mod_auth_samba 1.1 || mod_auth_smb 0.02c) => doesn't work! why? From: HEIN Martin (Martin.HEIN <email protected>)
Date: 11/12/99

Hi,

Because of the demand to have both, PHP and WinNT authentication within
Apache, and because mod_php3 (3.0.12) in combination with mod_auth_samba
(1.1) and Apache (1.3.9) doesn't work, I came upon your module.

After successfully compiling 'smblib' and your module (statically linked)
into Apache, I tried to authenticate against our domain and pdc, but
unfortunately it didn't work, I always received the following error
message:

        maxweb# more logs/error_log
        [Thu Nov 11 09:27:07 1999] [notice] Digest: generating secret for digest authentication ...
        [Thu Nov 11 09:27:07 1999] [notice] Digest: done
        [Thu Nov 11 09:27:07 1999] [notice] Apache/1.3.9 (Unix) mod_fastcgi/2.2.2 AuthSMB/0.02c PHP/3.0.12 configured -- resuming normal ope
        rations
        [Thu Nov 11 09:27:31 1999] [error] (9)Bad file number: access to /examples/php3/ failed for 195.5.102.158, reason: Conversation fail
        ure
        [Thu Nov 11 09:27:34 1999] [error] (13)Permission denied: access to /examples/php3/ failed for 195.5.102.158, reason: Conversation f
        ailure
        [Thu Nov 11 09:27:38 1999] [error] (13)Permission denied: access to /examples/php3/ failed for 195.5.102.158, reason: Conversation f
        ailure
        [Thu Nov 11 09:28:14 1999] [error] (9)Bad file number: access to /examples/php3/ failed for 195.5.102.158, reason: Conversation fail
        ure
        [Thu Nov 11 09:28:24 1999] [error] (13)Permission denied: access to /examples/php3/ failed for 195.5.102.158, reason: Conversation f
        ailure
        [Thu Nov 11 09:28:27 1999] [error] (13)Permission denied: access to /examples/php3/ failed for 195.5.102.158, reason: Conversation f
        ailure
        [Thu Nov 11 09:28:31 1999] [error] (13)Permission denied: access to /examples/php3/ failed for 195.5.102.158, reason: Conversation f
        ailure
        [Thu Nov 11 09:28:34 1999] [error] (13)Permission denied: access to /examples/php3/ failed for 195.5.102.158, reason: Conversation f
        ailure
        [Thu Nov 11 09:29:13 1999] [error] (13)Permission denied: access to / failed for 195.5.102.158, reason: Conversation failure
        [Thu Nov 11 09:29:19 1999] [error] (13)Permission denied: access to / failed for 195.5.102.158, reason: Conversation failure
        maxweb#

Any clue why this is happening?

My '.htaccess' looks like

        AuthName Company_Intranet

        AuthAuthoritative Off
        AuthType Basic
        #AuthType Digest
        #AuthUserFile /usr/local/apa_test/testuser
        #AuthGroupFile /usr/local/apa_test/testgroups

        #AuthSambaEnabled On
        #AuthSambaAuthoritative On
        #AuthSambaDomain OECALL_1:oc_1,oc_11,oc_8
        #AuthSambaGroupDbm /usr/local/apa_test/cache/apa_test_db

        Auth_SMB On
        Auth_SMB_Authoritative On
        #Auth_SMB_Domain OECALL_1
        #Auth_SMB_Server OC_1
        #Auth_SMB_Backup OC_8
        #Auth_SMB_Backup OC_11

        <Limit GET POST>
        #require group nixnix
        #require user gencerh
        #require user eisenkirchnerr
        require valid-user
        </Limit>

Below you'll find my template makefile which works quiet fine with
Apache 1.3.9.

# $Id:$
#
# Makefile.tmpl for the mod_auth_smb module
#
# Apache v1.3's Configure uses this to create a Makefile
#
# $Log$

LIB=libauthsmb.$(LIBEXT)

SRCS=mod_auth_smb.c md4.c \
         rfcnb-io.c rfcnb-util.c session.c \
         smbdes.c smbencrypt.c smblib-util.c smblib.c valid.c
OBJS=$(SRCS:.c=.o)

# Build commands

all: lib
lib: $(LIB)

$(LIB): $(OBJS)
        rm -f $@
        ar cr $@ $(OBJS)
        $(RANLIB) $@
 
.c.o:
        $(CC) -c $(INCLUDES) $(CFLAGS) $<

clean:
        rm -f $(LIB) $(OBJS)

distclean: clean
        rm -f Makefile

# NOT FOR END USERS!
depend:
        cp Makefile.tmpl Makefile.tmpl.bak \
            && sed -ne '1,/^# DO NOT REMOVE/p' Makefile.tmpl > Makefile.new \
            && gcc -MM $(INCLUDES) $(CFLAGS) *.c >> Makefile.new \
            && sed -e '1,$$s: $(INCDIR)/: $$(INCDIR)/:g' \
                   -e '1,$$s: $(OSDIR)/: $$(OSDIR)/:g' Makefile.new \
> Makefile.tmpl \
            && rm Makefile.new

# Dependencies

Bye,
Martin

------------------------------------------------------------------------
Martin HEIN/max.it Voice: +43-676-3456-337
max.mobil. Telekommunikation Service GmbH FAX: +43-1-79585-6584
Kelsenstrasse 5-7 EMail: Martin.HEIN <email protected>
A - 1030 Vienna/Austria/Europe WWW: http://www.maxmobil.at
========================================================================

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>