SourceForge Logo

libnss-mysql


Store your UNIX user accounts in MySQL

** Download Current Version: 1.5 (Sep 03 2005) **

News
News
ChangeLog

About
Purpose
Features
FAQ

Download
Current Release
CVS Snapshot
Debian Packages

Documentation
Installation
Configuration
Upgrading
Debugging

Sample Configs

Community
Support Forums



  • The design of the underlying database is very much up to you. The only thing you need to guarantee is the order of the returned data. You can construct as complex an SQL query as you like. I have an installation where the getpwnam query is 367 characters long!
  • The database connection is persistent across a process. Running an 'ls -l' of a directory with 5000 files owned by MySQL users will open only one MySQL connection.
  • The library is thread-safe. It is not, however, multi-threaded. The library locks at the outset, and unlocks on exit. This will provide for poor performance in an environment where nss routines (ie getpwnam) are frequently called from within a multi-threaded application. Using 'nscd' should help alleviate this problem. I will be making the library much more thread-friendly in the future. My current goal is more towards functionality and stability.

Links
SF Menu
MySQL Manual
GNU NSS
Solaris nsswitch

Praise
I love the fact your code allows me to specify the SQL to pass to mysql. That really made integration into my complex system easy. I can not tell you how much I appreciate this library, it is so flexible and a huge time saver for administrators. - Eric L. Blevins
 

< This site Copyright 2002-2004 Ben Goodwin >