Bug 7806 - full_name is null due to netsamlogon_cache.tdb
full_name is null due to netsamlogon_cache.tdb
Status: NEW
Product: Samba 3.5
Classification: Unclassified
Component: Winbind
3.5.6
x64 Linux
: P3 normal
: ---
Assigned To: Michael Adam
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-11-19 15:16 UTC by Brian C. Huffman
Modified: 2011-04-28 21:47 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Brian C. Huffman 2010-11-19 15:16:13 UTC
I'm experiencing a problem in winbind using both a Fedora13 and a RedHat 4.7 machine.  It appears that something causes full_name to become NULL in netsamlogon_cache.  Removing the cache and restarting winbind returns things to normal.  Here's a test case that always seems to cause the problem (finger after slogin):

[root@arges45 ~]# finger testuser
Login: testuser       			Name: Testuser Lastname
Directory: /home/testuser           	Shell: /bin/bash
Last login Fri Nov 19 09:46 (EST) on pts/1 from localhost.localdomain
No mail.
No Plan.
[root@arges45 ~]# slogin testuser@localhost
testuser@localhost's password: 
Last login: Fri Nov 19 09:46:44 2010 from localhost.localdomain
Could not chdir to home directory /home/testuser: No such file or directory
-bash-3.00$ finger
Login     Name               Tty      Idle  Login Time   Office     Office Phone
bhuffman  Brian C. Huffman   pts/0          Nov 19 12:06 (polaris.xmen.eti)
bhuffman  Brian C. Huffman   pts/1    2:16  Nov 19 13:45 (polaris.xmen.eti)
testuser                     pts/2          Nov 19 16:06 (localhost.localdomain)
-bash-3.00$ exit
logout
Connection to localhost closed.
[root@arges45 ~]# finger testuser
Login: testuser       			Name: (null)
Directory: /home/testuser           	Shell: /bin/bash
Last login Fri Nov 19 16:06 (EST) on pts/2 from localhost.localdomain
No mail.
No Plan.
[root@arges45 ~]# rm /var/lib/samba/netsamlogon_cache.tdb 
[root@arges45 ~]# /etc/init.d/winbind restart

Shutting down Winbind services:                            [  OK  ]
Starting Winbind services:                                 [  OK  ]
[root@arges45 ~]# finger testuser
Login: testuser       			Name: Testuser Lastname
Directory: /home/testuser           	Shell: /bin/bash
Last login Fri Nov 19 16:06 (EST) on pts/2 from localhost.localdomain
No mail.
No Plan.
Comment 1 Kirk Baucom 2011-04-28 21:47:44 UTC
I'm seeing similar behavior on an Ubuntu 10.04 machine. In my case, I am only using winbind for web authentication via Apache mod_auth_ntlm_winbind. wbinfo -i and --sid-to-fullname will always return the fullname for a user until the user authenticates. After that, the fullname is blank.