Bug 2154 - [patch] expansion of '&' in struct passwd.pw_gecos
[patch] expansion of '&' in struct passwd.pw_gecos
Product: Samba 3.0
Classification: Unclassified
Component: User/Group Accounts
All NetBSD
: P3 normal
: none
Assigned To: Samba Bugzilla Account
Samba QA Contact
Depends on:
  Show dependency treegraph
Reported: 2004-12-13 16:16 UTC by Luke Mewburn
Modified: 2006-04-14 14:54 UTC (History)
0 users

See Also:

expand-gecos.patch (4.77 KB, patch)
2004-12-13 16:18 UTC, Luke Mewburn
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Luke Mewburn 2004-12-13 16:16:32 UTC
Samba doesn't support expanding occurrences of '&' in the pw_gecos field into
the capitalized pw_name. This pw_gecos feature is supported on BSD systems and
  Solaris passwd(4):  http://docs.sun.com/app/docs/doc/817-0716/6mggehbti?a=view
  NetBSD passwd(5):   http://netbsd.gw.com/cgi-bin/man-cgi?passwd+5+NetBSD-current

I raised this on samba-technical, without much response.  So I decided to
implement this in a 'clean and configurable' manner.  I implemented a new
smb.conf(5) boolean:
   passwd expand gecos = <boolean>
If that is 'yes', expand & in pw_gecos at the appropriate locations.

[i'll attach a patch].
Comment 1 Luke Mewburn 2004-12-13 16:18:44 UTC
Created attachment 842 [details]

I haven't provided a documentation patch because that's autogenerated from
sources I don't currently have checked out.  If the functionality is accepted I
can help with wording of an smb.conf(5) entry for 'passwd expand gecos'.
Comment 2 Gerald (Jerry) Carter 2006-04-14 14:54:04 UTC
I don't really want a new parameter and there has not been 
any additional requests for this feature.