Mostrando postagens com marcador openam. Mostrar todas as postagens
Mostrando postagens com marcador openam. Mostrar todas as postagens

sexta-feira, 24 de maio de 2024

Acessando o ForgeRockAM pelo Administrator Authentication Configuration service

 Para acessar o AM usando o modo administrativo basta usar o seguinte service

https://meu.iam.com.br:8443/am/XUI/?authIndexType=service&authIndexValue=adminconsoleservice

Anteriormente bastava especificar "service=adminconsoleservice" e o openam já resolvia a url, contudo nas últimas versões ele somente está disponível utilizando os dois query parameters authIndexType e authIndexValue

segunda-feira, 24 de outubro de 2016

Códigos de Autenticação do OpenAM


Authentication Codes


IdLog LevelDescriptionDataTriggersActions
AUTHENTICATION-100 INFO Authentication is Successful message User authenticated with valid credentials   
AUTHENTICATION-101 INFO User based authentication is successful message
authentication type
user name 
User authenticated with valid credentials   
AUTHENTICATION-102 INFO Role based authentication is successful message
authentication type
role name 
User belonging to role authenticated with valid credentials    
AUTHENTICATION-103 INFO Service based authentication is successful message
authentication type
service name 
User authenticated with valid credentials to a configured service under realm   
AUTHENTICATION-104 INFO Authentication level based authentication is successful message
authentication type
authentication level value 
User authenticated with valid credentials to one or more authentication modules having authentication level value greater than or equal to specified authentication level   
AUTHENTICATION-105 INFO Module based authentication is successful message
authentication type
module name 
User authenticated with valid credentials to authentication module under realm   
AUTHENTICATION-200 INFO Authentication Failed error message Incorrect/invalid credentials presented
User locked out/not active 
Enter correct/valid credentials to required authentication module 
AUTHENTICATION-201 INFO Authentication Failed error message Invalid credentials entered.  Enter the correct password. 
AUTHENTICATION-202 INFO Authentication Failed error message Named Configuration (Auth Chain) does not exist.  Create and configure a named config for this org. 
AUTHENTICATION-203 INFO Authentication Failed error message No user profile found for this user.  User does not exist in the datastore plugin configured and hence configure the datastore plugin for this realm/org correctly.  
AUTHENTICATION-204 INFO Authentication Failed error message This user is not active.  Activate the user. 
AUTHENTICATION-205 INFO Authentication Failed error message Max number of failure attempts exceeded. User is Locked out.  Contact system administrator. 
AUTHENTICATION-206 INFO Authentication Failed error message User account has expired.  Contact system administrator. 
AUTHENTICATION-207 INFO Authentication Failed error message Login timed out.  Try to login again. 
AUTHENTICATION-208 INFO Authentication Failed error message Authentication module is denied.  Configure this module or use some other module. 
AUTHENTICATION-209 INFO Authentication Failed error message Limit for maximum number of allowed session has been reached.  Logout of a session or increase the limit. 
AUTHENTICATION-210 INFO Authentication Failed error message Org/Realm does not exists.  Use a valid Org/Realm. 
AUTHENTICATION-211 INFO Authentication Failed error message Org/Realm is not active.  Activate the Org/Realm. 
AUTHENTICATION-212 INFO Authentication Failed error message Cannot create a session.  Ensure that session service is configured and maxsession is not reached. 
AUTHENTICATION-213 INFO User based authentication failed error message
authentication type
user name 
No authentication configuration (chain of one or more authentication modules) configured for user
Incorrect/invalid credentials presented
User locked out/not active 
Configure authentication configuration (chain of one or more authentication modules) for user
Enter correct/valid credentials to required authentication module 
AUTHENTICATION-214 INFO Authentication Failed error message
authentication type
user name 
User based Auth. Invalid credentials entered.  Enter the correct password. 
AUTHENTICATION-215 INFO Authentication Failed error message
authentication type
user name 
Named Configuration (Auth Chain) does not exist for this user  Create and configure a named config for this user 
AUTHENTICATION-216 INFO Authentication Failed error message
authentication type
user name 
User based Auth. No user profile found for this user.  User does not exist in the datastore plugin configured and hence configure the datastore plugin for this realm/org correctly.  
AUTHENTICATION-217 INFO Authentication Failed error message
authentication type
user name 
User based Auth. This user is not active.  Activate the user. 
AUTHENTICATION-218 INFO Authentication Failed error message
authentication type
user name 
User based Auth. Max number of failure attempts exceeded. User is Locked out. Contact system administrator. 
AUTHENTICATION-219 INFO Authentication Failed error message
authentication type
user name 
User based Auth. User account has expired.  Contact system administrator. 
AUTHENTICATION-220 INFO Authentication Failed error message
authentication type
user name 
User based Auth. Login timed out.  Try to login again. 
AUTHENTICATION-221 INFO Authentication Failed error message
authentication type
user name 
User based Auth. Authentication module is denied.  Configure this module or use some other module. 
AUTHENTICATION-222 INFO Authentication Failed error message
authentication type
user name 
User based auth. Limit for maximum number of allowed session has been reached. Logout of a session or increase the limit. 
AUTHENTICATION-223 INFO Authentication Failed error message
authentication type
user name 
User based auth. Org/Realm does not exists.  Use a valid Org/Realm. 
AUTHENTICATION-224 INFO Authentication Failed error message
authentication type
user name 
User based auth. Org/Realm is not active.  Activate the Org/Realm. 
AUTHENTICATION-225 INFO Authentication Failed error message
authentication type
user name 
User based auth. Cannot create a session.  Ensure that session service is configured and maxsession is not reached. 
AUTHENTICATION-226 INFO Role based authentication failed error message
authentication type
role name 
No authentication configuration (chain of one or more authentication modules) configured for role
Incorrect/invalid credentials presented
User does not belong to this role
User locked out/not active 
Configure authentication configuration (chain of one or more authentication modules) for role
Enter correct/valid credentials to required authentication module
Assign this role to the authenticating user 
AUTHENTICATION-227 INFO Authentication Failed error message
authentication type
role name 
Role based Auth. Invalid credentials entered.  Enter the correct password. 
AUTHENTICATION-228 INFO Authentication Failed error message
authentication type
role name 
Named Configuration (Auth Chain) does not exist for this role. Create and configure a named config for this role. 
AUTHENTICATION-229 INFO Authentication Failed error message
authentication type
role name 
Role based Auth. No user profile found for this user.  User does not exist in the datastore plugin configured and hence configure the datastore plugin for this realm/org correctly.  
AUTHENTICATION-230 INFO Authentication Failed error message
authentication type
role name 
Role based Auth. This user is not active.  Activate the user. 
AUTHENTICATION-231 INFO Authentication Failed error message
authentication type
role name 
Role based Auth. Max number of failure attempts exceeded. User is Locked out. Contact system administrator. 
AUTHENTICATION-232 INFO Authentication Failed error message
authentication type
role name 
Role based Auth. User account has expired.  Contact system administrator. 
AUTHENTICATION-233 INFO Authentication Failed error message
authentication type
role name 
Role based Auth. Login timed out.  Try to login again. 
AUTHENTICATION-234 INFO Authentication Failed error message
authentication type
role name 
Role based Auth. Authentication module is denied.  Configure this module or use some other module. 
AUTHENTICATION-235 INFO Authentication Failed error message
authentication type
role name 
Role based auth. Limit for maximum number of allowed session has been reached. Logout of a session or increase the limit. 
AUTHENTICATION-236 INFO Authentication Failed error message
authentication type
role name 
Role based auth. Org/Realm does not exists.  Use a valid Org/Realm. 
AUTHENTICATION-237 INFO Authentication Failed error message
authentication type
role name 
Role based auth. Org/Realm is not active.  Activate the Org/Realm. 
AUTHENTICATION-238 INFO Authentication Failed error message
authentication type
role name 
Role based auth. Cannot create a session.  Ensure that session service is configured and maxsession is not reached. 
AUTHENTICATION-239 INFO Authentication Failed error message
authentication type
role name 
Role based auth. User does not belong to this role.  Add the user to this role. 
AUTHENTICATION-240 INFO Service based authentication failed error message
authentication type
service name 
No authentication configuration (chain of one or more authentication modules) configured for service
Incorrect/invalid credentials presented
User locked out/not active 
Configure authentication configuration (chain of one or more authentication modules) for service
Enter correct/valid credentials to required authentication module 
AUTHENTICATION-241 INFO Authentication Failed error message
authentication type
service name 
Service based Auth. Invalid credentials entered.  Enter the correct password. 
AUTHENTICATION-242 INFO Authentication Failed error message
authentication type
service name 
Named Configuration (Auth Chain) does not exist with this service name.  Create and configure a named config. 
AUTHENTICATION-243 INFO Authentication Failed error message
authentication type
service name 
Service based Auth. No user profile found for this user.  User does not exist in the datastore plugin configured and hence configure the datastore plugin for this realm/org correctly.  
AUTHENTICATION-244 INFO Authentication Failed error message
authentication type
service name 
Service based Auth. This user is not active.  Activate the user. 
AUTHENTICATION-245 INFO Authentication Failed error message
authentication type
service name 
Service based Auth. Max number of failure attempts exceeded. User is Locked out. Contact system administrator. 
AUTHENTICATION-246 INFO Authentication Failed error message
authentication type
service name 
Service based Auth. User account has expired.  Contact system administrator. 
AUTHENTICATION-247 INFO Authentication Failed error message
authentication type
service name 
Service based Auth. Login timed out.  Try to login again. 
AUTHENTICATION-248 INFO Authentication Failed error message
authentication type
service name 
Service based Auth. Authentication module is denied.  Configure this module or use some other module. 
AUTHENTICATION-249 INFO Authentication Failed error message
authentication type
service name 
Service based Auth. Service does not exist.  Please use only valid Service. 
AUTHENTICATION-250 INFO Authentication Failed error message
authentication type
service name 
Service based auth. Limit for maximum number of allowed session has been reached. Logout of a session or increase the limit. 
AUTHENTICATION-251 INFO Authentication Failed error message
authentication type
service name 
Service based auth. Org/Realm does not exists.  Use a valid Org/Realm. 
AUTHENTICATION-252 INFO Authentication Failed error message
authentication type
service name 
Service based auth. Org/Realm is not active.  Activate the Org/Realm. 
AUTHENTICATION-253 INFO Authentication Failed error message
authentication type
service name 
Service based auth. Cannot create a session.  Ensure that session service is configured and maxsession is not reached. 
AUTHENTICATION-254 INFO Authentication level based authentication failed error message
authentication type
authentication level value 
There are no authentication module(s) having authentication level value greater than or equal to specified authentication level
Incorrect/invalid credentials presented to one or more authentication modules having authentication level greater than or equal to specified authentication level
User locked out/not active 
Configure one or more authentication modules having authentication level value greater than or equal to required authentication level
Enter correct/valid credentials to one or more authentication modules having authentication level greater than or equal to specified authentication level 
AUTHENTICATION-255 INFO Authentication Failed error message
authentication type
authentication level value 
Level based Auth. Invalid credentials entered.  Enter the correct password. 
AUTHENTICATION-256 INFO Authentication Failed error message
authentication type
authentication level value 
Level based Auth. No Auth Configuration available.  Create an auth configuration. 
AUTHENTICATION-257 INFO Authentication Failed error message
authentication type
authentication level value 
Level based Auth. No user profile found for this user.  User does not exist in the datastore plugin configured and hence configure the datastore plugin for this realm/org correctly.  
AUTHENTICATION-258 INFO Authentication Failed error message
authentication type
authentication level value 
Level based Auth. This user is not active.  Activate the user. 
AUTHENTICATION-259 INFO Authentication Failed error message
authentication type
authentication level value 
Level based Auth. Max number of failure attempts exceeded. User is Locked out. Contact system administrator. 
AUTHENTICATION-260 INFO Authentication Failed error message
authentication type
authentication level value 
Level based Auth. User account has expired.  Contact system administrator. 
AUTHENTICATION-261 INFO Authentication Failed error message
authentication type
authentication level value 
Level based Auth. Login timed out.  Try to login again. 
AUTHENTICATION-262 INFO Authentication Failed error message
authentication type
authentication level value 
Level based Auth. Authentication module is denied.  Configure this module or use some other module. 
AUTHENTICATION-263 INFO Authentication Failed error message
authentication type
authentication level value 
Level based Auth. Invalid Authg Level.  Please specify valid auth level. 
AUTHENTICATION-264 INFO Authentication Failed error message
authentication type
authentication level value 
Level based auth. Limit for maximum number of allowed session has been reached. Logout of a session or increase the limit. 
AUTHENTICATION-265 INFO Authentication Failed error message
authentication type
authentication level value 
Level based auth. Org/Realm does not exists.  Use a valid Org/Realm. 
AUTHENTICATION-266 INFO Authentication Failed error message
authentication type
authentication level value 
Level based auth. Org/Realm is not active.  Activate the Org/Realm. 
AUTHENTICATION-267 INFO Authentication Failed error message
authentication type
authentication level value 
Level based auth. Cannot create a session.  Ensure that session service is configured and maxsession is not reached. 
AUTHENTICATION-268 INFO Module based authentication failed error message
authentication type
module name 
Module is not registered/configured under realm
Incorrect/invalid credentials presented
User locked out/not active 
Register/configure authentication module under realm
Enter correct/valid credentials to authentication module  
AUTHENTICATION-269 INFO Authentication Failed error message
authentication type
module name 
Module based Auth. Invalid credentials entered.  Enter the correct password. 
AUTHENTICATION-270 INFO Authentication Failed error message
authentication type
module name 
Module based Auth. No user profile found for this user.  User does not exist in the datastore plugin configured and hence configure the datastore plugin for this realm/org correctly.  
AUTHENTICATION-271 INFO Authentication Failed error message
authentication type
module name 
Module based Auth. This user is not active.  Activate the user. 
AUTHENTICATION-272 INFO Authentication Failed error message
authentication type
module name 
Module based Auth. Max number of failure attempts exceeded. User is Locked out. Contact system administrator. 
AUTHENTICATION-273 INFO Authentication Failed error message
authentication type
module name 
Module based Auth. User account has expired.  Contact system administrator. 
AUTHENTICATION-274 INFO Authentication Failed error message
authentication type
module name 
Module based Auth. Login timed out.  Try to login again. 
AUTHENTICATION-275 INFO Authentication Failed error message
authentication type
module name 
Module based Auth. Authentication module is denied.  Configure this module or use some other module. 
AUTHENTICATION-276 INFO Authentication Failed error message
authentication type
module name 
Module based auth. Limit for maximum number of allowed session has been reached. Logout of a session or increase the limit. 
AUTHENTICATION-277 INFO Authentication Failed error message
authentication type
module name 
Module based auth. Org/Realm does not exists.  Use a valid Org/Realm. 
AUTHENTICATION-278 INFO Authentication Failed error message
authentication type
module name 
Module based auth. Org/Realm is not active.  Activate the Org/Realm. 
AUTHENTICATION-279 INFO Authentication Failed error message
authentication type
module name 
Module based auth. Cannot create a session.  Ensure that session service is configured and maxsession is not reached. 
AUTHENTICATION-300 INFO User logout is Successful message User logged out   
AUTHENTICATION-301 INFO User logout is successful from user based authentication message
authentication type
user name 
User logged out   
AUTHENTICATION-302 INFO User logout is successful from role based authentication message
authentication type
role name 
User belonging to this role logged out   
AUTHENTICATION-303 INFO User logout is successful from service based authentication message
authentication type
service name 
User logged out of a configured service under realm   
AUTHENTICATION-304 INFO User logout is successful from authentication level based authentication message
authentication type
authentication level value 
User logged out of one or more authentication modules having authentication level value greater than or equal to specified authentication level   
AUTHENTICATION-305 INFO User logout is successful from module based authentication message
authentication type
module name 
User logged out of authentication module under realm   

Fonte: https://docs.oracle.com/cd/E19575-01/820-3886/gdhxz/index.html
            https://backstage.forgerock.com/#!/docs/openam/13.5/reference#log-messages

quinta-feira, 10 de julho de 2014

Codigos de erro do LDAP



Dec value Value Hex value Brief description Detailed description
00LDAP_SUCCESS00SuccessThe request was successful.
01LDAP_OPERATIONS ERROR01Operations errorAn operations error occurred.
02LDAP_PROTOCOL ERROR02Protocol errorA protocol violation was detected.
03LDAP_TIMELIMIT EXCEEDED03Time limit exceededAn LDAP time limit was exceeded.
04LDAP_SIZELIMIT EXCEEDED04Size limit exceededAn LDAP size limit was exceeded.
05LDAP_COMPARE FALSE05Compare falseA compare operation returned false.
06LDAP_COMPARE TRUE06Compare trueA compare operation returned true.
07LDAP STRONG AUTH NOT SUPPORTED07Strong authentication not supportedThe LDAP server does not support strong authentication.
08LDAP STRONG AUTH REQUIRED08Strong authentication requiredStrong authentication is required for the operation.
09LDAP_PARTIAL RESULTS09Partial results and referral receivedPartial results only returned.
10LDAP_REFERRAL0AReferral returnedReferral returned.
11LDAP_ADMIN_LIMIT EXCEEDED0BAdministration limit exceededAdministration limit exceeded.
12LDAP UNAVAILABLE CRITICAL EXTENSION0CCritical extension not supportedCritical extension is not supported.
13LDAP CONFIDENTIALITY REQUIRED0DConfidentiality is requiredConfidentiality is required.
14LDAP_SASLBIND_IN PROGRESS0ESASL bind in progressAn SASL bind is in progress.
16LDAP_NO_SUCH ATTRIBUTE10No such attributeThe attribute type specified does not exist in the entry.
17LDAP_UNDEFINED_TYPE11Undefined attribute typeThe attribute type specified is not valid.
18LDAP INAPPROPRIATE MATCHING12Inappropriate matchingFilter type not supported for the specified attribute.
19LDAP_CONSTRAINT VIOLATION13Constraint violationAn attribute value specified violates some constraint (for example, a postal address has too many lines, or a line that is too long).
20LDAP_TYPE_OR_VALUE EXISTS14Type or value existsAn attribute type or attribute value specified already exists in the entry.
21LDAP_INVALID_SYNTAX15Invalid syntaxAn attribute value that is not valid was specified.
32LDAP_NO_SUCH_OBJECT20No such objectThe specified object does not exist in the directory.
33LDAP_ALIAS_PROBLEM21Alias problemAn alias in the directory points to a nonexistent entry.
34LDAP_INVALID_DN SYNTAX22Invalid DN syntaxA DN that is syntactically not valid was specified.
35LDAP_IS_LEAF23Object is a leafThe object specified is a leaf.
36LDAP_ALIAS_DEREF PROBLEM24Alias dereferencing problemA problem was encountered when dereferencing an alias.
48LDAP_INAPPROPRIATE AUTH30Inappropriate authenticationInappropriate authentication was specified (for example, LDAP_AUTH_SIMPLE was specified and the entry does not have a userPassword attribute).
49LDAP_INVALID CREDENTIALS31Invalid credentialsInvalid credentials were presented (for example, the wrong password).
50LDAP_INSUFFICIENT ACCESS32Insufficient accessThe user has insufficient access to perform the operation.
51LDAP_BUSY33DSA is busyThe DSA is busy.
52LDAP_UNAVAILABLE34DSA is unavailableThe DSA is unavailable.
53LDAP UNWILLING TO PERFORM35DSA is unwilling to performThe DSA is unwilling to perform the operation.
54LDAP_LOOP_DETECT36Loop detectedA loop was detected.
64LDAP_NAMING VIOLATION40Naming violationA naming violation occurred.
65LDAP OBJECT CLASS VIOLATION41Object class violationAn object class violation occurred (for example, a "required" attribute was missing from the entry).
66LDAP NOT ALLOWED ON NONLEAF42Operation not allowed on nonleafThe operation is not allowed on a nonleaf object.
67LDAP_NOT_ALLOWED ON RDN43Operation not allowed on RDNThe operation is not allowed on an RDN.
68LDAP_ALREADY EXISTS44Already existsThe entry already exists.
69LDAP NO OBJECT CLASS MODS45Cannot modify object classObject class modifications are not allowed.
70LDAP_RESULTS_TOO LARGE46Results too largeResults too large.
71LDAP AFFECTS MULTIPLE DSAS47Affects multiple DSAsAffects multiple DSAs.
80LDAP_OTHER50Unknown errorAn unknown error occurred.
81LDAP_SERVER_DOWN51Can't contact LDAP serverThe LDAP library cannot contact the LDAP server.
82LDAP_LOCAL ERROR52Local errorSome local error occurred. This is usually a failed memory allocation.
83LDAP_ENCODING ERROR53Encoding errorAn error was encountered encoding parameters to send to the LDAP server.
84LDAP_DECODING ERROR54Decoding errorAn error was encountered decoding a result from the LDAP server.
85LDAP_TIMEOUT55Timed outA time limit was exceeded while waiting for a result.
86LDAP_AUTH UNKNOWN56Unknown authentication methodThe authentication method specified on a bind operation is not known.
87LDAP_FILTER ERROR57Bad search filterAn invalid filter was supplied to ldap_search (for example, unbalanced parentheses).
88LDAP_USER CANCELLED58User cancelled operationThe user cancelled the operation.
89LDAP_PARAM ERROR59Bad parameter to an LDAP routineAn LDAP routine was called with a bad parameter (for example, a NULL ld pointer, etc.).
90LDAP_NO_MEMORY5AOut of memoryA memory allocation (for example malloc) call failed in an LDAP library routine.
91LDAP_CONNECT ERROR5BConnection errorConnection error.
92LDAP_NOT SUPPORTED5CNot supportedNot supported.
93LDAP_CONTROL NOT FOUND5DControl not foundControl not found.
94LDAP_NO_RESULTS RETURNED5ENo results returnedNo results returned.
95LDAP MORE RESULTS TO RETURN5FMore results to returnMore results to return.
96LDAP_URL_ERR NOTLDAP60URL doesn't begin with ldap://The URL does not begin with ldap://.
97LDAP_URL_ERR_NODN61URL has no DN (required)The URL does not have a DN (required).
98LDAP_URL_ERR BADSCOPE62URL scope string is invalidThe URL scope string is not valid.
99LDAP_URL_ERR_MEM63Can't allocate memory spaceCannot allocate memory space.
100LDAP_CLIENT_LOOP64Client loopClient loop.
101LDAP REFERRAL LIMIT EXCEEDED65Referral limit exceededReferral limit exceeded.
112LDAP SSL ALREADY INITIALIZED70ldap_ssl_client_init successfully called previously in this processThe ldap_ssl_client_init was successfully called previously in this process.
113LDAP_SSL_INITIALIZE FAILED71Initialization call failedSSL Initialization call failed.
Note:
GSKit must be installed and the GSKit libraries must be present.
114LDAP SSL CLIENT INIT NOT CALLED72Must call ldap_ssl_client_init before attempting to use SSL connectionMust call ldap_ssl_client_init before attempting to use SSL connection.
115LDAP_SSL_PARAM ERROR73Invalid SSL parameter previously specifiedAn SSL parameter that was not valid was previously specified.
116LDAP_SSL_HANDSHAKE FAILED74Failed to connect to SSL serverFailed to connect to SSL server.
117LDAP SSL_GET_CIPHER FAILED75Not usedDeprecated.
118LDAP_SSL_NOT AVAILABLE76SSL library cannot be locatedEnsure that GSKit has been installed.
LDAP SSL KEYRING NOT FOUND77
LDAP SSL PASSWORD NOT SPECIFIED78
128LDAP_NO_EXPLICIT OWNER80No explicit owner foundNo explicit owner was found.
129LDAP_NO_LOCK81Could not obtain lockClient library was not able to lock a required resource.
In addition, the following DNS-related error codes are defined in the ldap.h file:
Table 24. DNS-related return codes
Dec valueValueHex valueDetailed description
133LDAP_DNS_NO_SERVERS85No LDAP servers found
134LDAP_DNS_TRUNCATED86Warning: truncated DNS results
135LDAP_DNS_INVALID_DATA87Invalid DNS Data
136LDAP_DNS_RESOLVE_ERROR88Can't resolve system domain or nameserver
137LDAP_DNS_CONF_FILE_ERROR89DNS Configuration file error
The following UTF8-related error codes are defined in the ldap.h file:
Table 25. UTF8-related return codes
Dec valueValueHex valueDetailed description
160LDAP_XLATE_E2BIGA0Output buffer overflow
161LDAP_XLATE_EINVALA1Input buffer truncated
162LDAP_XLATE_EILSEQA2Unusable input character
163LDAP_XLATE_NO_ENTRYA3No codeset point to map to
LDAP_REG_FILE_NOT_FOUNDB0
LDAP_REG_CANNOT_OPENB1
LDAP_REG_ENTRY_NOT_FOUNDB2
LDAP_CONF_FILE_NOT_OPENEDC0
LDAP_PLUGIN_NOT_LOADEDC1
LDAP_PLUGIN_FUNCTION_
NOT_RESOLVED
C2
LDAP_PLUGIN_NOT_INITIALIZEDC3
LDAP_PLUGIN_COULD_NOT_BINDC4
LDAP_SASL_GSS_NO_SEC_CONTEXTD0



terça-feira, 5 de novembro de 2013

Ajustes do openam para deploy no jboss


Caso queira instalar o OpenAm no Jboss AS 5.1, existem duas coisas que necessitam de atenção especial:


  • Jboss As 5.x usa o Tomcat 6.0.16 e isso afeta a manipulação de cookies.
  • Se você instalar o OpenAm no JBss 5.x usando metodo tradicional, "somente o arquivo" e apagar o arquivo openam.war do diretório de deploy, então o Jboss irá fazer o redeploy das aplicações em diferentes diretórios temporários toda vez que reiniciar o servidor e será necessário refazer todas as configurações
  • Problemas com o CLassloader
Para resolver o primeiro problema, modifique o run.con (ou run.conf.bat no Windows) passando para oa JVM a opção -Dcom.iplanet.am.cookie.encode=true
Exemplo:
...
# Specify options to pass to the Java VM.
#
if [ "x$JAVA_OPTS" = "x" ]; then
   JAVA_OPTS="-Xms128m -Xmx1024m -XX:MaxPermSize=256m
-Dorg.jboss.resolver.warning=true
-Dsun.rmi.dgc.client.gcInterval=3600000
-Dsun.rmi.dgc.server.gcInterval=3600000 -Dcom.iplanet.am.cookie.encode=true"
fi
...
Para o segundo problema, caso você use o metodo tradicional de deploy "arquivo compactado" será necessário fazer o seguinte:
  1. Expanda o opwnam.war em um diretório temporário (use o comando jar com as opções xvf), Exemplo, no Linux: 
    Assuma que você tem o openam.war dentro do diretorio /home/teste/deployable-war 
    # cd /home/teste
    # mkdir exploded-openam
    # cd exploded-openam
    # jar  xvf /home/teste/deployable-war/openam.war
    # .... exploding files here ....
  2. Então edite o seguinte arquivo: WEB-INF/classes/bootstrap.properties Decomentando a linha "configuration.dir=" e modificando este ponto com o diretório onde você planeja guardas as suasconfigurações, por exemplo, vamos assumir que nos queremos colocar as configurações no diretório /home/teste/openamJboss.
    configuration.dir=/home/teste/openamJboss
  3. Salve o arquivo e gere o novo arquivo war:
    # jar cvf ../openam.war *
  4. Use este arquivo openam.war para  instalar no diretorio do seu JBoss 5.x
Uma segunda opção para resolver o segundo problema, você pode extrair o openam.war em um diretório de deploy depois configurar o OpenAM
  1. Va para o diretório de deploy da instancia do JBoss e crie um novo diretório chamado openam.war:
    # mkdir /shared/jboss-5.1.0.GA/server/default/deploy/openam.war
  2. Extraia o opemam.war dentro do diretorio
    # cd /shared/jboss-5.1.0.GA/server/default/deploy/openam.war
    # jar xvf /home/victor/deployable-war/openam.war
  3. Configure o OpenAM normalmente, veja o Deploy OpenAM para mais informações de como configurar o OpenAM
UCL Classloader issue
Crie o arquivo WEB-INF/jboss-web.xml  caso a aplição entre em conflitos com os demais jars durante o inicialização do servidor
<!DOCTYPE jboss-web PUBLIC "-//JBoss//DTD Web Application 5.0//EN" "http://www.jboss.org/j2ee/dtd/jboss-web_5_0.dtd">
<jboss-web>
  <class-loading java2ClassLoadingCompliance='true'>
    <loader-repository>
    jbia.loader:loader=opensso
    <loader-repository-config>java2ParentDelegaton=true</loader-repository-config>
    </loader-repository>
  </class-loading>
</jboss-web>

Fonte: https://wikis.forgerock.org/confluence/display/openam/Considerations+when+deploying+on+JBoss+AS+5.1