Skip to main content

ldap command

Use this command to display and configure the LDAP protocol configuration parameters.

Syntax:
ldap [-options]
Table 1. ldap options
OptionDescriptionValues
-aomAuthentication only mode for Active Directory Usersenabled, disabled
-aUser authentication method
  • loc: local only
  • ldap: LDAP only
  • locld: local first then LDAP
  • ldloc: LDAP first then local
-bBinding method
  • anon: anonymous
  • client: bind with ClientDN and password
  • login: bind with Login Credential
-cClient distinguished nameString of up to 127 characters for client_dn
-dSearch domainString of up to 63 characters for search_domain
-fnForest nameFor active directory environments. String of up to 127 characters.
-fGroup filterString of up to 127 characters for group_filter
-gGroup search attributeString of up to 63 characters for group_search_attr
-lLogin permission attributeString of up to 63 characters for string
-pClient passwordString of up to 15 characters for client_pw
-pcConfirm client passwordString of up to 15 characters for confirm_pw

Command usage is: ldap -p client_pw -pc confirm_pw

This option is required when you change the client password. It compares the confirm_pw argument with the client_pw argument. The command will fail if the arguments do not match.

-rRoot entry distinguished name (DN)String of up to 127 characters for root_dn
-s1ipServer 1 host name/IP addressString up to 127 characters or an IP address for host name/ip_addr
-s2ipServer 2 host name/IP addressString up to 127 characters or an IP address for host name/ip_addr
-s3ipServer 3 host name/IP addressString up to 127 characters or an IP address for host name/ip_addr
-s4ipServer 4 host name/IP addressString up to 127 characters or an IP address for host name/ip_addr
-s1pnServer 1 port numberA numeric port number up to 5 digits for port_number
-s2pnServer 2 port numberA numeric port number up to 5 digits for port_number
-s3pnServer 3 port numberA numeric port number up to 5 digits for port_number
-s4pnServer 4 port numberA numeric port number up to 5 digits for port_number
-uUser's login name search attributeString of up to 63 characters for search_attrib
-vGet LDAP server address through DNSoff, on
-hDisplays the command usage and options 
Example:
system> ldap
-aom enable
-a locld
-b client
-c cn=admin,dc=lenovo,dc=com
-d
-fn
-f example.com
-g cn
-l XCC3RBSPermissions
-r
-s1ip 10.241.99.94
-s2ip
-s3ip
-s4ip
-s1pn 389
-s2pn 389
-s3pn 389
-s4pn 389
-u uid
-v off
system>