libnet-ldap-server-perl | LDAP server-side protocol handling in Perl | Mehr ...
Net::LDAP::Server provides the protocol handling for an LDAP server. You can subclass it and implement the request types you need. Once you accept a connection (e.g. using Net::Daemon), Net::LDAP::Server takes care of decoding client requests and encoding your replies.