Re: [netatalk-admins] remind me...


Subject: Re: [netatalk-admins] remind me...
From: Gerry.Tomlinson (Gerry.Tomlinson@newcastle.ac.uk)
Date: Mon Mar 16 1998 - 07:55:38 EST


>
> What is the difficulty with adding utmp/wtmp logging to afpd? If it's not
> that hard then I might consider doing it.
>

I raised this with Wes a long time ago -

he said:

>
> We can put records into wtmp at the beginning of the session, after we
> know who the user is, but before we change our uid. Putting a second
> entry in when we're done is more problematic. I suppose we could keep
> the file descriptor open for the whole session, tho that is a little
> ugly.
>

I said:

> couldn't the master afpd do the second entry - in the same way that
> unix login makes the initial entry and init the second.

and he replied:

>Well, yes and know. afpd's architecture is kind of broken. The afpd
>parent never gets control again, after it asks for the first session.
>However, we could insert the code you're talking about in the asp
>library. We'd also need to make changes to auth.c for the initial
>login line, and in main.c, so that the parent would know whether the
>child actually logged in, or just closed the connection after forking.
>
>Probably doable.

        Gerry

---
Gerry.Tomlinson@newcastle.ac.uk
Computing Officer
Department of Computing Science, University of Newcastle, Tel: +44 191 222 8139
Newcastle upon Tyne, NE1 7RU, United Kingdom.             Fax: +44 191 222 8232



This archive was generated by hypermail 2b28 : Sat Dec 18 1999 - 16:31:40 EST