use Net::LDAPI; $ldapi = Net::LDAPI->new('/var/run/ldapi'); # alternate way use Net::LDAP; $ldapi = Net::LDAP->new('ldapi://');
All the normal "Net::LDAP" methods can be used with a "Net::LDAPI" object; see Net::LDAP for details.
If SOCKPATH is not given, the environment variable "LDAPI_SOCK" is evaluated, and if that does not exist, the value "/var/run/ldapi" is used.
See ``new'' in Net::LDAP for further details.