s4:dsdb/samdb: pass an existing 'struct ldb_context' to crack_auto_name_to_nt4_name()
authorStefan Metzmacher <metze@samba.org>
Mon, 19 Jun 2017 06:39:19 +0000 (08:39 +0200)
committerStefan Metzmacher <metze@samba.org>
Mon, 26 Jun 2017 06:47:15 +0000 (08:47 +0200)
commitebb63e1cb3a40b3af691c56dd0ae2c6cfdccf9ec
treea7b8680d02382c958c16613f94ee13afbaf18712
parentf0541309d77e51e1169d6a534b5e11bd3a24d4cd
s4:dsdb/samdb: pass an existing 'struct ldb_context' to crack_auto_name_to_nt4_name()

There's no point in creating a temporary ldb_context as
the only callers already have a valid struct ldb_context for
the local sam.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/auth/ntlm/auth_simple.c
source4/dsdb/samdb/cracknames.c