Configuring a federated repository or stand-alone LDAP registry using wsadmin

You can use the wsadmin tool to configure a federated repository or stand-alone LDAP registry.

About this task

You can use the AdminTask command, ldapsearch to help configure a federated repository or stand-alone LDAP registry by using the following steps.

Procedure

Sample Jython command
--testquery.py ---------------
queryResult = AdminTask.ldapSearch ('-hostname
testldap.austin.ibm.com -port 389 -baseDN
DC=austinldap,DC=local
-bindDN CN=testuser,CN=Users,DC=austinldap,DC=local
-bindPassword Password123!@#$%^&*() -sslEnabled false
-searchFilter (&(sAMAccountName=wasadmin)(objectClass=person))
-searchLimit 50 -referral ignore')
print queryResult
--------------------------------

To run this Jython command the following wsadmin command can be used

wsadmin -conntype NONE -lang jython -f showBluePage.py
Required parameters
hostname
Specifies the LDAP server host name. This host name is either an IP address or a domain name service (DNS) name.
baseDN
Specifies the base distinguished name of the directory service, which indicates the starting point for LDAP searches in the directory service. For example, ou=Rochester, o=IBM, c=us.
sslEnabled
Specifies whether secure socket communications is enabled with the Lightweight Directory Access Protocol (LDAP) server. When this option is selected, LDAP Secure Sockets Layer (SSL) settings are used, if specified.
searchFilter
Specifies a filter to perform the ldapsearch.
Optional parameters
bindDN
Specifies the distinguished name for the application server, which is used to bind to the directory service.
bindPassword
Specifies the password for the application server, which is used to bind to the directory service.
port
Specifies the LDAP server port number. The default is 389.
sslAlias
Specifies which SSL configuration to use for LDAP.
searchLimit
Specifies how many search results to display. The default is 20. The maximum is 100.
referral
Specifies the Context.REFERRAL = "java.naming.referral" parameter. Valid values are ignore, follow, and throw. ignore is the default.
searchScope
Specifies the search scope. Valid values are sub, one, and base. sub is the default.
verbose
true or false.

주제 유형을 표시하는 아이콘 태스크 주제



시간소인 아이콘 마지막 업데이트 날짜: July 9, 2016 6:14
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=cord&product=was-nd-mp&topic=txml_ldapsearch_config
파일 이름:txml_ldapsearch_config.html