CAPITULO III: Dinámicas de control territorial y desterritorialización
3.2 REASENTAMIENTO: DESTERRITORIALIZACIÓN LEGAL
3.2.3 Nuevas dinámicas de conflictividad social
ADMIN_USER_NAME = "weblogic" ADMIN_PASSWORD = "welcome1" ADMIN_SERVER_PORT = "7001" LDAP_HOST = “myhost.us.oracle.com" LDAP_PORT = "20440" LDAP_PRINCIPAL = "cn=orcladmin" LDAP_CREDENTIAL = "welcome1" LDAP_BASE_DN = "dc=us,dc=oracle,dc=com" LDAP_USER_BASE_DN = "cn=Users,dc=us,dc=oracle,dc=com" LDAP_GROUP_BASE_DN = "cn=Groups,dc=us,dc=oracle,dc=com“ connect(ADMIN_USER_NAME, ADMIN_PASSWORD,'localhost:'+ADMIN_SERVER_PORT) print "*** Creating User IdentityStore“
createUserIdentityStore(name="UserIdentityStore4",principal=LDAP_PRINCI AL, credential=LDAP_CREDENTIAL, type="OID",
userAttr="uid",ldapProvider="OID", userSearchBase=LDAP_USER_BASE_DN, groupSearchBase=LDAP_GROUP_BASE_DN, ldapUrl="ldap://%s:%s" % (LDAP_HOST,
LDAP_PORT), isPrimary="false")
#type="LDAP", roleSecAdmin="Administrators", roleSysMonitor="Monitors", roleSysManager="Deployers", roleAppAdmin="Operators",
userIDProvider="<userIDProvider>", domainHome="<domainHome>" print "*** Display User IdentityStore"
print displayUserIdentityStore(name="UserIdentityStore4") disconnect()
WLST Commands for OAM 11g
For certain OAM administrative tasks, the WebLogic Scripting Tool (WLST) provides custom commands that can be used as an alternative to the OAM administration console.
Custom WLST commands for OAM can be used for setting and managing OAM system configuration only by OAM administrators.
The WebLogic Scripting Tool shares the same foundation layer with the OAM administration console. WLST for OAM is available within IDM_HOME\common\wlst.
The oamWlstCmd.py file refers to JAR files available in: <Oracle_IDM>/oam/server/lib/jmx
<Oracle_IDM>/oam/server/lib/wlst
Most WLST commands for OAM operate in both online and offline modes.
For more on WLST, refer to Oracle Fusion Middleware WebLogic Scripting Tool Command
Reference 11g Release 1 (10.3.3)
On the slide, you see some WLST commands which are substitutes for some of the
operations you perform in the labs by using the OAM admin console or WLS console or EM console.
Copyright © 2010, Oracle and/or its affiliates. All rights reserved.
WLST Commands for OAM 11g
•
WLST commands for OAM are available within
oamWlstCmd.py
under <IDM_HOME>\common\wlst
•
Some key WLST commands:
createOAMAuthenticator (delete and update as well)
displayWebgate11gAgent (edit and delete as well)
displayOssoAgent (edit and delete as well)
displayOAMMetrics
displayWebgateAgent (edit and delete as well)
listOAMAuthnProviderParams
displayUserIdentityStore (edit, create, delete as well)
createOAMIdentityAsserter (update as well)
displayOamServer (create, edit, delete as well)
changeLoggerSetting
WLST Commands for OAM 11g (continued)
• createOAMAuthenticator
Online command that creates an Oracle Access Manager authenticator in the current domain. Description:
Creates an Oracle Access Manager authenticator with a given name in the current domain. Before executing this command, make sure that no Oracle Access Manager authenticator is already configured in the default security domain. In the event of an error, the command returns a WLSTException.
• displayOssoAgent
Online and offline command that displays OSSO agent configuration details. Description:
Displays OSSO agent registration details, which also appear in the OAM administration console.
The scope of this command is an instance only. The scope is not an argument. • displayWebgateAgent
Online and offline command that displays a 10g WebGate registration. Description:
Displays all 10g WebGate registration details, which can also be seen in the OAM administration console.
The scope of this command is an instance only. The scope is not an argument. • displayUserIdentityStore
Online and offline command that displays user identity store registration information. Description:
Displays information of the user identity store registered with Oracle Access Manager. The scope of this command is an instance only. The scope is not an argument.
• displayWebgate11gAgent
Online and offline command that enables you to display an 11g WebGate agent registration. Description:
Displays an 11g WebGate agent registration.
The scope of this command is an instance only. The scope is not an argument. • displayOAMMetrics
Online and offline command that enables the display of metrics of OAM servers. Description:
Enables the display of metrics of OAM servers.
The scope of this command is an instance only. The scope is not an argument. • listOAMAuthnProviderParams
Online command that lists the values of the parameters in effect in a domain authenticator or identity asserter.
WLST Commands for OAM 11g (continued)
Description:
Lists the values of the parameters set for a given Oracle Access Manager authenticator or identity asserter. In the event of an error, the command returns a WLSTException.
• createOAMIdentityAsserter
Online command that creates an Oracle Access Manager identity asserter in the current domain.
Description:
Creates an identity asserter with a given name in the current domain. Before executing this command, make sure that no Oracle Access Manager identity asserter is already configured in the current domain. In the event of an error, the command returns a WLSTException.
• displayOamServer
Online and offline command that displays OAM server registration details. Description:
Displays OAM server registration details, including the host, port, registration name, OAM proxy port and server ID, and, optionally, the OAM proxy shared secret.
The scope of this command is an instance only. The scope is not an argument. • changeLoggerSetting
Online and offline command that changes the logger level. Description:
Changes the level of one or more, or all, loggers.
The scope of this command is an instance only. The scope is not an argument. • displayTopology
Online and offline command that displays the information about all the OAM servers in a deployment.
Description:
Copyright © 2010, Oracle and/or its affiliates. All rights reserved.
Road Map
• Working with Access Tester
• WLS troubleshooting tips and agent and
server monitoring
• Top problem areas
• Working with WLST
Copyright © 2010, Oracle and/or its affiliates. All rights reserved.