Skip to content

Commit

Permalink
ldap: fix naming in YANG file
Browse files Browse the repository at this point in the history
  • Loading branch information
davidpil2002 committed Feb 29, 2024
1 parent 93c9c5a commit 34f3a8c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 26 deletions.
2 changes: 1 addition & 1 deletion files/build_templates/sonic_debian_extension.j2
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ sudo dpkg --root=$FILESYSTEM_ROOT -i $debs_path/bash-tacplus_*.deb || \
# Install audisp-tacplus
sudo dpkg --root=$FILESYSTEM_ROOT -i $debs_path/audisp-tacplus_*.deb || \
sudo LANG=C DEBIAN_FRONTEND=noninteractive chroot $FILESYSTEM_ROOT apt-get -y install -f
# Disable tacplus and LDAP y default
# Disable tacplus and LDAP by default
## NOTE: this syntax of pam-auth-update is meant to be used when the package gets removed, not for specifying
## some local configuration of a PAM module. Currently, there's no clean way of noninteractively specifying
## whether some PAM module needs to be enabled or disabled on a system (there are hacky ways, though).
Expand Down
30 changes: 5 additions & 25 deletions src/sonic-yang-models/yang-models/sonic-system-ldap.yang
Original file line number Diff line number Diff line change
@@ -1,32 +1,12 @@
module sonic-system-ldap {
yang-version 1.1;
namespace "http://github.com/Azure/sonic-system-ldap";
prefix ssys;
prefix ssys-ldap;

import ietf-inet-types {
prefix inet;
}

import sonic-port {
prefix port;
}

import sonic-portchannel {
prefix lag;
}

import sonic-loopback-interface {
prefix loopback;
}

import sonic-interface {
prefix interface;
}

import sonic-mgmt_port {
prefix mgmt-port;
}

description "LDAP YANG Module for SONiC OS";

revision 2023-10-01 {
Expand All @@ -38,9 +18,9 @@ module sonic-system-ldap {
container LDAP_SERVER {
list LDAP_SERVER_LIST {
max-elements 8;
key "ipaddress";
key "hostname";

leaf ipaddress {
leaf hostname {
type inet:host;
description
"LDAP server's Domain name or IP address (IPv4 or IPv6)";
Expand Down Expand Up @@ -75,7 +55,7 @@ module sonic-system-ldap {
type string {
length "1..65";
pattern "[^ #,]*" {
error-message 'TACACS shared secret (Valid chars are ASCII printable except SPACE, "#", and ",")';
error-message 'LDAP shared secret (Valid chars are ASCII printable except SPACE, "#", and ",")';
}
}
description "Shared secret used for encrypting the communication";
Expand Down Expand Up @@ -111,7 +91,7 @@ module sonic-system-ldap {
leaf port {
type inet:port-number;
default 389;
description "TCP port to communite with LDAP server";
description "TCP port to communicate with LDAP server";
}

leaf timeout {
Expand Down

0 comments on commit 34f3a8c

Please sign in to comment.