# HG changeset patch # User Kim Alvefur # Date 1474128286 -7200 # Node ID e099586f9de52b70b7c1ebf6eb89531251162086 # Parent a59671b3dd43d0e6dc904c94e65ebef75ad2b030 mod_storage_ldap: Handle being passed an explicit storage "type" (fixes #654) diff -r a59671b3dd43 -r e099586f9de5 mod_storage_ldap/mod_storage_ldap.lua --- a/mod_storage_ldap/mod_storage_ldap.lua Sun Sep 11 00:09:52 2016 +0200 +++ b/mod_storage_ldap/mod_storage_ldap.lua Sat Sep 17 18:04:46 2016 +0200 @@ -172,7 +172,7 @@ function driver:open(store, typ) local adapter = adapters[store]; - if adapter and not typ then + if adapter and typ == nil or typ == "keyval" then return adapter; end return nil, "unsupported-store";