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
passwd expand gecos = <boolean>
If that is 'yes', expand & in pw_gecos at the appropriate locations.
[i'll attach a patch].
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'.
I don't really want a new parameter and there has not been
any additional requests for this feature.