How to change the value returned from lp_state_directory() in Python?

Igor Chudov nir at
Fri Jun 25 13:58:36 UTC 2021

Hi all,

I'm working on MR: and I'm 
experiencing issue with tests using registry.tdb file. I use 
reg_open_samba3() function which finds registry.tdb file using 
lp_state_directory(). The tests are failing on CI because no such file 
is present in STATEDIR. Is there any way to change STATEDIR in runtime? 
Preferrably from Python.

With best regards, Igor Chudov
Lead engineer
BaseALT, Saratov engineering department, UTC+4
tel. +7 495 1234-7-99 ext. 549
mobile +7 937 266-51-34

More information about the samba-technical mailing list