tinyldap is a small (11k uncompressed static binary on x86 Linux) and fast (1000 equal queries for one of 3000 records in less than one second on a 1.3 GHz Athlon, with over 3000 separate TCP connections using tcpserver) read-only LDAP server. No tricks like file descriptor passing, thread pools, or caching are used (aside from the buffer cache from the operating system).