r16065: Re-add a strlower_m(account) in samr_create_user that was dropped for no
authorVolker Lendecke <vlendec@samba.org>
Tue, 6 Jun 2006 20:34:26 +0000 (20:34 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 16:17:19 +0000 (11:17 -0500)
reason but to increase fidelity with W2k3. Tom Bork has raised valid concerns
that Unix scripts might rely on the account names being lower-case, so keep
that. We might later decide to only lower-case the unix name passed to
'add [user|group] script' but keep the passdb entry upper-case. But there are
enough user-visible changes in 3_0 already so that we should push this off to
a later date.

Tom, waiting for more bug reports from you ;-))

Thanks for insisting!

Volker
(This used to be commit bc78cca290559c5ca7623b9f6d9933e32668b9c4)

source3/rpc_server/srv_samr_nt.c

index 7a06e562ef46e0b2f32af51150405b3a87a26313..5e82ecd0cae0de26517120b2396dc33dcabadca7 100644 (file)
@@ -2463,6 +2463,8 @@ NTSTATUS _samr_create_user(pipes_struct *p, SAMR_Q_CREATE_USER *q_u,
                return NT_STATUS_NO_MEMORY;
        }
 
+       strlower_m(account);
+
        nt_status = can_create(p->mem_ctx, account);
        if (!NT_STATUS_IS_OK(nt_status)) {
                return nt_status;