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
The following parameters are required:
- 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.
The following parameters are optional:
- 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.