[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: APOP with qpopper (was: Re: qpopper with shadow passwords)



At 05:48 PM 3/31/99 -0500, you wrote:
>At 02:23 PM 3/31/99 -0600, you wrote:
>
>>[root conan sbin]# /usr/sbin/popauth -init
>>/usr/sbin/popauth: error setting ownership of POP authorization DB: No such
>>file or directory
>
>This is actually not related to shadow passwords, this is where qpopper's
>APOP support falls flat on its face on Red Hat.  Included below are some
>instructions that someone kindly sent me that fixed their APOP problems,
>and they are actually using qpopper's APOP.  Now, all that said, I've not
>tested it myself (haven't had the time).  If this works for you, please let
>us know.  Also, to the other guy that posted requesting APOP support, give
>this a shot (I hope you're reading this message...).

Hey Mike, thanks for your suggestion.  I checked out the qpopper list
archives and a lot of Linux users have the same error message with 2.53
which is supposed to be fixed in the 3.0 beta release 14 so I'm working on
that release now...

Consistent with your advice, I think I've isolated the problem to a qpopper
bug (actually a popauth.c line 579 bug) that appears to only occur when you
are using shadow passwords (b/c you need *dbm) and also using ndbm.
Perhaps someone with more C coding knowledge than I can tell me what to do
about this short of installing gdbm?

The build dies with:

popauth.c: In function `main':
popauth.c:579: `auth_file' undeclared (first use this function)
popauth.c:579: (Each undeclared identifier is reported only once
popauth.c:579: for each function it appears in.)
make[1]: *** [popauth.o] Error 1

So I check popauth.c and I find that auth_file referenced on line 579...

    573 #ifdef GDBM
    574     if ((db = gdbm_open (auth_file, 512, GDBM_READER, 0, 0)) == NULL)
    575 #else
    576     if ((db = dbm_open (AUTHDB, O_RDONLY, 0)) == NULL)
    577 #endif
    578                 adios ("unable to open POP authentication DB %s:\n
   %s (%i)",
    579                        auth_file, strerror(errno), __LINE__);
 
... but it is only defined for gdmb:

    342 #ifdef GDBM
    343     GDBM_FILE db;
    344     char      auth_file[BUFSIZ];
    345 #else
    346     DBM       *db;
    347     char      auth_dir[BUFSIZ];
    348 #ifndef BSD44_DBM
    349     char      auth_pag[BUFSIZ];
    350 #endif
 



---
Alan D. Mead  /  Research Scientist  /  adm ipat com
Institute for Personality and Ability Testing
1801 Woodfield Dr  /  Savoy IL 61874 USA
217-352-4739 (v)  /  217-352-9674 (f)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]