winbind (samba 3.2) does not populate pw_gecos information for domain users
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
samba (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
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
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! :-)