Author: jra
Date: 2005-08-29 21:21:36 +0000 (Mon, 29 Aug 2005)
New Revision: 9760

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=9760

Log:
Keep up to date.
Jeremy.

Modified:
   branches/tmp/RPCREWRITE/source/nsswitch/winbindd_user.c


Changeset:
Modified: branches/tmp/RPCREWRITE/source/nsswitch/winbindd_user.c
===================================================================
--- branches/tmp/RPCREWRITE/source/nsswitch/winbindd_user.c     2005-08-29 
21:15:04 UTC (rev 9759)
+++ branches/tmp/RPCREWRITE/source/nsswitch/winbindd_user.c     2005-08-29 
21:21:36 UTC (rev 9760)
@@ -230,6 +230,7 @@
                                    const char *shell,
                                    uint32 group_rid)
 {
+       fstring username;
        struct getpwsid_state *s =
                talloc_get_type_abort(private_data, struct getpwsid_state);
 
@@ -240,7 +241,9 @@
                return;
        }
 
-       s->username = talloc_strdup(s->state->mem_ctx, acct_name);
+       fstrcpy( username, acct_name );
+       strlower_m( username );
+       s->username = talloc_strdup(s->state->mem_ctx, 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);

Reply via email to