summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorraviteja-b <raviteja28031990@gmail.com>2019-04-02 11:09:04 -0500
committerRatan Gupta <ratagupt@linux.vnet.ibm.com>2019-04-05 04:55:28 +0000
commitc3f56c50ffffe1076531eb4aad7c0a574a44841f (patch)
tree407cb15c96913a225264ccb856c4c61bb2a64e5c
parentcf832ae22e98028f1a630447e10564320ba67a77 (diff)
downloadphosphor-user-manager-c3f56c50ffffe1076531eb4aad7c0a574a44841f.zip
phosphor-user-manager-c3f56c50ffffe1076531eb4aad7c0a574a44841f.tar.gz
LDAP:change default values of GroupNameAttribute and UserNamAttributeHEADmaster
Modify UserNameAttribute default value to "cn" and GroupNameAttribute default value to "gidNubmer" create config already enabled to make these attributes user configurable.these default values are to make sure ldap config works if user does not configure these attributes. Tested by: Configured LDAP without specifying group name and user name attributes and tested ldap user authentication Change-Id: I0091389122a384e0966659161566e9e543608628 Signed-off-by: raviteja-b <raviteja28031990@gmail.com>
-rw-r--r--phosphor-ldap-config/ldap_configuration.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/phosphor-ldap-config/ldap_configuration.cpp b/phosphor-ldap-config/ldap_configuration.cpp
index 4f2f85c..466b72d 100644
--- a/phosphor-ldap-config/ldap_configuration.cpp
+++ b/phosphor-ldap-config/ldap_configuration.cpp
@@ -151,11 +151,11 @@ void Config::writeConfig()
{
if (ConfigIface::userNameAttribute().empty())
{
- ConfigIface::userNameAttribute("uid");
+ ConfigIface::userNameAttribute("cn");
}
if (ConfigIface::groupNameAttribute().empty())
{
- ConfigIface::groupNameAttribute("gid");
+ ConfigIface::groupNameAttribute("gidNumber");
}
confData << "filter passwd (objectclass=*)\n";
confData << "map passwd gecos displayName\n";
OpenPOWER on IntegriCloud