diff options
author | Gerald Carter <jerry@samba.org> | 2007-01-31 05:38:36 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:17:32 -0500 |
commit | a94b044a5cba2d4e5d4dadbd7b3a433322748c2c (patch) | |
tree | 97bfe20835e68c01574ebaa14a9ba3f274a2fa22 /source3/nsswitch/winbindd_user.c | |
parent | 44da8a6907882bd90d56daf4b712ebb073869596 (diff) | |
download | samba-a94b044a5cba2d4e5d4dadbd7b3a433322748c2c.tar.gz samba-a94b044a5cba2d4e5d4dadbd7b3a433322748c2c.tar.bz2 samba-a94b044a5cba2d4e5d4dadbd7b3a433322748c2c.zip |
r21070: * Add the new boolean 'winbind normalize names' option as discussed
on the samba-technical ml. The replacement character is hardcoded
as a '_' for now.
(This used to be commit bd8238417b8d692ed381a870901ff1ee4cfa80f6)
Diffstat (limited to 'source3/nsswitch/winbindd_user.c')
-rw-r--r-- | source3/nsswitch/winbindd_user.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/nsswitch/winbindd_user.c b/source3/nsswitch/winbindd_user.c index 76cf9d44bd..e386efedb3 100644 --- a/source3/nsswitch/winbindd_user.c +++ b/source3/nsswitch/winbindd_user.c @@ -241,6 +241,9 @@ static void getpwsid_queryuser_recv(void *private_data, BOOL success, fstrcpy( username, acct_name ); strlower_m( username ); s->username = talloc_strdup(s->state->mem_ctx, username); + + ws_name_replace( s->username, '_' ); + s->fullname = talloc_strdup(s->state->mem_ctx, full_name); s->homedir = talloc_strdup(s->state->mem_ctx, homedir); s->shell = talloc_strdup(s->state->mem_ctx, shell); |