Bug: 9918 When creating the netlogon connection always set the credential misc
authorMatthieu Patou <mat@matws.net>
Tue, 9 Jul 2013 09:20:38 +0000 (02:20 -0700)
committerMatthieu Patou <mat@matws.net>
Mon, 21 Oct 2013 08:47:41 +0000 (01:47 -0700)
commit57d306d22e1027149c20029118f3c39e70e8a8a5
tree8d11c77c0e298588245c7524cd4ab3721b3283ca
parentb11deb22a3d28e26a7488bc9b25af6c008d4d120
Bug: 9918 When creating the netlogon connection always set the credential

Even if the connection don't support schannel we must set the credential
otherwise when we will try to use them it will be segfault.
Connection from winbindd process connected to the non primary domain
(ie. that is to say all the domain but the one where samba joined) do
not use schannel and are therefore affected by this.

Any user on the same box where winbindd is running can crash the server
by running wbinfo --krb5auth=SUBDOMAIN\foo, only SUBDOMAIN has to be
valid any non existing users (ie. foo) will cause winbindd to crash. I
have no idea what you could gain from the crash at least it's a local
DOS at worst you can maybe gain root access.

Found-by: Ravindra Channabasapa <ravindra@juniper.net>
Signed-off-by: Matthieu Patou <mat@matws.net>
source3/winbindd/winbindd_cm.c