Yes it was running 2.2.8a but I had patched it as per the advice of
one of the good guys that monitor this discussion list.  The patch was in
session.c as follows:

Replace the following line
        hostname = client_addr();

with
       hostname = client_name();
       if (strequal(hostname,"UNKNOWN"))
               hostname = client_addr();

Ciao
SK




                                                                                       
                                            
                      Tom Crane <[EMAIL PROTECTED]>                                    
                                       
                      Sent by:                                      To:       [EMAIL 
PROTECTED]                                
                      [EMAIL PROTECTED]        cc:                                     
                       
                      s.samba.org                                   Subject:  Re: 
[Samba] UTMP logging in Samba 3.0.1 does not     
                                                                     have hostnames    
                                            
                                                                                       
                                            
                      23/12/2003 20:59                                                 
                                            
                                                                                       
                                            
                                                                                       
                                            




>       Hi,
>
>       I was testing Samba 3.0.1 as a logon server on a Solaris 9 Sparc
box.
> I compiled Samba using gcc 3.3 with the following options:
>
> configure --prefix=/local/samba-3.0.1 --enable-static --with-nis
> --with-quotas --with-syslog --with-msdfs --with-utmp
>
>       I set utmp = yes in the smb.conf file
>
>       The samba server does create login entries but minus the hostname
> entries.  The following lists the after and before login entries:
>
>       With Samba 3.0.1
>
> mackensj  smb/1                         Tue Dec 23 11:22 - 11:24  (00:02)
> regoa     smb/2                         Tue Dec 23 11:22 - 11:24  (00:02)
> cunningg  smb/2                         Tue Dec 23 11:21 - 11:21  (00:00)
Two sessions both on smb/2 - this must be a bug??

>
>       With Samba 2.2.8a I was getting the following:
>
> ochomoj   smb/6        docsdp100        Mon Dec 22 23:11 - 23:59  (00:47)
> wichmanr  smb/7        unchs25          Mon Dec 22 23:07 - 23:07
(00:00)
> regoa     smb/4        gefpq198         Mon Dec 22 22:59 - 00:46
(01:46)

Were you definitely running 2.2.8a? My understanding is it only logs by
IP address... or am I missing something here???

Regards
Tom
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba





-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba

Reply via email to