From a94b044a5cba2d4e5d4dadbd7b3a433322748c2c Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Wed, 31 Jan 2007 05:38:36 +0000 Subject: 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) --- source3/nsswitch/winbindd_group.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source3/nsswitch/winbindd_group.c') diff --git a/source3/nsswitch/winbindd_group.c b/source3/nsswitch/winbindd_group.c index e5cdc404a0..9d8b41b4bf 100644 --- a/source3/nsswitch/winbindd_group.c +++ b/source3/nsswitch/winbindd_group.c @@ -462,6 +462,7 @@ void winbindd_getgrnam(struct winbindd_cli_state *state) gid_t gid; union unid_t id; NTSTATUS status; + char replace_char[2] = { 0x0, 0x0 }; /* Ensure null termination */ state->request.data.groupname[sizeof(state->request.data.groupname)-1]='\0'; @@ -502,6 +503,8 @@ void winbindd_getgrnam(struct winbindd_cli_state *state) } /* Get rid and name type from name */ + + ws_name_replace( name_group, '_' ); if (!winbindd_lookup_sid_by_name(state->mem_ctx, domain, domain->name, name_group, &group_sid, &name_type)) { -- cgit