LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
LinkBack Search this Thread
Old 02-07-2012, 05:36 PM   #1
Cyrolancer
Member
 
Registered: Jan 2012
Distribution: Debian
Posts: 42

Rep: Reputation: Disabled
Question Difference between libnss-mysql and libnss-mysql-bg packages


Hello,

While I was working on MySQL authentication using libpam-mysql, I came up with these two packages: libnss-mysql and libnss-mysql-bg

According to the package definitions:

Quote:

root@debian:~# aptitude show libnss-mysql
Package: libnss-mysql
State: installed
Automatically installed: no
Version: 1.0-4+b1
Priority: optional
Section: admin
Maintainer: Guillaume Morin <gemorin@debian.org>
Uncompressed Size: 160 k
Depends: libc6 (>= 2.3.2), libmysqlclient16 (>= 5.1.36), zlib1g (>= 1:1.1.4)
Suggests: mysql-server
Conflicts: libnss-mysql-bg
Description: NSS module for MySQL
This package provides a Name Service Switch module that allows your MySQL
server act as a name service. It currently features full account support
(shadow, passwd and group).
and

Quote:
root@debian:~# aptitude show libnss-mysql-bg
Package: libnss-mysql-bg
State: not installed
Version: 1.5-2
Priority: optional
Section: admin
Maintainer: Emmanuel Lacour <elacour@home-dn.net>
Uncompressed Size: 184 k
Depends: libc6 (>= 2.2.5), libmysqlclient16 (>= 5.1.36), zlib1g (>= 1:1.1.4)
Suggests: mysql-server, libpam-mysql
Conflicts: libnss-mysql
Description: NSS module for using MySQL as a naming service
libnss-mysql-bg provides a Name Service Switch module that allows MySQL to act
as a name service.

Its configuration is very flexible by allowing to set an SQL query per NSS call
(getpwnam, getpwuid, ...). You would use it instead of the other "libnss-mysql"
package for building an NSS over an existing database (used for another purpose
like groupware, ...).

It currently supports storage of passwd, group and shadow informations.
I really wonder what is the exact difference of these packages rather than using the "bg" one on an existing database. What causes an existing database to fail libnss-mysql (not the bg one)? What if I use libnss-mysql-bg for my new user database? What are the disadvantages of not using libnss-mysql?

Thanks

Edit: I am testing libnss-mysql for now and I can configure it for my purposes, using with libpam-mysql. I think the "bg" package has much more to do. I always think that nsswitch and pam works together and I am now thinking there is a real difference between them. Am I right? or wrong?

Last edited by Cyrolancer; 02-07-2012 at 05:46 PM. Reason: typo mistakes
 
Old 02-07-2012, 06:03 PM   #2
Cyrolancer
Member
 
Registered: Jan 2012
Distribution: Debian
Posts: 42

Original Poster
Rep: Reputation: Disabled
Ah! I now see the difference.

In libnss-mysql-bg, you can also configure queries for getpwnam, getpwuid, etc. using the cfg files, not the conf files.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
libnss-ldap: users not being assigned the correct loginshell doqc1 Linux - Software 1 08-11-2011 06:14 AM
Difference in MySQL packages: glib(static) and Dynamically link Swakoo Linux - General 2 08-01-2007 10:36 PM
PHP difference between --without-mysql and extension=mysql.so progressdll Linux - Software 0 10-14-2004 07:44 AM
[mysql] difference between Mysql Max or Normal BlackCell Programming 2 11-06-2003 05:41 PM
libnss-mysql (Store your UNIX user accounts in MySQL) markus1982 Linux - Security 0 01-26-2003 02:24 AM


All times are GMT -5. The time now is 12:29 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration