Skip to content

Commit

Permalink
- [OBMFULL-4263] Add documention about LDAP and LOGS configuration fo…
Browse files Browse the repository at this point in the history
…r Opush
  • Loading branch information
thomas-hilaire authored and ddolcimascolo committed Oct 30, 2012
1 parent cf312dc commit fa4e785
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 0 deletions.
30 changes: 30 additions & 0 deletions docs/sysadmin/opush/10-configuration.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# LDAP

## About LDAP in Opush
In Opush, LDAP is only used for some kind of user lookup depending of the client request.

### When is LDAP used by Opush?
It's often used for recipient auto-completion when the user writes an email.

### When is LDAP NOT used by Opush?
LDAP is not used by Opush to populate the client address books. To achieve this, Opush will ask obm-sync to retrieve the user's contacts.

## Configuration file
The Opush LDAP configuration file is located at _/etc/opush/ldap_conf.ini_

### Fields
Every field is required and cannot be empty.

* **search.ldap.filter** : the filter expression to use for the search
* **search.ldap.url** : the address where the ldap server can be reached (we advise to specify the protocol used, _ldap://_ or _ldaps://_)
* **search.ldap.basedn** : the name of the context or object to search for

### Sample

search.ldap.filter=(&(objectClass=inetOrgPerson) (|(mail=%q*)(sn=%q*)(givenName=%q*)))
search.ldap.url=ldap://127.0.0.1
search.ldap.basedn=dc=%d,dc=local

### Log
You can check your LDAP configuration by looking at logs when Opush starts.
You only have to activate the _CONFIGURATION_ logger, for details check the Logs documentation section.
42 changes: 42 additions & 0 deletions docs/sysadmin/opush/30-logs
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Logs
The Opush log file is located at _/var/log/opush/opush.log_

## Format
Opush logs are printed following a specific format, this is an example of a log line.

05:26:36.669 [INFO ] {IMAP.COMMAND} [t10079/cFolderSync/r942/[email protected]]:true

**Details :**

* **05:26:36.669** is the time when the action was done
* **[INFO ]** is the log level
* **{IMAP.COMMAND}** is the name of the logger which has printed the line
* **t10079** is the thread id
* **cFolderSync** is the ActiveSync command name preceed by c. Here the command was "FolderSync"
* **r942** is the request id
* **[email protected]** is the user
* **true** is the logged data

## Logger module
Opush, like all java component of obm, use a logger API to generate information useful to developers to investigate bugs.
This section documents how to configure the right log level for your needs as an end user.

The configuration file to change which logs are printed is located at : _/etc/opush/logback.xml_. Modification are taken into account every minute.
You can check that everything is applied correctly by looking to logs in _/var/log/jetty/*stderrout.log_ .

A sample file looks like :

<included>
<logger name="AUTHENTICATION" level="INFO" />
<logger name="REQUEST.FULL" level="INFO" />
</included>


You can use the following logger modules :

* **AUTHENTICATION** for authentication information
* **REQUEST.FULL** for requests and responses from and to the server, with sensitive data
* **REQUEST.TRIMMED** for requests and responses from and to the server, without sensitive data
* **IMAP.COMMAND** for imap conversations
* **OBM_SYNC** for data exchanged between opush and obm-sync web services
* **CONFIGURATION** for configuration details, printed at application startup

0 comments on commit fa4e785

Please sign in to comment.