Bug 7806 - full_name is null due to netsamlogon_cache.tdb
Summary: full_name is null due to netsamlogon_cache.tdb
Status: NEW
Alias: None
Product: Samba 3.5
Classification: Unclassified
Component: Winbind (show other bugs)
Version: 3.5.6
Hardware: x64 Linux
: P3 normal
Target Milestone: ---
Assignee: Michael Adam
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-19 15:16 UTC by Brian C. Huffman
Modified: 2020-12-30 14:46 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.
Comment 2 Björn Jacke 2020-12-30 14:46:44 UTC
I can't reproduce this with 4.13, do you still see this?