The FreeBSD Diary

The FreeBSD Diary (TM) Remember
I remember
[ HOME | TOPICS | INDEX | WEB RESOURCES | BOOKS | CONTRIBUTE | SEARCH | FEEDBACK | FAQ | FORUMS ]

 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Newer Topic  |  Older Topic 
 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
 
 Re: Updates
Author: Andrew Reid 
Date:   04-09-03 12:40

Just say the article and loved it , ldap is just to crazy to deal with.

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


 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