Árvore de páginas

Versões comparadas

Chave

  • Esta linha foi adicionada.
  • Esta linha foi removida.
  • A formatação mudou.
HTML

<div id="main-content" class="wiki-content group">
	<p>
		Valid configurations for authentication in AD using the LDAP
		Protocol&#160;<span style="font-size: 10.0pt; line-height: 13.0pt;">(</span><span
			style="color: rgb(68, 68, 68);">Lightweight Directory Access
			Protocol)</span><span style="font-size: 10.0pt; line-height: 13.0pt;">.</span>
	</p>
	<p>&#160;</p>
	<p>
		To this end, you need to change the file: <em>&lt;INSTALL_FLUIG>\jboss\configuration\standalone.xml</em>.
	</p>
	<p>&#160;</p>
	<p>Look for the following string:</p>
	<div class="code panel pdl" style="border-width: 1px;">
		<div class="codeContent panelContent pdl">
			<pre class="theme: Eclipse; brush: javascript; gutter: false"
				style="font-size: 12px;">&lt;security-domain name="TOTVSTech" cache-type="default">
 &lt;authentication>
 &lt;login-module code="com.totvs.foundation.auth.FoundationDatabaseServerLoginModule" flag="required" module="com.totvs.foundation.auth">
 &lt;module-option name="hashAlgorithm" value="MD5"/>
 &lt;module-option name="hashEncoding" value="HEX"/>
 &lt;module-option name="principalClass" value="com.totvs.technology.foundation.common.TOTVSTechPrincipal"/>
 &lt;/login-module>
 &lt;/authentication>
&lt;/security-domain></pre>
		</div>
	</div>
	<p>&#160;</p>
	<p>If you use the direct validation form, without the need for
		credential, replace it for the following string:</p>
	<div class="code panel pdl" style="border-width: 1px;">
		<div class="codeContent panelContent pdl">
			<pre class="theme: Eclipse; brush: javascript; gutter: false"
				style="font-size: 12px;">&lt;security-domain name="TOTVSTech" cache-type="default">
 &lt;authentication>
  &lt;login-module code="com.totvs.foundation.auth.FoundationLdapLoginModule" flag="required" module="com.totvs.foundation.auth">
    &lt;module-option name="java.naming.factory.initial" value="com.sun.jndi.ldap.LdapCtxFactory"/>
    &lt;module-option name="java.naming.provider.url" value="ldap://&lt;SERVIDOR>:&lt;PORTA>/"/>
    &lt;module-option name="java.naming.security.authentication" value="simple"/>
    &lt;module-option name="java.naming.security.protocol" value=""/>
    &lt;module-option name="uidAttributeID" value="sAMAccountName"/>
    &lt;module-option name="principalDNSuffix" value="@&lt;DOMINIO>"/>
    &lt;module-option name="rolesCtxDN" value="DC=local"/>
    &lt;module-option name="loginCombinedWithDatabase" value="false"/>
    &lt;module-option name="hashAlgorithm" value="MD5"/>
    &lt;module-option name="hashEncoding" value="HEX"/>
   &lt;/login-module>
 &lt;/authentication>
&lt;/security-domain></pre>
		</div>
	</div>
	<p>
		<em style="line-height: 1.4285715;"><em><strong>Tip:</strong>&#160;If
				you choose to use a "combined" login, i.e. login/network AND
				database password, change the value of the&#160;<em><em>loginCombinedWithDatabase
						property to "true".</em></em></em></em>
	</p>
	<p>
		<em><em><br /></em></em>
	</p>
	<p>
		<em><em><br /></em></em>
	</p>
	<p>If you use LDAP with the need for credential, replace it with
		the following string:</p>
	<div class="code panel pdl" style="border-width: 1px;">
		<div class="codeContent panelContent pdl">
			<pre class="theme: Eclipse; brush: javascript; gutter: false"
				style="font-size: 12px;">&lt;security-domain name="TOTVSTech" cache-type="default">
&lt;authentication>
&lt;login-module code="com.totvs.foundation.auth.FoundationExtLdapLoginModule" flag="required" module="com.totvs.foundation.auth">
&lt;module-option name="java.naming.factory.initial" value="com.sun.jndi.ldap.LdapCtxFactory"/>
        &lt;module-option name="java.naming.provider.url" value="ldap://&lt;SERVIDOR>:&lt;PORTA>/"/> 
        &lt;module-option name="java.naming.security.authentication" value="simple"/> 
        &lt;module-option name="java.naming.security.protocol" value=""/> 
        &lt;module-option name="java.naming.security.principal" value="&lt;USUARIO>@&lt;DOMINIO>"/> 
        &lt;module-option name="java.naming.security.credentials" value="&lt;SENHA>"/> 
        &lt;module-option name="uidAttributeID" value="sAMAccountName"/> 
        &lt;module-option name="baseFilter" value="(sAMAccountName={0})"/> 
        &lt;module-option name="loginCombinedWithDatabase" value="false"/> 
        &lt;module-option name="baseCtxDN" value="DC=&lt;ESTRUTURA>"/> 
        &lt;module-option name="rolesCtxDN" value="DC=&lt;ESTRUTURA>"/> 
        &lt;module-option name="hashAlgorithm" value="MD5"/> 
        &lt;module-option name="hashEncoding" value="HEX"/> 
        &lt;/login-module> 
   &lt;/authentication> 
&lt;/security-domain></pre>
		</div>
	</div>
	<p>
		<strong>Tip:</strong><span>&#160;If you choose to use a
			"combined" login, i.e. login/network AND database password, change
			the value of the&#160;</span><em><em>loginCombinedWithDatabase
				property to "true".</em></em>
	</p>
	<p>
		<em><em><br /></em></em>
	</p>
	<p>
		<em><em><br /></em></em>
	</p>
</div>