The file examples/pdb/mysql/mysql.dump in the source distribution
needs some improvements. First of all, it's missing the definition
for the logon_hours column. This must have been recently added to
the SQL backend. As well, the uid column is defined as the primary
key, even though this column (as well as the gid column) is never read
or written by the SQL backend. The columns that are used for selects
and updates by keys are not indexed. I've remedied all of these failings
in the file samba.sql, which can be obtained by anonymous FTP at
ftp.cc.umanitoba.ca in the source directory.
Created attachment 1524 [details]
Improved Mysql table definition
See bug 3375. If someone wants to maintain these modules outside
the Samba source tree, that is fine. But the source has been removed
from the upcoming 3.0.22 release.