Skip to content

Ldap server using /etc/passwd and /etc/group as backend

Notifications You must be signed in to change notification settings

gerhardqux/flatldap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flatldap
========

This does not work yet, this code only sets the basic idea.


OS setup
--------
client# apt-get install libnss-ldap libpam-ldap

server# apt-get install libnet-ldap-perl libnet-ldap-server-perl perl-doc

gerhtest$ cat /etc/libnss-ldap.conf 
host 127.0.0.1
base dc=qrux,dc=nl
ldap_version 3
rootbinddn cn=manager,dc=qrux,dc=nl
port 1389

gerhtest# cat /etc/libnss-ldap.secret 
123root

gerhtest# chown root.root $_
gerhtest# chmod 700 $_

gerhtest# cat /etc/nsswitch.conf 
# /etc/nsswitch.conf
#
# Example configuration of GNU Name Service Switch functionality.
# If you have the `glibc-doc-reference' and `info' packages installed, try:
# `info libc "Name Service Switch"' for information about this file.

passwd:         files ldap
group:          files ldap
shadow:         files

hosts:          files dns
networks:       files

protocols:      db files
services:       db files
ethers:         db files
rpc:            db files

netgroup:       nis


Starting the server
-------------------
gerhtest$ ./run


Testing
-------

gerhtest# getent passwd

gerhtest# id bestaatwel
uid=5001(bestaatwel) gid=5001 groups=5001

gerhtest# getent group

About

Ldap server using /etc/passwd and /etc/group as backend

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published