]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: remove sub_set_smb_name()/reload_services()
authorRalph Boehme <slow@samba.org>
Fri, 17 Jan 2020 20:55:35 +0000 (21:55 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Thu, 6 Feb 2020 10:17:43 +0000 (10:17 +0000)
This means switching auth backend based on %U include, ie

  passdb backend = tdbsam
  include = smb.conf.%U

and smb.conf.SOMEUSER contains

  passdb backend = smbpasswd

won't work anymore.

We're still calling set_current_user_info() and reload_services() later on
in this function, so everything else still works as before.

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
source3/smbd/sesssetup.c

index 8efed438a52fe3648a93a9d91b5f85a5ab94982e..9550d35f3417cecf168800c88a100363bf2e59b8 100644 (file)
@@ -871,10 +871,6 @@ void reply_sesssetup_and_X(struct smb_request *req)
                fstrcpy(sub_user, "");
        }
 
-       sub_set_smb_name(sub_user);
-
-       reload_services(sconn, conn_snum_used, true);
-
        if (!*state->user) {
                DEBUG(3,("Got anonymous request\n"));