ubuntu / aad-auth

Azure AD authentication module for Ubuntu
GNU Lesser General Public License v3.0
143 stars 22 forks source link

Passwddb locking fix (nss_aad: database error: database is locked) #371

Closed johne8 closed 10 months ago

johne8 commented 10 months ago

fix: nss_aad: database error: database is locked

ref: aad_auth[2196]: nss_aad: database error: database is locked

This adresses this, by using Write-ahead logging journaling mode when openening the database in ReadWrite mode, and opening the database immutable when opening it in ReadOnly mode.

github-actions[bot] commented 10 months ago
Hey! johne8 has not signed the Canonical CLA which is required to get this contribution merged on this project. Please head over to https://ubuntu.com/legal/contributors to read more about it.
johne8 commented 10 months ago

Will squash commits, also forgot to add PRAGMA journal_mode=wal; to the passwd.sql file