Parantido Web Log

- Natural (SysAdmin) Cycle Life Brainstorming -

Libapache2 Mod Auth: “(9)Bad file descriptor: Could not open password file: (null)”

June 4th, 2007 by Parantido

Recentemente è stato aggiornato il pacchetto libapache2-mod-auth e all’utilizzo degli stessi file di configurazione provoca il seguente errore:

(9)Bad file descriptor: Could not open password file: (null)

Per risolvere la situazione è sufficiente aggiungere la seguente linea al proprio file di configurazione:

AuthBasicAuthoritative off

Come riportato dalla fonte del bug il problema è il seguente:

“The only difference between apache 2.2.3-2 and 2.2.3-3.3 that appears
relevant is that 2.2.3-3.1 *enables* authz_user by default”

 

3 Responses

  1. Marc Richter

    Hey, THANKS a lot!!

    I migrated a server from apache1/php4 to apache2/php5 and just didn’t get it, until I found your site and this hint.

    I don’t speak/read a single word of italic language, but I understood the content anyway ;)

  2. Parantido

    Hi,

    i’m very glad my post had been useful to your server migration!

    Cheers

    Parantido

  3. richard

    In case you’re using the patched version of mod_auth_mysql for apache2, setting the AuthBasicAuthoritative directive may not be enough.

    If you still get the “Bad file descriptor” error, in combination with
    ” Internal error: pcfg_openfile() called with NULL filename”, you can get rid of those messages by including this in your config-file:

    AuthUserFile /dev/null

Leave a Comment

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.