Bug in authprogs/domain and doc/external-auth

Todd Olson tco2 at cornell.edu
Tue Mar 8 22:42:37 UTC 2005


Hi

authprogs/domain  does not work in INN 2.4.1 

The problem can be fixed by changing 
       printf("User:%s", host);
to read
       printf("User:%s\n", host);


On a related note, doc/external-auth  states
   "If the program succeeds, it may return a username string ..."
which suggests that the return is optional
but testing shows that the return is *required*
so
    'may'  should be changed to   'must'

Further, it goes on to say that the line should be exactly

     user:username\r

but testing shows that the line only works if the last char is \n
so this should either read

     user:username\r\n
or
     user:username\n


I don't know whether the documentation is wrong and should be
rewritten or the code is wrong and should be changed to match the docs.

All I know is that testing shows external-auth does not work unless
the lines end in \n


Regards,
Todd Olson
Cornell University


More information about the inn-workers mailing list