![[AIX Solaris HP-UX Linux Windows]](../images/dist.gif)
![[z/OS]](../images/ngzos.gif)
LTPA_LDAPSecurityOn 和 LTPA_LDAPSecurityOff 命令用法
根据使用 LDAP 用户注册表的单点登录,使用本主题中的示例来启用和禁用 LTPA/LDAP 安全性。
启用 LTPA/LDAP 全局安全性:
- 使用 help 来找出您需要提供的参数:使用 Jacl:
LTPA_LDAPSecurityOn help
示例输出:Syntax: LTPA_LDAPSecurityOn server user password port domain
使用 Jython:LTPA_LDAPSecurityOn('help')
示例输出:Syntax: LTPA_LDAPSecurityOn(server, user, password, port, domain)
- 发出调用并指定提供的参数以开启 LTPA/LDAP 安全性:使用 Jacl:
LTPA_LDAPSecurityOn ldpaServer1 user1 password1 660 ibm.com
使用 Jython:LTPA_LDAPSecurityOn('ldpaServer1', 'user1', 'password1', '660', 'ibm.com')
示例输出:PLEASE READ BELOW: Done with LTPA/LDAP security turning on process, now you need to restart all the processes to make it affected. Then you can start using the client with SOAP or RMI connector.
- 如果使用 SOAP 连接器连接至服务器,那么您需要修改 app_server_root/properties 目录中的 soap.client.props 文件。
com.ibm.SOAP.securityEnabled=true com.ibm.SOAP.loginUserid=user1 com.ibm.SOAP.loginPassword=password1
-
如果使用 RMI 连接器来连接至服务器,那么需要修改 app_server_root/properties 目录中的 sas.client.props 文件。
com.ibm.CORBA.loginUserid=user1 com.ibm.CORBA.loginPassword=password1
- 如果使用 SOAP 连接器连接至服务器,那么您需要修改 app_server_root/properties 目录中的 soap.client.props 文件。
禁用 LTPA/LDAP 全局安全性:
- 发出以下调用以关闭 LTPA/LDAP 全局安全性使用 Jacl:
LTPA_LDAPSecurityOff
使用 Jython:LTPA_LDAPSecurityOff()
示例输出:LTPA/LDAP security is off now but you need to restart all the processes to make it affected.