At 05:19 PM 4/3/01 -0800, you wrote:

>OK I can get the authentication working sweet by adding users to the 
>users.dat file. Only I am still stumped as to the authextern.dll
>
>In my access.conf I have added
>---------------------------
>## Domains
>*:read:$lookup$:$lookup$:*:
>*:read,post:groups=naughtystuff1:naughty.stuff1:add
>*:read,post:groups=naughtystuff2:naughty.stuff2:add
>---------------------------
>
>In my dnews.conf I have added under the optional part
>------------------------------
>authextern true
>auth_nosystem true
>------------------------------
>
>I have compiled a dll using VB the code is ....
>----------------------------------------------
>Option Explicit
>
>Public Function dnewsauth(ByVal user As String, ByVal password As String, _
>     ByRef usergrps As String, bfsz As Integer, ByRef msg As String) As 
> Integer
>     If user = "Hans" And password = "hans" Then
>         usergrps = "naughtystuff1"
>         msg = "Ok log file it worked allright"
>         dnewsauth = True
>     Else
>         dnewsauth = False
>     End If
>End Function
>-----------------------------------------
>
>Ok in my dnewsweb.log file an attempt to login looks like this.
>I am thinking that you were referring to the line thisuser ()??
>--------------------------------------------
>Apr 04 10:21:15, DNEWSWEB version 5.5b2
>Apr 04 10:21:15, DNEWSWEB, Startup, Looking for winsock dll
>Apr 04 10:21:15, Socket library found, 32767 sockets available
>Apr 04 10:21:15, thisuser ()
>Apr 04 10:21:15, Processing POST
>Apr 04 10:21:15, Form content (application/x-www-form-urlencoded)
>Apr 04 10:21:15, utag got = ()
>Apr 04 10:21:15, Post cmd (login)
>Apr 04 10:21:15, r_login()
>Apr 04 10:21:15, pop_check (hans)
>Apr 04 10:21:15, pop_check1 (hans)
>Apr 04 10:21:15, pop_check2 (hans)
>Apr 04 10:21:15, pop_check3 (hans) (:110)
>Apr 04 10:21:15, Login pass failed 502 Authentication error
>
>Apr 04 10:21:15, do_content called and shown
>Apr 04 10:21:15, user_read 0 ()
>Apr 04 10:21:15, set utag = ()
>Apr 04 10:21:15, Searching cookie (dnews_user) (dnews_user=hans; 
>dnews_utoken=bill+)
>Apr 04 10:21:15, Program finished ok, etextlen = 0
>-------------------------------


Ok, you should be looking at dnews.log for the error's during 
authentication, however you also
need to add to dnews.conf
         auth_nntp true
which may fix the problem.

                 ChrisP.



Reply via email to