Сравнение версий

Ключ

  • Эта строка добавлена.
  • Эта строка удалена.
  • Formatting was changed.

...

Когда использовании LDAP аутентификации, Архива производит аутентификацию в службе каталогов, таких как OpenLDAP с использованием связки логин/пароль.

Во время LDAP авторизации происходит следующее:

  • Архива авторизуется в службе каталогов используя "Service DN" и пароль
  • Архива ищет пользователя, начиная с Bind DN, ищя совпадения имени пользователя с со значением поля Bind Attribute (обычно, UID)
  • Архива

...

Since directory structures tend be to unique across different organizations, care must be taken to ensure that the base DN, service account login DN, bind attribute and email attribute is correct for the target directory. For example, some companies use “mail” as the location where user email addresses are stored, while others use “email”.To determine the structure of a directory, it may be useful to connect to it using a the Linux command line utility ldapsearch or one of the many LDAP browsers available. Once the correct LDAP settings have been entered, it is necessary to create one or more role assignments for purpose of assigning Архива roles to the users residing in the directory.

 

...

  • извлекает DN найденного пользователя
  • Архива использует извлеченные DN для логина в службе каталогов
  • После входа в систему Архива ищет соответствия роли и получает адрес электронной почты пользователя из поля Email Attribute (как правило, email or mail).

Так как структуры каталогов, как правило являются уникальными в разных организациях, необходимо позаботиться чтобы базовый DN, учетная запись службы входа DN, связывают атрибут и атрибут электронной почты являлись правильными для целевого каталога. Например, некоторые компании используют "mail" как место, где хранятся адреса электронной почты пользователей, в то время как другие каталоги используют "email". Чтобы определить структуру каталога, полезно подключить его с помощью Linux утилиты ldapsearch командной строки или один из множества LDAP браузеров. После правильной настройки LDAP, необходимо создать одну или несколько ролей для назначения ролей Архива пользователям находящимся в каталоге. 

ПолеОписаниеПример
LDAP Server AddressFully qualified domain name of LDAP serveropenldap.company.com:389
Base DNThe distinguished name of the location in AD where Архива should start searching for end-user entries.dc=company,dc=com
Service Account LoginDN The distinguished name of an admin user in LDAP
cn=Administrator,cn=Users,
dc=company, dc=com
Service Account PasswordThe service account password 
Mail AttributeThe mail attribute where the user’s email addresses are obtained mailmail
Mail ValueThe regular expression used to extract the user’s email address from the mail attribute(.*)
Bind AttributeThe field in LDAP that contains the username or login name of the user.uid
 
In addition to the above properties, additional advanced LDAP properties can be set directly by editing the MailArchiva server.conf file using a text editor such as Wordpad or Vi. 
 

 

...

Поле

...

ОписаниеServer.conf

...

пример
Alternate Email AddressSecondary location where the user's emails can be found. Архива will retrieve the user's email addresses from both the mail attribute and the alternate email address.

ldap3.alternateemailaddress.attribute=emai

Alternate Email Address ValueThe regular expression pattern used to extract the email address. If you wish to take as is, use (.*). If you email addresses are in the format SMTP:joe@blog.com, then you would specify SMTP:(.*). Note position of brackets.

ldap3.alternateemailaddress.value=(.*)