6.3. Access to the LDAP server

EBox::LDAP provides a common entry point to the LDAP server. You should be familiar with the Net::LDAP perl module, as queries are based on its syntax. EBox::LDAP is responsible of making the queries.

EBox::LDAP provides 4 basic methods:

Each time one of the above methods is invoked, a check is performed on the result of the query. In case of an error, and EBox::Exceptions::Internal exception will be thrown. In order to make debugging easier, a lot of information is included in the exception and logged: the attributes included in the query, the name of the method that caused the error and the message reported by Net::LDAP.