Skip to content

Latest commit

 

History

History

webnis-nss

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

webnis-nss

NSS module for Linux that gets user/group info from an HTTP server.

The NSS module itself does not actually speak HTTP. It connects over a local UNIX socket to the webnis-bind service, and it talks a simple line-based protocol on that socket. The webnis-bind service is responsible for connecting to the HTTP backend server, sending the request , and receiving/decoding the JSON response.

The line based protocol between the module and webnis-bind is like:

>> GETPWNAM mikevs
<< 200 mikevs:x:1000:1000:Mike:/home/mikevs:

>> GETGROUPIDS mikevs
<< 200 mikevs:50,1000

>> GETPWNAM torvalds
>> 404 Not Found

Previous work

This module got a lot of its inspiration from libnss-aad by Outlook