mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Report the NSS database directory if it cannot be opened
If the system lacks DBM support and an older database is opened then an exception is raised. Include the directory in the exception so it is clearer which database cannot be opened. https://pagure.io/freeipa/issue/8675 Signed-off-by: Rob Crittenden <rcritten@redhat.com> Reviewed-By: Christian Heimes <cheimes@redhat.com> Reviewed-By: Stanislav Levin <slev@altlinux.org>
This commit is contained in:
committed by
Florence Blanc-Renaud
parent
2c499e06f1
commit
693ac70964
@@ -265,7 +265,8 @@ class NSSDatabase:
|
||||
|
||||
if dbtype == "dbm" and not nss_supports_dbm():
|
||||
raise ValueError(
|
||||
"NSS is built without support of the legacy database(DBM)"
|
||||
f"NSS is built without support of the legacy database(DBM) "
|
||||
f"directory '{nssdir}'",
|
||||
)
|
||||
|
||||
if nssdir is None:
|
||||
|
||||
Reference in New Issue
Block a user