Configures an LDAP server in a Third-Party VM (TPVM).
By default, an LDAP server is not configured in TPVM.
Privileged EXEC mode
There is not a no form of this command.
When LDAP replication is in use, no more than 2 LDAP servers can be configured. The base Domain Name and root Domain Name must be common to both servers.
Configuring a secure LDAP server without importing certificates results in an error. Use the tpvm config ldap ca-cert command to import certificates.
This example adds an LDAP host.
device# tpvm config ldap add host 10.24.15.200
This example adds a secure LDAP host with the default port.
device# tpvm config ldap add host 10.24.15.200 secure
This example adds an LDAP host with a custom port.
device# tpvm config ldap add host 1.1.1.1 port 234
This example adds a secure LDAP host with a custom port.
device# tpvm config ldap add host 1.1.1.1 port 234 secure
This example configures the base Domain Name.
device# tpvm config ldap add basedn dc=ldap,dc=hc-fusion,dc=in
This example configures the root Domain Name.
device# tpvm config ldap add rootdn cn=admin,dc=ldap,dc=hc-fusion,dc=in
This example configures the root Domain Name password.
device# tpvm config ldap add rootdnpw pass123
This example configures the base Domain Name, the root Domain Name, and the root Domain Name password.
device# tpvm config ldap add basedn dc=ldap,dc=hc-fusion,dc=in rootdn cn=admin,dc=ldap,dc=hc-fusion,dc=in rootdnpw pass123
This example removes the configured LDAP server.
device# tpvm config ldap remove host 10.24.15.200
This example resets the configured port to the default (389 if the port was non-secure, 636 if the port was secure).
device# tpvm config ldap remove host 1.1.1.1 port
This example disables the secure option for the LDAP server. The configured port remains the same and is not reset to the default. Use the tpvm config ldap remove host <ip-addr> port command to reset the port.
device# tpvm config ldap remove host 1.1.1.1 secure
This example removes the base Domain Name.
device# tpvm config ldap remove basedn
This example removes the root Domain Name.
device# tpvm config ldap remove rootdn
This example removes the root Domain Name password.
device# tpvm config ldap remove rootdnpw
This example removes the base Domain Name, the root Domain Name, and the root Domain Name password.
device# tpvm config ldap remove basedn rootdn rootdnpw