Author: John
Date: 23-04-02 22:00
There are a few things to note:
INSERT INTO users VALUES (
'0', '0', 'account', 'root', 'root',
'NOW()', ENCRYPT('secretpw'),
'', '', '', 'n', '', 'n', '', '0', ''
);
Has too many parameters.
INSERT INTO users VALUES (
'0', '0', 'account', 'root', 'root',
'NOW()', ENCRYPT('secretpw')
);
is a little more like it based on the CREATE TABLE statement.
Also, PAM was not an option for samba prior to 2.0.5, so make sure you're using a newer version by looking at
#pkg_info | grep samba
(assuming you used the port to install it). I was actually using 2.0.6, but I don't believe the port had the --with-pam configure option set until after that point. A reinstallation of a newer version of the port (2.2.3a) fixed up my problems.
It's also not available for FreeBSD prior to 3.something so make sure you're using a late-model 3.X or better.
When editing the pam.conf file, I believe you need to make sure that the spaces between attributes are in fact spaces and not tabs. I seem to remember reading that tabs aren't appreciated in there.
Finally, I personally would set up the user account "samba" with a blank password. The reason: it's in clear text in the /etc/pam.conf file. If you leave it out, someone not familiar with pam_mysql.so might not deduce that the mysql password is empty.
Hope this helps!
|
|