|
@@ -1433,14 +1433,14 @@ public:
|
|
|
{
|
|
|
}
|
|
|
}
|
|
|
- createLdapBasedn(NULL, m_ldapconfig->getResourceBasedn(RT_DEFAULT), PT_ADMINISTRATORS_ONLY);
|
|
|
- createLdapBasedn(NULL, m_ldapconfig->getResourceBasedn(RT_FILE_SCOPE), PT_ADMINISTRATORS_ONLY);
|
|
|
- createLdapBasedn(NULL, m_ldapconfig->getResourceBasedn(RT_VIEW_SCOPE), PT_ADMINISTRATORS_ONLY);
|
|
|
- createLdapBasedn(NULL, m_ldapconfig->getResourceBasedn(RT_WORKUNIT_SCOPE), PT_ADMINISTRATORS_ONLY);
|
|
|
- createLdapBasedn(NULL, m_ldapconfig->getResourceBasedn(RT_SUDOERS), PT_ADMINISTRATORS_ONLY);
|
|
|
-
|
|
|
- createLdapBasedn(NULL, m_ldapconfig->getUserBasedn(), PT_ADMINISTRATORS_ONLY);
|
|
|
- createLdapBasedn(NULL, m_ldapconfig->getGroupBasedn(), PT_ADMINISTRATORS_ONLY);
|
|
|
+ createLdapBasedn(NULL, m_ldapconfig->getResourceBasedn(RT_DEFAULT), PT_DEFAULT);
|
|
|
+ createLdapBasedn(NULL, m_ldapconfig->getResourceBasedn(RT_FILE_SCOPE), PT_DEFAULT);
|
|
|
+ createLdapBasedn(NULL, m_ldapconfig->getResourceBasedn(RT_VIEW_SCOPE), PT_DEFAULT);
|
|
|
+ createLdapBasedn(NULL, m_ldapconfig->getResourceBasedn(RT_WORKUNIT_SCOPE), PT_DEFAULT);
|
|
|
+ createLdapBasedn(NULL, m_ldapconfig->getResourceBasedn(RT_SUDOERS), PT_DEFAULT);
|
|
|
+
|
|
|
+ createLdapBasedn(NULL, m_ldapconfig->getUserBasedn(), PT_DEFAULT);
|
|
|
+ createLdapBasedn(NULL, m_ldapconfig->getGroupBasedn(), PT_DEFAULT);
|
|
|
createdOU = true;
|
|
|
}
|
|
|
}
|
|
@@ -1458,7 +1458,7 @@ public:
|
|
|
virtual void setResourceBasedn(const char* rbasedn, SecResourceType rtype)
|
|
|
{
|
|
|
m_ldapconfig->setResourceBasedn(rbasedn, rtype);
|
|
|
- createLdapBasedn(NULL, m_ldapconfig->getResourceBasedn(rtype), PT_ADMINISTRATORS_ONLY);
|
|
|
+ createLdapBasedn(NULL, m_ldapconfig->getResourceBasedn(rtype), PT_DEFAULT);
|
|
|
}
|
|
|
|
|
|
void calcPWExpiry(CDateTime &dt, unsigned len, char * val)
|
|
@@ -4499,7 +4499,7 @@ public:
|
|
|
|
|
|
ISecUser* user = NULL;
|
|
|
CLdapSecResource resource(newname);
|
|
|
- addResource(rtype, *user, &resource, PT_ADMINISTRATORS_ONLY, basedn, sd.get(), false);
|
|
|
+ addResource(rtype, *user, &resource, PT_DEFAULT, basedn, sd.get(), false);
|
|
|
}
|
|
|
|
|
|
void normalizeDn(const char* dn, StringBuffer& ndn)
|