Networking NVIDIA NVOS User Manual for InfiniBand Switches

LDAP Commands

nv show system aaa ldap


nv show system aaa ldap

Shows the LDAP configuration.

Syntax Description

N/A

Default

N/A

History


25.02.2002 


25.02.3000

Updated command output


Example

admin@nvos:~$ nv show system aaa ldap 

                  operational                     applied                       
----------------  ------------------------------  ------------------------------
bind-dn           cn=ldapadm,dc=itzgeek,dc=local  cn=ldapadm,dc=itzgeek,dc=local
base-dn           dc=itzgeek,dc=local             dc=itzgeek,dc=local           
port              389                             389                           
timeout-bind      5                               5                             
timeout-search    5                               5                             
secret            *                               *                             
version           3                               3                             
[server]          10.237.0.86                     10.237.0.86                   
ssl                                                                             
  mode            none                            none                          
  port            636                             636                           
  cert-verify     disabled                        disabled                      
  tls-ciphers     all                             all                           
filter                                                                          
  passwd          (objectClass=posixAccount)      (objectClass=posixAccount)    
  group           (objectClass=posixGroup)        (objectClass=posixGroup)      
  shadow          (objectClass=shadowAccount)     (objectClass=shadowAccount)   
map                                                                             
  passwd                                                                        
    uid           cn                              cn                            
    uidnumber                                                                   
    gidnumber                                                                   
    userpassword                                                                
  group                                                                         
    cn                                                                          
    memberuid     member                          member                        
    gidnumber                                                          

REST API

GET https://<ip>/nvue_v1/system/aaa/ldap

Related Commands

nv set system aaa ldap

Notes

The switch acts as an LDAP client. When you bind it to an LDAP server, users authenticate through the LDAP server instead of locally.

nv show system aaa ldap server


nv show system aaa ldap server

Shows the configured LDAP servers.

Syntax Description

N/A


Default

N/A

History


25.02.2002 


25.02.3000

Updated command syntax


Example

admin@nvos:~$ nv show system aaa ldap server
Hostname     Priority
-----------  --------
10.237.0.86  1        

REST API

GET https://<ip>/nvue_v1/system/aaa/ldap/server

Related Commands

nv set system aaa ldap server

Notes


nv set system aaa ldap server id


nv set system aaa ldap server <server-id>

Configures an LDAP server.

Syntax Description

server-id

LDAP server ID: ipv4, ipv4-unicas, idn-hostname, ipv6

Default

N/A

History


25.02.2002 


25.02.3000

Updated command syntax


Example

admin@nvos:~$ nv set system aaa ldap server 1.2.3.4       

REST API

PATCH https://<ip>/nvue_v1/system/aaa/ldap/server/<server-id>

Related Commands

nv show system aaa ldap server <server-id>
nv show system aaa ldap server
nv show system aaa ldap

Notes


nv set system aaa ldap server priority


nv set system aaa ldap server <server-id> priority <1–8>

Sets the priority of an LDAP server. Lower numbers come first.

Syntax Description

server-id

LDAP server ID: ipv4, ipv4-unicast, idn-hostname, ipv6

priority

Integer: 1–8

Default

1

History


Example

admin@nvos:~$ nv set system aaa ldap server ldapserver2 priority 2

REST API

PATCH https://<ip>/nvue_v1/system/aaa/ldap/server/<server-id>/priority

Related Commands

nv show system aaa ldap server

Notes


nv set system aaa ldap base-dn


nv set system aaa ldap base-dn <base-dn>

Sets the base DN (distinguished name) where LDAP searches start.

Syntax Description

base-dn

The base DN.

Default

ou=users,dc=example,dc=com

History


25.02.2002 


Example

admin@nvos:~$ nv set system aaa ldap base-dn "dc=itzgeek,dc=local"

REST API

PATCH https://<ip>/nvue_v1/system/aaa/ldap/base-dn

Related Commands

nv show system aaa ldap

Notes

The base DN is the point in the directory where the search for users starts.

nv set system aaa ldap bind-dn


nv set system aaa ldap bind-dn <bind-dn>

Sets the bind DN that the switch uses to bind to the LDAP server.

Syntax Description

bind-dn

The bind DN.

Default

None

History


25.02.2002 


Example

admin@nvos:~$ nv set system aaa ldap bind-dn "cn=ldapadm,dc=itzgeek,dc=local"

REST API

PATCH https://<ip>/nvue_v1/system/aaa/ldap/bind-dn

Related Commands

nv show system aaa ldap 

Notes

The bind DN is the user name that the switch uses to search the directory and request authentication.

nv set system aaa ldap port


nv set system aaa ldap port <1–65535>

Sets the LDAP server port.

Syntax Description

port

Integer: 1–65535

Default

389

History


25.02.2002 


Example

admin@nvos:~$ nv set system aaa ldap port 389

REST API

PATCH https://<ip>/nvue_v1/system/aaa/ldap/port

Related Commands

nv show system aaa ldap

Notes


nv set system aaa ldap timeout-bind


nv set system aaa ldap timeout-bind <seconds>

Sets the number of seconds to wait for a bind to complete.

Syntax Description

seconds

1–60

Default

5

History


25.02.2002 


Example

admin@nvos:~$ nv set system aaa ldap timeout-bind 5

REST API

PATCH https://<ip>/nvue_v1/system/aaa/ldap/timeout-bind

Related Commands

nv show system aaa ldap

Notes



nv set system aaa ldap timeout-search <seconds>

Sets the number of seconds to wait for a search to complete.

Syntax Description

seconds

1–60

Default

5

History


25.02.2002 


Example

admin@nvos:~$ nv set system aaa ldap timeout-search 5 

REST API

PATCH https://<ip>/nvue_v1/system/aaa/ldap/timeout-search

Related Commands

nv show system aaa ldap

Notes


nv set system aaa ldap secret


nv set system aaa ldap secret <secret-value>

Sets the password (secret) for the bind DN. You enter it in clear text; the switch stores it encrypted.

Syntax Description

secret-value

Secret string

Default

N/A

History


25.02.2002 


Example

admin@nvos:~$ nv set system aaa ldap secret 123asd 

REST API

PATCH https://<ip>/nvue_v1/system/aaa/ldap/secret

Related Commands

nv show system aaa ldap

Notes


nv set system aaa ldap filter passwd


nv set system aaa ldap filter passwd <filter>

Sets the LDAP search filter for the passwd database. Enclose the filter in quotation marks.

Syntax Description

filter

LDAP search filter (string)

Default

(objectClass=posixAccount)

History


Example

admin@nvos:~$ nv set system aaa ldap filter passwd "(objectClass=user)"

REST API

PATCH https://<ip>/nvue_v1/system/aaa/ldap/filter/passwd

Related Commands

nv show system aaa ldap

Notes


nv set system aaa ldap filter group


nv set system aaa ldap filter group <filter>

Sets the LDAP search filter for the group database. Enclose the filter in quotation marks.

Syntax Description

filter

LDAP search filter (string)

Default

(objectClass=posixGroup)

History


Example

admin@nvos:~$ nv set system aaa ldap filter group "(objectClass=group)"

REST API

PATCH https://<ip>/nvue_v1/system/aaa/ldap/filter/group

Related Commands

nv show system aaa ldap

Notes


nv set system aaa ldap filter shadow


nv set system aaa ldap filter shadow <filter>

Sets the LDAP search filter for the shadow database. Enclose the filter in quotation marks.

Syntax Description

filter

LDAP search filter (string)

Default

(objectClass=shadowAccount)

History


Example

admin@nvos:~$ nv set system aaa ldap filter shadow "(objectClass=user)"

REST API

PATCH https://<ip>/nvue_v1/system/aaa/ldap/filter/shadow

Related Commands

nv show system aaa ldap

Notes


nv set system aaa ldap map group cn


nv set system aaa ldap map group cn <cn-str>

Sets the LDAP attribute that maps to cn in the group database.

Syntax Description

cn-str

LDAP attribute name (string)

Default

None

History


25.02.2002 


Example

admin@nvos:~$ nv set system aaa ldap map group cn sAMAccountName

REST API

PATCH https://<ip>/nvue_v1/system/aaa/ldap/map/group/cn

Related Commands

nv show system aaa ldap map group

Notes


nv set system aaa ldap map group gidnumber


nv set system aaa ldap map group gidnumber <gidnumber>

Sets the LDAP attribute that maps to gidNumber in the group database.

Syntax Description

gidnumber

LDAP attribute name (string)

Default

None

History


25.02.2002 


Example

admin@nvos:~$ nv set system aaa ldap map group gidnumber msSFU30GidNumber

REST API

PATCH https://<ip>/nvue_v1/system/aaa/ldap/map/group/gidnumber

Related Commands

nv show system aaa ldap map group

Notes


nv set system aaa ldap map group memberuid


nv set system aaa ldap map group memberuid <memberuid>

Sets the LDAP attribute that maps to memberUid in the group database.

Syntax Description

memberuid

LDAP attribute name (string)

Default

None

History


25.02.2002 


Example

admin@nvos:~$ nv set system aaa ldap map group memberuid msSFU30MemberUid

REST API

PATCH https://<ip>/nvue_v1/system/aaa/ldap/map/group/memberuid

Related Commands

nv show system aaa ldap map group

Notes


nv set/unset system aaa ldap map passwd gidnumber


nv set system aaa ldap map passwd gidnumber <gidnumber>

Sets the LDAP attribute that maps to gidNumber in the passwd database.

Syntax Description

gidnumber

LDAP attribute name (string)

Default

None

History


25.02.2002 


Example

admin@nvos:~$ nv set system aaa ldap map passwd gidnumber msSFU30GidNumber

REST API

PATCH https://<ip>/nvue_v1/system/aaa/ldap/map/passwd/gidnumber

Related Commands

nv show system aaa ldap map passwd

Notes


nv set system aaa ldap map passwd uid


nv set system aaa ldap map passwd uid <uid>

Sets the LDAP attribute that maps to uid in the passwd database.

Syntax Description

uid

LDAP attribute name (string)

Default

None

History


25.02.2002 


Example

admin@nvos:~$ nv set system aaa ldap map passwd uid sAMAccountName

REST API

PATCH https://<ip>/nvue_v1/system/aaa/ldap/map/passwd/uid

Related Commands

nv show system aaa ldap map passwd

Notes


nv set system aaa ldap map passwd uidnumber


nv set system aaa ldap map passwd uidnumber <uidnumber>

Sets the LDAP attribute that maps to uidNumber in the passwd database.

Syntax Description

uidnumber

LDAP attribute name (string)

Default

None

History


25.02.2002 


Example

admin@nvos:~$ nv set system aaa ldap map passwd uidnumber msSFU30UidNumber

REST API

PATCH https://<ip>/nvue_v1/system/aaa/ldap/map/passwd/uidnumber

Related Commands

nv show system aaa ldap map passwd

Notes


nv set system aaa ldap map passwd userpassword


nv set system aaa ldap map passwd userpassword <userpassword>

Sets the LDAP attribute that maps to userPassword in the passwd database.

Syntax Description

userpassword

LDAP attribute name (string)

Default

None

History


25.02.2002 


Example

admin@nvos:~$ nv set system aaa ldap map passwd userpassword unixUserPassword

REST API

PATCH https://<ip>/nvue_v1/system/aaa/ldap/map/passwd/userpassword

Related Commands

nv show system aaa ldap map passwd

Notes


nv set system aaa ldap version


nv set system aaa ldap version <ldap-version>

Sets the LDAP protocol version.

Syntax Description

ldap-version

2 or 3

Default

3

History


25.02.2002 


Example

admin@nvos:~$ nv set system aaa ldap version 2 

REST API

PATCH https://<ip>/nvue_v1/system/aaa/ldap/version

Related Commands

nv show system aaa ldap

Notes


nv set system aaa ldap ssl mode


nv set system aaa ldap ssl mode <ssl-mode>

Sets the security mode of the connection to the LDAP server.

Syntax Description

ssl-mode

none, ssl, start-tls

Default

none

History


25.02.2002 


Example

admin@nvos:~$ nv set system aaa ldap ssl mode start-tls

REST API

PATCH https://<ip>/nvue_v1/system/aaa/ldap/ssl/mode

Related Commands

nv show system aaa ldap

Notes


nv set system aaa ldap ssl cert-verify


nv set system aaa ldap ssl cert-verify <enabled | disabled>

Sets whether the switch validates the LDAP server certificate.

Syntax Description

enabled

Validates certificate

disabled

Skips certificate validation

Default

enabled

History


25.02.2002 


Example

admin@nvos:~$ nv set system aaa ldap ssl cert-verify enabled

REST API

PATCH https://<ip>/nvue_v1/system/aaa/ldap/ssl/cert-verify

Related Commands

nv show system aaa ldap

Notes


nv set system aaa ldap ssl port


nv set system aaa ldap ssl port <1–65535>

Sets the LDAP port for SSL connections.

Syntax Description

port

Integer: 1–65535

Default

636

History


25.02.2002 


Example

admin@nvos:~$ nv set system aaa ldap ssl port 636

REST API

PATCH https://<ip>/nvue_v1/system/aaa/ldap/ssl/port

Related Commands

nv show system aaa ldap

Notes



nv set system aaa ldap ssl tls-ciphers


nv set system aaa ldap ssl tls-ciphers <TLS1.2 | TLS1.3 | all>

Sets the TLS version for SSL connections to the LDAP server.

Syntax Description

TLS1.2

TLS 1.2 only

TLS1.3

TLS 1.3 only

all

TLS 1.2 and TLS 1.3

Default

all

History


Example

admin@nvos:~$ nv set system aaa ldap ssl tls-ciphers TLS1.3

REST API

PATCH https://<ip>/nvue_v1/system/aaa/ldap/ssl/tls-ciphers

Related Commands

nv show system aaa ldap

Notes


Last updated: