Dmitry Bulaev <dmitryhertz@gmail.com>
This package provides an FFI binding to the libldap: the Lightweight Directory Access Protocol (LDAP) client library which is used for access to X.500 directory services.
constructor
[hosthost][ [versionversion][root-dnroot-dn]host:string?version:(or/c23)=3Constructs a new ldap object, initializes libldap and set the version (LDAPv3 is default version).method
(send a-ldap set-option keyvalue)→#t
key:positive?value:positive?Set LDAP related options.If the set-option fails, then an instance of exn:fail:libldap is raised.Authenticate to the directory server.If the bind fails, then an instance of exn:fail:libldap is raised.user-dn:string?Modify an entry.If the modify fails, then an instance of exn:fail:libldap is raised.user-dn:string?Add a new entry.If the add fails, then an instance of exn:fail:libldap is raised.Delete an entry.If the delete fails, then an instance of exn:fail:libldap is raised.Search for the LDAP directory entries and write retrieved data to the internal box storage.If the search fails, then an instance of exn:fail:libldap is raised.Equivalent to search but returs (listoflist? ) (instead of #t) then clears the object’s internal ldap-message storage.If the search* fails, then an instance of exn:fail:libldap is raised.Check whether or not an entry contains the same attribute value as given.If the compare fails, then an instance of exn:fail:libldap is raised.Return retrieved data from the internal box storage. It doesn’t make a request to the LDAP server.method
(send a-ldap count-entries )→(or/czero? positive? )
Return the number of retrieved entries or 0 otherwise.Set a new password.If the set-password fails, then an instance of exn:fail:libldap is raised.Rename the DN of an LDAP entry or move it from one superior to another.If the rename-dn fails, then an instance of exn:fail:libldap is raised.Close the connection to the directory server.If the unbind fails, then an instance of exn:fail:libldap is raised.Clear the object’s internal box storage where the latest returned ldap-message storages itself.
struct