# Changelog
Description of maven profile changes in conf/build/pom.xml file.

# 17.09.2019 (Active Directory - AD)
### Added
- **ldap.server.url** - url of AD,
- **ldap.admin.user.name** - AD admin username,
- **ldap.admin.user.password** - AD admin password,
- **ldap.user.dn.pattern** - user DN pattern,
- **ldap.user.search.base** - user search base,
- **ldap.user.search.filter** - user search filter,
- **ldap.group.search.base** - group search base (for user roles),
- **ldap.group.role.attribute** - group role attribute (for user roles),
- **ldap.group.search.filter** - group search filter (for user roles),
- **ldap.role.prefix** - role prefix,
- **ldap.distribution.groups.search.base** - group search base (for groups),
- **ldap.distribution.groups.search.filter** - group search filter (for groups),
- **ldap.distribution.groups.role.attribute** - group role attribute (for groups),
- **ldap.group.prefix** - group prefix,
- **ldap.attribute.full.name** - attribute name that indicates user full name,
- **ldap.attribute.initials** - attribute name that indicates user initials,
- **ldap.attribute.number** - attribute name that indicates user number,
- **ldap.attribute.sign** - attribute name that indicates user sign,
- **ldap.attribute.title** - attribute name that indicates user title.

Example:

```
<ldap.server.url>ldap://localhost:389</ldap.server.url>
<ldap.admin.user.name>cn=admin,dc=planetexpress,dc=com</ldap.admin.user.name>
<ldap.admin.user.password>GoodNewsEveryone</ldap.admin.user.password>

<ldap.user.dn.pattern>cn={0},ou=people,dc=planetexpress,dc=com</ldap.user.dn.pattern>
<ldap.user.search.base></ldap.user.search.base>
<ldap.user.search.filter>(cn={0})</ldap.user.search.filter>
<ldap.group.search.base>ou=roles,dc=planetexpress,dc=com</ldap.group.search.base>
<ldap.group.role.attribute>cn</ldap.group.role.attribute>
<ldap.group.search.filter>member={0}</ldap.group.search.filter>
<ldap.role.prefix>@role_</ldap.role.prefix>
<ldap.distribution.groups.search.base>ou=groups,dc=planetexpress,dc=com</ldap.distribution.groups.search.base>
<ldap.distribution.groups.search.filter>member=cn={0},ou=people,dc=planetexpress,dc=com</ldap.distribution.groups.search.filter>
<ldap.distribution.groups.role.attribute>cn</ldap.distribution.groups.role.attribute>
<ldap.group.prefix>@group_</ldap.group.prefix>
<ldap.attribute.full.name>givenName</ldap.attribute.full.name>
<ldap.attribute.initials>initials</ldap.attribute.initials>
<ldap.attribute.number>roomNumber</ldap.attribute.number>
<ldap.attribute.sign>employeeNumber</ldap.attribute.sign>
<ldap.attribute.title>title</ldap.attribute.title>
```

### Changed
 - **openam.adapter.login.url** - this settings indicates url of login form. To enable AD change this settings from openam login url to AD login url (form for username and password). For example change from
```
<openam.adapter.login.url>http://${openam.url}:8080/mock-openam/UI/Login</openam.adapter.login.url>
```
to
```
<openam.adapter.login.url>http://localhost:8080/backoffice-fe</openam.adapter.login.url>
```

### Other
- Note that if you want to use AD, you have to change dependency in pom.xml of sp-bo-ui-backend project from:
```
<dependency>
	<groupId>eu.ohim.sp.integration.adapter.authentication</groupId>
	<artifactId>OpenAMAdapter</artifactId>
	<version>${pm.fsp.tmbo.current.version}</version>
</dependency>
```
to
```
<dependency>
	<groupId>eu.ohim.sp.integration.adapter.authentication</groupId>
	<artifactId>LDAPAdapter</artifactId>
	<version>${pm.fsp.tmbo.current.version}</version>
</dependency>
```


## 29.08.2019 (getPublication service)
### Added
- **enable.getpublication.service.adapter** - indicates if getPublication service is enabled.
- **wsdlLocation.getpublication.service.adapter** - full path to getPublication service wsdl. - **esb.mule.getpublication.host** - url of Mule where getPublication service will be published. - **esb.mule.getpublication.port** - port of Mule where getPublication service will be published.
- **fsp.ws.getpublication.path** - url path where getPublication service will be published on Mule.

Example:
```
<enable.getpublication.service.adapter>true</enable.getpublication.service.adapter>
<wsdlLocation.getpublication.service.adapter>http://${esb.mule.getpublication.host}:${esb.mule.getpublication.port}/${fsp.ws.context.root}${fsp.ws.getpublication.path}${fsp.ws.wsdl.services.path}?wsdl</wsdlLocation.getpublication.service.adapter>
<esb.mule.getpublication.host>localhost</esb.mule.getpublication.host>
<esb.mule.getpublication.port>8397</esb.mule.getpublication.port>
<fsp.ws.getpublication.path>/getpublication</fsp.ws.getpublication.path>
```


## 11.07.2019 (Elasticsearch port)
### Added
 - **elasticsearch.port** - port of elasticsearch. Example:
 ```
<elasticsearch.port>9300</elasticsearch.port>
 ```
