Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Removed translated content for 'zh'
Sv translation
languageen
Info

This document describes updating to BellaDati 2.7.4.1 or higher when you are using LDAP authentication with BellaDati 2.7.4 or lower.

In 2.7.4.1 the beans-common.xml configuration file has been removed. LDAP-related configuration has been moved to the application.properties. As a result, you need to move the parameter values to application.properties as part of the update.

XML Tag / Attribute

Properties Attribute

key

application.login.domains (separate multiple domains by comma)

url

adauth.<domain>.spec.url

bindDN

adauth.<domain>.spec.bindDN

bindPassword

adauth.<domain>.spec.bindPassword

loginAttribute

adauth.<domain>.spec.loginAttribute

Additionally, you can specify these properties:

  • adauth.createNotExistingAccounts
  • adauth.domainId

Please refer to the BellaDati WAR Configuration Overview for more information.

Example

Consider following beans-common.xml:

Code Block
xml
xml
<bean id="userAuthenticityVerifier" class="cz.trgiman.belladati.auth.ADUserAuthenticityVerifier" autowire="byType">
        <property name="createNotExistingAccounts" value="true"/>
        <property name="workspaceId" value="1"/>
        <property name="domains">
            <map>
                <entry>
                    <key><value>domain1</value></key>
                    <bean class="cz.trgiman.belladati.auth.DomainSpecification">
                        <property name="url" value="LDAP://host1:389/dc=xyz"/>
                        <property name="bindDN" value="bindUser"/>
                        <property name="bindPassword" value="bindUserPassword"/>
                        <property name="loginAttribute" value="sAMAccountName"/>
                    </bean>
                </entry>
            </map>
        </property>
      </bean>

The appropriate application.properties configuration should look like:

Code Block
application.login.domains=domain1
adauth.createNotExistingAccounts=true
adauth.domainId=1

adauth.domain1.spec.url=LDAP://host1:389/dc=xyz
adauth.domain1.spec.bindDN=bindUser
adauth.domain1.spec.bindPassword=bindUserPassword
adauth.domain1.spec.loginAttribute=sAMAccountName
Sv translation
languageja
Info

このドキュメントでは、BellaDati2.7.4または以下LDAP認証を使用している場合、BellaDati 2.7.4.1または以上へのアップデートについて説明します。

2.7.4.1でbeans-common.xml設定ファイルが削除されます。 LDAP関連の設定は、application.propertiesに移動されます。その結果、あなたは更新の一部としてapplication.propertiesにパラメータ値を移動する必要があります。

XMLタグ/属性

属性

key

application.login.domains (separate multiple domains by comma)

url

adauth.<domain>.spec.url

bindDN

adauth.<domain>.spec.bindDN

bindPassword

adauth.<domain>.spec.bindPassword

loginAttribute

adauth.<domain>.spec.loginAttribute

また、以下の属性を指定できます。

  • adauth.createNotExistingAccounts
  • adauth.domainId

詳細については、BellaDati WAR設定の概要をご参照してください

 

例えば 

以下のbeans-common.xml考慮してください。

Code Block
xml
xml
<bean id="userAuthenticityVerifier" class="cz.trgiman.belladati.auth.ADUserAuthenticityVerifier" autowire="byType">
        <property name="createNotExistingAccounts" value="true"/>
        <property name="workspaceId" value="1"/>
        <property name="domains">
            <map>
                <entry>
                    <key><value>domain1</value></key>
                    <bean class="cz.trgiman.belladati.auth.DomainSpecification">
                        <property name="url" value="LDAP://host1:389/dc=xyz"/>
                        <property name="bindDN" value="bindUser"/>
                        <property name="bindPassword" value="bindUserPassword"/>
                        <property name="loginAttribute" value="sAMAccountName"/>
                    </bean>
                </entry>
            </map>
        </property>
      </bean>

適切なapplication.properties構成は次のようになります:

Code Block
application.login.domains=domain1
adauth.createNotExistingAccounts=true
adauth.domainId=1

adauth.domain1.spec.url=LDAP://host1:389/dc=xyz
adauth.domain1.spec.bindDN=bindUser
adauth.domain1.spec.bindPassword=bindUserPassword
adauth.domain1.spec.loginAttribute=sAMAccountName