Configure a federated repository or stand-alone LDAP registry using wsadmin
Use the wsadmin tool to configure a federated repository or stand-alone LDAP registry.
Use the AdminTask command, ldapsearch to help configure a federated repository or stand-alone LDAP registry using the following steps.
Tasks
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.pyThe following parameters are required:
- hostname
- LDAP server host name. This host name is either an IP address or a domain name service (DNS) name.
- baseDN
- 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 LDAP server. When this option is selected, LDAP SSL settings are used, if specified.
- searchFilter
- Specifies a filter to perform the ldapsearch.
The following parameters are optional:
- bindDN
- Distinguished name for the application server, which is used to bind to the directory service.
- bindPassword
- Password for the application server, which is used to bind to the directory service.
- port
- 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
- The Context.REFERRAL = "java.naming.referral" parameter. Valid values are ignore, follow, and throw. ignore is the default.
- searchScope
- Search scope. Valid values are sub, one, and base. sub is the default.
- verbose
- true or false.