sonic-utilities icon indicating copy to clipboard operation
sonic-utilities copied to clipboard

Add LDAP feature CLI support

Open davidpil2002 opened this issue 1 year ago • 3 comments

What I did

Add LDAP CLI

How I did it

created the CLI by using YANG model generator, the YANG model can be found in the LDAP HLD: https://github.com/sonic-net/SONiC/pull/1487

How to verify it

Manually: you can use configurations command like"config ldap global " or "show ldap global" (more examples in the HLD.) Auto: 1.There are unitest of each policy including good & bad flow in this commit, that should pass.

Previous command output (if the output of a command-line utility has changed)

No prev commands - New feature

New command output (if the output of a command-line utility has changed)

sudo show ldap global 
BIND DN                       BIND PASSWORD      BIND TIMEOUT  LDAP VERSION    BASE DN            LDAP PORT      TIMEOUT
----------------------------  ---------------  --------------  --------------  -----------------  -----------  ---------
cn=ldapadm,dc=test1,dc=test2  password            2              3             dc=test1,dc=test2  389                  2

davidpil2002 avatar Oct 23 '23 13:10 davidpil2002

@lguohan who should review and provide feedback?

liat-grozovik avatar Dec 14 '23 09:12 liat-grozovik

@madhupalu , please approve if everything looks good

fastiuk avatar Jan 29 '24 13:01 fastiuk

@madhupalu Do you have more comments?

qiluo-msft avatar Mar 23 '24 23:03 qiluo-msft

need to update command reference guide

rebase and update Command-Reference.md file

davidpil2002 avatar May 09 '24 06:05 davidpil2002