The FreeBSD Diary

The FreeBSD Diary (TM)

Providing practical examples since 1998

If you buy from Amazon USA, please support us by using this link.
[ HOME | TOPICS | INDEX | WEB RESOURCES | BOOKS | CONTRIBUTE | SEARCH | FEEDBACK | FAQ | FORUMS ]

 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Previous Message  |  Next Message 
 Updates
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!

 Reply To This Message  |  Forum List  |  Flat View   Newer Topic  |  Older Topic 

 Topics Author  Date
 Updates   new
John 23-04-02 22:00 
 Re: Updates   new
Andrew Reid 04-09-03 12:40 


 Forum List  |  Need a Login? Register Here 
 User Login
 User Name:
 Password:
 Remember my login:
   
 Forgot Your Password?
Enter your email address or user name below and a new password will be sent to the email address associated with your profile.
How to get the most out of the forum

phorum.org