This seems to work fine for me. Thanks to everyone for your help.
default_pass_scheme = CRYPT password_query = \ SELECT user_name, domain_name, password \ FROM users WHERE user_name = '%n' AND domain_name = '%d'But - slightly off topic. Suppose I wanted to add some kind of date/time field to MySQL so that I can records the date and time of the last login. Is there an easy way to do that?