Lines Matching refs:getADConfigPtr

88         return getADConfigPtr()->ldapBindPassword;  in configBindPassword()
91 std::unique_ptr<Config>& getADConfigPtr() in getADConfigPtr() function in phosphor::ldap::MockConfigMgr
138 manager.getADConfigPtr()->enabled(true); in TEST_F()
155 EXPECT_EQ(manager.getADConfigPtr()->ldapServerURI(), in TEST_F()
157 EXPECT_EQ(manager.getADConfigPtr()->ldapBindDN(), "cn=Users,dc=com"); in TEST_F()
158 EXPECT_EQ(manager.getADConfigPtr()->ldapBaseDN(), "cn=Users,dc=corp"); in TEST_F()
159 EXPECT_EQ(manager.getADConfigPtr()->ldapSearchScope(), in TEST_F()
161 EXPECT_EQ(manager.getADConfigPtr()->ldapType(), in TEST_F()
164 EXPECT_EQ(manager.getADConfigPtr()->userNameAttribute(), "uid"); in TEST_F()
165 EXPECT_EQ(manager.getADConfigPtr()->groupNameAttribute(), "gid"); in TEST_F()
166 EXPECT_EQ(manager.getADConfigPtr()->ldapBindDNPassword(), ""); in TEST_F()
169 manager.getADConfigPtr()->ldapBindDNPassword("MyLdap14"); in TEST_F()
170 EXPECT_EQ(manager.getADConfigPtr()->ldapBindDNPassword(), ""); in TEST_F()
193 EXPECT_NE(nullptr, manager.getADConfigPtr()); in TEST_F()
195 EXPECT_EQ(manager.getADConfigPtr()->ldapType(), in TEST_F()
224 EXPECT_NE(nullptr, manager.getADConfigPtr()); in TEST_F()
226 EXPECT_EQ(manager.getADConfigPtr()->ldapType(), in TEST_F()
230 EXPECT_FALSE(manager.getADConfigPtr()->enabled()); in TEST_F()
257 managerPtr->getADConfigPtr()->enabled(false); in TEST_F()
259 EXPECT_FALSE(managerPtr->getADConfigPtr()->enabled()); in TEST_F()
260 managerPtr->getADConfigPtr()->enabled(true); in TEST_F()
266 EXPECT_TRUE(managerPtr->getADConfigPtr()->enabled()); in TEST_F()
267 EXPECT_EQ(managerPtr->getADConfigPtr()->ldapServerURI(), in TEST_F()
269 EXPECT_EQ(managerPtr->getADConfigPtr()->ldapBindDN(), "cn=Users,dc=com"); in TEST_F()
270 EXPECT_EQ(managerPtr->getADConfigPtr()->ldapBaseDN(), "cn=Users,dc=corp"); in TEST_F()
271 EXPECT_EQ(managerPtr->getADConfigPtr()->ldapSearchScope(), in TEST_F()
273 EXPECT_EQ(managerPtr->getADConfigPtr()->ldapType(), in TEST_F()
275 EXPECT_EQ(managerPtr->getADConfigPtr()->userNameAttribute(), "uid"); in TEST_F()
276 EXPECT_EQ(managerPtr->getADConfigPtr()->groupNameAttribute(), "gid"); in TEST_F()
277 EXPECT_EQ(managerPtr->getADConfigPtr()->ldapBindDNPassword(), ""); in TEST_F()
307 managerPtr->getADConfigPtr()->enabled(true); in TEST_F()
310 managerPtr->getADConfigPtr()->ldapServerURI("ldap://9.194.251.139/"); in TEST_F()
311 EXPECT_EQ(managerPtr->getADConfigPtr()->ldapServerURI(), in TEST_F()
317 managerPtr->getADConfigPtr()->ldapServerURI("ldaps://9.194.251.139/"), in TEST_F()
321 EXPECT_EQ(managerPtr->getADConfigPtr()->ldapServerURI(), in TEST_F()
326 EXPECT_EQ(managerPtr->getADConfigPtr()->ldapServerURI(), in TEST_F()
356 managerPtr->getADConfigPtr()->enabled(true); in TEST_F()
359 managerPtr->getADConfigPtr()->ldapBindDN( in TEST_F()
361 EXPECT_EQ(managerPtr->getADConfigPtr()->ldapBindDN(), in TEST_F()
368 managerPtr->getADConfigPtr()->ldapBindDN(""); in TEST_F()
379 EXPECT_EQ(managerPtr->getADConfigPtr()->ldapBindDN(), in TEST_F()
407 managerPtr->getADConfigPtr()->enabled(true); in TEST_F()
409 managerPtr->getADConfigPtr()->ldapBaseDN( in TEST_F()
411 EXPECT_EQ(managerPtr->getADConfigPtr()->ldapBaseDN(), in TEST_F()
418 managerPtr->getADConfigPtr()->ldapBaseDN(""); in TEST_F()
429 EXPECT_EQ(managerPtr->getADConfigPtr()->ldapBaseDN(), in TEST_F()
457 managerPtr->getADConfigPtr()->enabled(true); in TEST_F()
460 managerPtr->getADConfigPtr()->ldapSearchScope( in TEST_F()
462 EXPECT_EQ(managerPtr->getADConfigPtr()->ldapSearchScope(), in TEST_F()
467 EXPECT_EQ(managerPtr->getADConfigPtr()->ldapSearchScope(), in TEST_F()
495 managerPtr->getADConfigPtr()->enabled(true); in TEST_F()
499 EXPECT_THROW(managerPtr->getADConfigPtr()->ldapType( in TEST_F()
502 EXPECT_EQ(managerPtr->getADConfigPtr()->ldapType(), in TEST_F()
507 EXPECT_EQ(managerPtr->getADConfigPtr()->ldapType(), in TEST_F()
535 managerPtr->getADConfigPtr()->enabled(true); in TEST_F()
567 managerPtr->getADConfigPtr()->enabled(true); in TEST_F()
611 managerPtr->getADConfigPtr()->enabled(true); in TEST_F()
613 EXPECT_EQ(managerPtr->getADConfigPtr()->enabled(), true); in TEST_F()
630 EXPECT_EQ(managerPtr->getADConfigPtr()->enabled(), true); in TEST_F()
633 managerPtr->getADConfigPtr()->enabled(false); in TEST_F()
634 EXPECT_EQ(managerPtr->getADConfigPtr()->enabled(), false); in TEST_F()
639 EXPECT_EQ(managerPtr->getADConfigPtr()->enabled(), false); in TEST_F()
661 manager.getADConfigPtr()->create("admin", "priv-admin"); in TEST_F()
667 manager.getADConfigPtr()->checkPrivilegeMapper("admin"); in TEST_F()
694 manager.getADConfigPtr()->create("admin", "priv-admin"); in TEST_F()
695 manager.getADConfigPtr()->create("user", "priv-user"); in TEST_F()
701 manager.getADConfigPtr()->checkPrivilegeMapper("admin"); in TEST_F()
702 manager.getADConfigPtr()->checkPrivilegeMapper("user"); in TEST_F()
712 manager.getADConfigPtr()->deletePrivilegeMapper(1); in TEST_F()
713 EXPECT_NO_THROW(manager.getADConfigPtr()->checkPrivilegeMapper("admin")); in TEST_F()
714 manager.getADConfigPtr()->deletePrivilegeMapper(2); in TEST_F()
715 EXPECT_NO_THROW(manager.getADConfigPtr()->checkPrivilegeMapper("user")); in TEST_F()
735 manager.getADConfigPtr()->create("admin", "priv-admin"); in TEST_F()
742 manager.getADConfigPtr()->checkPrivilegeMapper("admin"); in TEST_F()
791 privilege, *(manager.getADConfigPtr())); in TEST_F()