Skip to content

Small NSS module to debug various services

License

Notifications You must be signed in to change notification settings

soulbreak/nss_debug

 
 

Repository files navigation

nss_debug

Description

I wrote this small module for the Name Service Switch to get a better idea of how/and when various functions were being called. This was in prepartion for a more complex NSS module I intended to write.

Installation

make
sudo make install

Configuration

Once the module is installed on your system you just have to modify the /etc/nsswitch.conf for the appropriate service you want debug printing on. The service name is debug and currently supports the passwd, group, shadow, and hosts databases.

e.g. /etc/nsswitch.conf

passwd:         debug compat
group:          debug compat
shadow:         debug compat

hosts:          debug files dns

About

Small NSS module to debug various services

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 100.0%