Run the configure script.

A typical invocation is:

./configure

Some configure switches which change NSS MySQL runtime behaviour :

--enable-shadow :
This allows you to simulate the libshadow behaviour. For more details,
see the SHADOW file. Note that if you disable shadow support, shadow.c
will be compiled but shadow related functions will NOT be included in the
library.
The default is --enable-shadow.

--enable-group :
It adds the group support. You'll need a group table which has the
groups' details and a table that joins (as in SQL JOIN) users and groups.
Note that if you disable group support, group.c will be compiled but group
related functions will NOT be included in the library.
The default is --enable-group.

--enable-debug :
This sends debug messages to the auth log. Use it only for debugging purposes,
since compiling the software with that option will slow it down significantly.
The default is --disable-debug

Once you've done that, type 'make'.
Hopefully it builds... If not, drop a message to the users mailing list
(nss-mysql-users@lists.mail.freesoftware.org).

Then run 'make install'.
Edit the configuration files /etc/nss-mysql.conf and /etc/nss-mysql-root.conf
(if you have NOT disabled shadow support).

If you don't understand the configuration files options, take a look at the
sample.sql file which contains a sample table structure.

To remove the library, you can also 'make uninstall'.  (This will NOT remove
your configuration files)

Edit your /etc/nsswitch.conf. For example;

passwd:		files mysql
shadow:		files mysql (only if you have not disabled the shadow support)
group:		files mysql (only if you have not disabled the group support)

For this release that is definitely the recommended order! IE, the libraries
will search the normal /etc/passwd and /etc/shadow files for users, and if
they're not found there then they'll ask MySQL.

Save the file and try it, good luck :-)

For questions, feedback, patches use our Savannah page :
http://savannah.gnu.org/projects/nss-mysql/

