winbind (samba 3.2) does not populate pw_gecos information for domain users

Bug #289299 reported by Timothy Pearson
2
Affects Status Importance Assigned to Milestone
samba (Ubuntu)
Fix Released
Undecided
Unassigned
Declined for Intrepid by Chuck Short
Declined for Jaunty by Mathias Gug

Bug Description

Binary package hint: winbind

Intrepid's new Winbind version (Samba 3.2) does not populate pw_gecos information for domain users. This prevents the user's real name from showing up in certain applications that read pw_gecos information, such as the KDE unlock screen.

I have modified an existing program to demonstrate this behavior, and it is attached.

Expected output (what happens when Samba 3.0.x is running on an Ubuntu Hardy system):
doTest: Entered with username testuser
doTest: calling getpwnam_r
doTest: errno after call to getpwnam_r = 0
doTest: getpwnam_r succeeded for user testuser
     pw_name = testuser
     pw_passwd = *
     pw_uid = 11000
     pw_gid = 10000
     pw_gecos = My Real Name
     pw_shell = /bin/bash
doTest: calling getpwnam
doTest: getpwnam succeeded for user testuser
     pw_name = testuser
     pw_passwd = *
     pw_uid = 11000
     pw_gid = 10000
     pw_gecos = My Real Name
     pw_shell = /bin/bash

Actual output (Samba 3.2.x on Ubuntu Intrepid):
doTest: Entered with username testuser
doTest: calling getpwnam_r
doTest: errno after call to getpwnam_r = 0
doTest: getpwnam_r succeeded for user testuser
     pw_name = eldarion
     pw_passwd = *
     pw_uid = 11000
     pw_gid = 10000
     pw_gecos =
     pw_shell = /bin/bash
doTest: calling getpwnam
doTest: getpwnam succeeded for user testuser
     pw_name = eldarion
     pw_passwd = *
     pw_uid = 11000
     pw_gid = 10000
     pw_gecos =
     pw_shell = /bin/bash

Revision history for this message
Timothy Pearson (kb9vqf) wrote :
Revision history for this message
Timothy Pearson (kb9vqf) wrote :

Just realized that in the second batch the pw_name reads eldarion instead of testuser--that was me, not the program. I was trying to mask my user ID; oops! :-)

Revision history for this message
Timothy Pearson (kb9vqf) wrote :

This issue occurs on every Intrepid machine that I have (so far, three independent computers).

Rarely, pw_gecos will work properly. However, the very next call to pw_gecos once again returns no information.

Changed in samba:
status: New → Confirmed
Revision history for this message
Thierry Carrez (ttx) wrote :

This might be related to https://bugzilla.samba.org/show_bug.cgi?id=5747
Could you test if it is fixed in Jaunty ?
You nominated it for jaunty. Does it mean that you reproduced it in Jaunty ?
Thanks.

Changed in samba:
status: Confirmed → Incomplete
Revision history for this message
Timothy Pearson (kb9vqf) wrote :

Yes, I reproduced it in Jaunty. No, it is not fixed as of 03/27/09. In fact, I check the status of this bug every day when my computer screen locks and my full name does not show up on the login screen (KDE3.5 kdesktoplock uses an identical mechanism to retrieve the user's full name). ;-)

If you would like any additional debugging information I would be happy to provide it.

Thanks!

Changed in samba:
status: Incomplete → Confirmed
Revision history for this message
Chuck Short (zulcss) wrote :

This should be fixed for lucid.

Regards
chuck

Changed in samba (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.