[prog] Getting Remote_User .htaccess (not working)

Gareth Anderson somecsstudent at gmail.com
Fri Nov 19 11:15:30 EST 2004


Ok, tried this and got:

"
[Fri Nov 19 11:07:21 2004] [alert] [client 220.244.224.41]
/www/users/gja/.htaccess: Invalid command 'AuthLDAPHosts', perhaps
mis-spelled or defined by a module not included in the server
configuration
"

Maybe the module not installed correctly or something? Could that be possible?

Regards,
Gareth

On Fri, 19 Nov 2004 10:29:21 +1100, Gareth Anderson
<somecsstudent at gmail.com> wrote:
> The setup I have supplied definitely works.
> 
> If I change it I get:
> "
> Internal Server Error
> The server encountered an internal error or misconfiguration and was
> unable to complete your request.
> 
> Please contact the server administrator,
> webmaster at yoyo.its.monash.edu.au and inform them of the time the error
> occurred, and anything you might have done that may have caused the
> error.
> 
> More information about this error may be available in the server error log.
> 
> Apache/1.3.28 Server at yoyo.its.monash.edu.au Port 80
> "
> I emphaise the 1.3.x part.
> 
> Also there are several mod_ldap modules in apache 1.3.x
> 
> THis one   http://nona.net/software/ldap/config/ was installed from
> FreeBSD ports I believe.
> 
> Regards,
> Gareth
> 
> 
> 
> On Thu, 18 Nov 2004 23:06:17 +0100, Almut Behrens <almut-behrens at gmx.net> wrote:
> > On Thu, Nov 18, 2004 at 07:35:57PM +1100, Gareth Anderson wrote:
> >
> >
> > >
> > > This is my .htaccess file (I got this installed on the yoyo server
> > > because others didn't work):
> > >
> > > "
> > > order deny,allow
> > > deny from all
> > > AuthType Basic
> > > AuthName "Monash Directory Service (authcate)"
> > > AuthLDAPUrl ldap://directory.monash.edu.au/o=Monash University, c=au
> > > require valid-user
> > > satisfy any
> > > "
> > >
> > > Its called mod_auth_ldap
> > > http://nona.net/software/ldap/compile/
> > >
> > > Anyway, I cannot get the $REMOTE_USER variable in the directory where
> > > the .htaccess is, authenticaation takes place and it works fine...
> >
> > Are you really sure it is working?  Or, put differently, are you sure
> > you're running apache 1.3.x (as you said in the other mail) with the
> > mod_auth_ldap module available at the URL you mentioned above?
> > If you're really running version 1.3.x, your .htaccess configuration
> > cannot work, AFAICT.
> >
> > There are two distinct mod_auth_ldap modules, one for the apache 1.3.x
> > series, and the other for 2.x.  Despite their identical names, they are
> > rather different, each with their own set of incompatible configuration
> > directives.  In particular, the mod_auth_ldap-for-1.3.x does not have a
> > "AuthLDAPUrl" option[1] -- so I'd expect you to see an "Internal server
> > error", if you put that option into your .htaccess file...
> >
> > Don't get me wrong. I'm not trying to prove you wrong in any way,
> > but unless we know what your precise setup is, we won't know what
> > documentation to look at... :)
> >
> > For 1.3.x that would be:
> >
> >   http://nona.net/software/ldap/config/
> >
> > and for 2.x, there's the regular apache documentation:
> >
> >   http://httpd.apache.org/docs-2.0/mod/mod_auth_ldap.html
> >
> > So, the first step would be to resolve this inconsistency and find out
> > which version of apache/mod_auth_ldap actually is running.  With a bit
> > of luck, this might well make you solve your $REMOTE_USER issue all by
> > yourself...
> >
> > Almut
> >
> > [1] instead, you'll at least need AuthLDAPHosts, AuthLDAPUserKey and
> > AuthLDAPPassKey -- maybe some others as well.
> >
> > _______________________________________________
> > Programming mailing list
> > Programming at linuxchix.org
> > http://mailman.linuxchix.org/mailman/listinfo/programming
> >
>


More information about the Programming mailing list