Be sure not to use these backends without the attached patches. An example: changing someone's password results in ALL users having that new password(UDPATEs miss the where clause). I'm filing this to spare other people the trouble. I'm (at least till now) only a portage user but I managed to get an ebuild working with the attached two patches, just changed < epatch ${PATCHDIR}/general --- > epatch ${PATCHDIR}/general ${FILESDIR} and added the attached patches to the files dir. They solve the currently reported bugs(see bugzilla.samba.org) with the mysql and pgsql passdb backends.
Created attachment 68781 [details, diff] resolves add user problem(missing fields in INSERTs) and UPDATE problem(missing where clause due to bug in talloc)
Created attachment 68782 [details, diff] resolves pdbedit -L segfaults (setsampwent frees results before ever using them)
Thanks. Which are the upstream bug numbers in bugzilla.samba.org?
(In reply to comment #3) > Thanks. Which are the upstream bug numbers in bugzilla.samba.org? Fixes 2531, 3018, 3111 About samba bug 3019: examples/pdb/mysql/mysql.dump is wrong, at least logon_hours is missing. In the bug's comments two schemas are proposed but since I'm using pgsql(for which there isn't an example at all) I can't check them out.
Postgres: 2531, 3018 and 3111 are already fixed upstream (at least) for samba-3.0.20b. Mysql: the schema in https://bugzilla.samba.org/show_bug.cgi?id=3019 is still pending. Including in 3.0.20b release
3.0.20b in portage. Thanks