Esempio n. 1
0
        private LastLogEntry GetCurrentEntry()
        {
            LastLogEntry llent = new LastLogEntry();

            llent.Uid     = (this.fs.Position / this.ll_len);
            llent.ll_time = this.br.ReadInt32();
            llent.Line    = Utils.CCharsToString(br.ReadChars(Config.UtLineSize));
            llent.Host    = Utils.CCharsToString(br.ReadChars(Config.UtHostSize));

            return(llent);
        }
Esempio n. 2
0
        ///<summary>
        /// Returns the entry for the supplied username or null if an
        /// invalid username is given.
        ///</summary>

        public LastLogEntry GetLlName(string name)
        {
            Password      pw    = new Password();
            LastLogEntry  llent = (LastLogEntry)null;
            PasswordEntry pwent = pw.GetPWName(name);

            if (pwent != null)
            {
                llent = this.GetLlUid(pwent.Uid);
            }

            return(llent);
        }