When trying out the pdb_pgsql passdb backend we found some problems which made
it unusable. There was a case where there were no SID's in the database. The
code checks for the absense of these, but afterwards it still sets the
(uninitialized variables) in the session. This causes 'pdbedit -L' to crash
since the sid to text translator probably walks out of the buffer.
Anyways, it was fixed and later verified agains the pdb_mysql which does
exactly the same as our initial fix.
This patch also fixes a small bug in a debug print, which uses '%llu' to print
the number of rows, which in reality is a 'int' in the postgresql interface. So
it is fixed to '%d', no crashes here, just more sane debugging.
(In reply to comment #0)
The patch is in the URL ;)
Applied to both 3.0 and trunk. Thanks for the patch!
sorry for the same, cleaning up the database to prevent unecessary reopens of bugs.