Bug 7838 - pdbedit -L not listing all valid samba users if some POSIX accounts are missing
pdbedit -L not listing all valid samba users if some POSIX accounts are missing
Status: NEW
Product: Samba 3.5
Classification: Unclassified
Component: User & Group Accounts
Other All
: P3 normal
: ---
Assigned To: Samba Bugzilla Account
Samba QA Contact
Depends on:
  Show dependency treegraph
Reported: 2010-12-03 07:55 UTC by Björn Jacke
Modified: 2010-12-08 02:06 UTC (History)
1 user (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Björn Jacke 2010-12-03 07:55:14 UTC
I saw this happen with passdb backend = smbpasswd:

the listing of users via pdbedit -L stops immediately if there are users in smbpasswd that no longer exist as POSIX users in /etc/passwd. That is very confusing and misleading. I don't have such a setup here right now, therefore no logs so far.
Comment 1 Holger Hetterich 2010-12-07 14:47:07 UTC
It stops with a message that the smbpasswd database is corrupt, which is true as it is no longer in sync with the actual users on the system.

What exact behaviour do you expect?
Comment 2 Björn Jacke 2010-12-07 17:05:56 UTC
it should not print some accounts, then issue an error and exit. If you fix that single reported error, you get the next one and so on. That might be a fun game for pdbedit but not for the user if the number of mismatches is >> :-)

better approach will be that pdbedit issues a warning on each mismatch and eventually finally returns with an error.
Comment 3 Holger Hetterich 2010-12-08 02:06:08 UTC
Björn, the attachment 1 [details] in bso#7543 is doing exactly this, however there we are talking about smbpasswd migration and I am currently unsure if those accounts should be migrated or not.