dsdb encrypted_secrets: Allow "ldb:// and "mdb://" in file path
commit9b7bd1cdc3cf78efc3478333ee8da6fe6ede8a66
authorGary Lockyer <gary@catalyst.net.nz>
Mon, 15 Oct 2018 03:02:40 +0000 (15 16:02 +1300)
committerKarolin Seeger <kseeger@samba.org>
Mon, 5 Nov 2018 11:44:32 +0000 (5 12:44 +0100)
treeef7899645dc9b31df1ed3c84ba11a35d6f7ae247
parent0945b9babd7ac28f238b22a84b430589aab1d424
dsdb encrypted_secrets: Allow "ldb:// and "mdb://" in file path

Correctly handle "ldb://" and "mdb://" schemes in the file path when
determining the path for the encrypted secrets key file.

When creating a new user and specifying the local file path of the
sam.ldb DB, it was possible to create an account that you could not
login with. The path for the key file was incorrectly calculated
for the "ldb://" and "mdb://" schemes, the scheme was not stripped from
the path and the subsequent open of the key file failed.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13653

Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Fri Oct 19 09:34:46 CEST 2018 on sn-devel-144

(cherry picked from commit 7b59cd74f9f75d85b91c6ca517d0243e7f6bd2e1)
selftest/knownfail.d/bug13653 [deleted file]
source4/dsdb/samdb/ldb_modules/encrypted_secrets.c