|
LibreOffice Module extensions (master) 1
|
Class encapsulating all LDAP functionality. More...
#include <ldapaccess.hxx>
Public Member Functions | |
| LdapConnection () | |
| Default constructor. More... | |
| ~LdapConnection () | |
| Destructor, releases the connection. More... | |
| void | connectSimple (const LdapDefinition &aDefinition) |
| Make connection to LDAP server. More... | |
| void | getUserProfile (const OUString &aUser, LdapData *data) |
| Gets LdapUserProfile from LDAP repository for specified user. More... | |
| OUString | findUserDn (const OUString &aUser) |
| finds DN of user More... | |
Private Member Functions | |
| void | initConnection () |
| void | disconnect () |
| bool | isValid () const |
| Indicates whether the connection is in a valid state. More... | |
| void | connectSimple () |
Private Attributes | |
| LDAP * | mConnection |
| LDAP connection object. More... | |
| LdapDefinition | mLdapDefinition |
Friends | |
| struct | LdapMessageHolder |
Class encapsulating all LDAP functionality.
Definition at line 75 of file ldapaccess.hxx.
|
inline |
Default constructor.
Definition at line 81 of file ldapaccess.hxx.
| extensions::config::ldap::LdapConnection::~LdapConnection | ( | ) |
Destructor, releases the connection.
Definition at line 48 of file ldapaccess.cxx.
References disconnect(), and isValid().
|
private |
| ldap::LdapConnectionException | |
| ldap::LdapGenericException |
Definition at line 107 of file ldapaccess.cxx.
References extensions::config::ldap::checkLdapReturnCode(), initConnection(), isValid(), extensions::config::ldap::LdapDefinition::mAnonCredentials, extensions::config::ldap::LdapDefinition::mAnonUser, mConnection, mLdapDefinition, and OUStringToOString().
Referenced by connectSimple(), findUserDn(), and getUserProfile().
| void extensions::config::ldap::LdapConnection::connectSimple | ( | const LdapDefinition & | aDefinition | ) |
Make connection to LDAP server.
| ldap::LdapConnectionException | |
| ldap::LdapGenericException |
Definition at line 98 of file ldapaccess.cxx.
References connectSimple(), disconnect(), isValid(), and mLdapDefinition.
Referenced by extensions::config::ldap::LdapUserProfileBe::LdapUserProfileBe().
|
private |
Definition at line 54 of file ldapaccess.cxx.
References mConnection.
Referenced by connectSimple(), and ~LdapConnection().
| OUString extensions::config::ldap::LdapConnection::findUserDn | ( | const OUString & | aUser | ) |
finds DN of user
| lang::IllegalArgumentException | |
| ldap::LdapConnectionException | |
| ldap::LdapGenericException |
Definition at line 227 of file ldapaccess.cxx.
References extensions::config::ldap::checkLdapReturnCode(), connectSimple(), isValid(), extensions::config::ldap::LdapDefinition::mBaseDN, mConnection, mLdapDefinition, extensions::config::ldap::LdapDefinition::mUserObjectClass, extensions::config::ldap::LdapDefinition::mUserUniqueAttr, OUStringToOString(), and result.
Referenced by getUserProfile().
| void extensions::config::ldap::LdapConnection::getUserProfile | ( | const OUString & | aUser, |
| LdapData * | data | ||
| ) |
Gets LdapUserProfile from LDAP repository for specified user.
| aUser | name of logged on user |
| aUserProfileMap | Map containing LDAP->00o mapping |
| aUserProfile | struct for holding OOo values |
| css::ldap::LdapGenericException | if an LDAP error occurs. |
Definition at line 172 of file ldapaccess.cxx.
References extensions::config::ldap::checkLdapReturnCode(), connectSimple(), findUserDn(), isValid(), mConnection, OUStringToOString(), result, and values.
Referenced by extensions::config::ldap::LdapUserProfileBe::LdapUserProfileBe().
|
private |
| ldap::LdapConnectionException |
Definition at line 148 of file ldapaccess.cxx.
References mConnection, mLdapDefinition, extensions::config::ldap::LdapDefinition::mPort, extensions::config::ldap::LdapDefinition::mServer, and OUStringToOString().
Referenced by connectSimple().
|
inlineprivate |
Indicates whether the connection is in a valid state.
Definition at line 121 of file ldapaccess.hxx.
References mConnection.
Referenced by connectSimple(), findUserDn(), getUserProfile(), and ~LdapConnection().
|
friend |
Definition at line 77 of file ldapaccess.hxx.
|
private |
LDAP connection object.
Definition at line 128 of file ldapaccess.hxx.
Referenced by connectSimple(), disconnect(), findUserDn(), getUserProfile(), initConnection(), and isValid().
|
private |
Definition at line 129 of file ldapaccess.hxx.
Referenced by connectSimple(), findUserDn(), and initConnection().