mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 15:32:13 +00:00
Merge branch 'seeddms-4.3.x' into seeddms-5.0.x
This commit is contained in:
commit
6f4c1cb519
|
@ -3,12 +3,13 @@
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
- send notification if document is delete to those users watching the folder
|
- send notification if document is delete to those users watching the folder
|
||||||
- fix editing of customer attributes of type checkbox
|
- fix editing of customer attributes of type checkbox
|
||||||
- disallow read access for group didn't prevent the users from being selected
|
- disallowed read access for a group didn't prevent the users from being selected
|
||||||
as a reviewer/approver
|
as a reviewer/approver
|
||||||
- move the last bits of plain sql code from op/*.php into the core
|
- move the last bits of plain sql code from op/*.php into the core
|
||||||
- group manager uses ajax like user manager
|
- group manager uses ajax like user manager
|
||||||
- start to enforce content security policy
|
- start to enforce content security policy
|
||||||
- fixed possible XSS attack in user manager
|
- fixed possible XSS attack in user manager
|
||||||
|
- ldap search can be filtered (Thanks to Tobias for the patch)
|
||||||
|
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
Changes in version 4.3.22
|
Changes in version 4.3.22
|
||||||
|
|
|
@ -12,8 +12,8 @@
|
||||||
<email>uwe@steinmann.cx</email>
|
<email>uwe@steinmann.cx</email>
|
||||||
<active>yes</active>
|
<active>yes</active>
|
||||||
</lead>
|
</lead>
|
||||||
<date>2015-04-15</date>
|
<date>2016-01-22</date>
|
||||||
<time>08:02:04</time>
|
<time>09:28:28</time>
|
||||||
<version>
|
<version>
|
||||||
<release>5.0.0</release>
|
<release>5.0.0</release>
|
||||||
<api>5.0.0</api>
|
<api>5.0.0</api>
|
||||||
|
@ -909,5 +909,39 @@ by a group or user right
|
||||||
- user getCurrentTimestamp() and getCurrentDatetime() whenever possible
|
- user getCurrentTimestamp() and getCurrentDatetime() whenever possible
|
||||||
</notes>
|
</notes>
|
||||||
</release>
|
</release>
|
||||||
|
<release>
|
||||||
|
<date>2015-11-09</date>
|
||||||
|
<time>19:49:20</time>
|
||||||
|
<version>
|
||||||
|
<release>4.3.22</release>
|
||||||
|
<api>4.3.22</api>
|
||||||
|
</version>
|
||||||
|
<stability>
|
||||||
|
<release>stable</release>
|
||||||
|
<api>stable</api>
|
||||||
|
</stability>
|
||||||
|
<license uri="http://opensource.org/licenses/gpl-license">GPL License</license>
|
||||||
|
<notes>
|
||||||
|
- fix sql statement to reset password
|
||||||
|
- pass some more information for timeline
|
||||||
|
</notes>
|
||||||
|
</release>
|
||||||
|
<release>
|
||||||
|
<date>2016-01-21</date>
|
||||||
|
<time>07:12:53</time>
|
||||||
|
<version>
|
||||||
|
<release>4.3.23</release>
|
||||||
|
<api>4.3.23</api>
|
||||||
|
</version>
|
||||||
|
<stability>
|
||||||
|
<release>stable</release>
|
||||||
|
<api>stable</api>
|
||||||
|
</stability>
|
||||||
|
<license uri="http://opensource.org/licenses/gpl-license">GPL License</license>
|
||||||
|
<notes>
|
||||||
|
- new method SeedDMS_Core_DMS::createDump()
|
||||||
|
- minor improvements int SeedDMS_Core_Document::getReadAccessList()
|
||||||
|
</notes>
|
||||||
|
</release>
|
||||||
</changelog>
|
</changelog>
|
||||||
</package>
|
</package>
|
||||||
|
|
|
@ -111,6 +111,7 @@
|
||||||
- URIs are supported, e.g.: ldaps://ldap.host.com
|
- URIs are supported, e.g.: ldaps://ldap.host.com
|
||||||
- port: port of the authentification server
|
- port: port of the authentification server
|
||||||
- baseDN: top level of the LDAP directory tree
|
- baseDN: top level of the LDAP directory tree
|
||||||
|
- filter: Additional filters which are to be checked
|
||||||
-->
|
-->
|
||||||
<connector
|
<connector
|
||||||
enable = "false"
|
enable = "false"
|
||||||
|
@ -120,6 +121,7 @@
|
||||||
baseDN = ""
|
baseDN = ""
|
||||||
bindDN=""
|
bindDN=""
|
||||||
bindPw=""
|
bindPw=""
|
||||||
|
filter=""
|
||||||
>
|
>
|
||||||
</connector>
|
</connector>
|
||||||
<!-- ***** CONNECTOR Microsoft Active Directory *****
|
<!-- ***** CONNECTOR Microsoft Active Directory *****
|
||||||
|
|
|
@ -223,6 +223,7 @@ class Settings { /* {{{ */
|
||||||
var $_ldapBindPw = "";
|
var $_ldapBindPw = "";
|
||||||
var $_ldapAccountDomainName = "";
|
var $_ldapAccountDomainName = "";
|
||||||
var $_ldapType = 1; // 0 = ldap; 1 = AD
|
var $_ldapType = 1; // 0 = ldap; 1 = AD
|
||||||
|
var $_ldapFilter = "";
|
||||||
var $_converters = array(); // list of commands used to convert files to text for Indexer
|
var $_converters = array(); // list of commands used to convert files to text for Indexer
|
||||||
var $_extensions = array(); // configuration for extensions
|
var $_extensions = array(); // configuration for extensions
|
||||||
|
|
||||||
|
@ -430,6 +431,7 @@ class Settings { /* {{{ */
|
||||||
$this->_ldapBindDN = strVal($connectorNode["bindDN"]);
|
$this->_ldapBindDN = strVal($connectorNode["bindDN"]);
|
||||||
$this->_ldapBindPw = strVal($connectorNode["bindPw"]);
|
$this->_ldapBindPw = strVal($connectorNode["bindPw"]);
|
||||||
$this->_ldapType = 0;
|
$this->_ldapType = 0;
|
||||||
|
$this->_ldapFilter = strVal($connectorNode["filter"]);
|
||||||
}
|
}
|
||||||
else if ($params['enable'] && ($typeConn == "AD"))
|
else if ($params['enable'] && ($typeConn == "AD"))
|
||||||
{
|
{
|
||||||
|
@ -439,6 +441,7 @@ class Settings { /* {{{ */
|
||||||
$this->_ldapBindDN = strVal($connectorNode["bindDN"]);
|
$this->_ldapBindDN = strVal($connectorNode["bindDN"]);
|
||||||
$this->_ldapBindPw = strVal($connectorNode["bindPw"]);
|
$this->_ldapBindPw = strVal($connectorNode["bindPw"]);
|
||||||
$this->_ldapType = 1;
|
$this->_ldapType = 1;
|
||||||
|
$this->_ldapFilter = strVal($connectorNode["filter"]);
|
||||||
$this->_ldapAccountDomainName = strVal($connectorNode["accountDomainName"]);
|
$this->_ldapAccountDomainName = strVal($connectorNode["accountDomainName"]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -118,6 +118,7 @@
|
||||||
- URIs are supported, e.g.: ldaps://ldap.host.com
|
- URIs are supported, e.g.: ldaps://ldap.host.com
|
||||||
- port: port of the authentification server
|
- port: port of the authentification server
|
||||||
- baseDN: top level of the LDAP directory tree
|
- baseDN: top level of the LDAP directory tree
|
||||||
|
- filter: Additional filters which are to be checked
|
||||||
-->
|
-->
|
||||||
<connector
|
<connector
|
||||||
enable = "false"
|
enable = "false"
|
||||||
|
@ -127,6 +128,7 @@
|
||||||
baseDN = ""
|
baseDN = ""
|
||||||
bindDN=""
|
bindDN=""
|
||||||
bindPw=""
|
bindPw=""
|
||||||
|
filter=""
|
||||||
>
|
>
|
||||||
</connector>
|
</connector>
|
||||||
<!-- ***** CONNECTOR Microsoft Active Directory *****
|
<!-- ***** CONNECTOR Microsoft Active Directory *****
|
||||||
|
|
|
@ -130,7 +130,11 @@ if (isset($settings->_ldapHost) && strlen($settings->_ldapHost)>0) {
|
||||||
$dn = false;
|
$dn = false;
|
||||||
/* If bind succeed, then get the dn of for the user */
|
/* If bind succeed, then get the dn of for the user */
|
||||||
if ($bind) {
|
if ($bind) {
|
||||||
$search = ldap_search($ds, $settings->_ldapBaseDN, $ldapSearchAttribut.$login);
|
if (isset($settings->_ldapFilter) && strlen($settings->_ldapFilter) > 0) {
|
||||||
|
$search = ldap_search($ds, $settings->_ldapBaseDN, "(&(".$ldapSearchAttribut.$login.")".$settings->_ldapFilter.")");
|
||||||
|
} else {
|
||||||
|
$search = ldap_search($ds, $settings->_ldapBaseDN, $ldapSearchAttribut.$login);
|
||||||
|
}
|
||||||
if (!is_bool($search)) {
|
if (!is_bool($search)) {
|
||||||
$info = ldap_get_entries($ds, $search);
|
$info = ldap_get_entries($ds, $search);
|
||||||
if (!is_bool($info) && $info["count"]>0) {
|
if (!is_bool($info) && $info["count"]>0) {
|
||||||
|
@ -155,7 +159,11 @@ if (isset($settings->_ldapHost) && strlen($settings->_ldapHost)>0) {
|
||||||
$user = $dms->getUserByLogin($login);
|
$user = $dms->getUserByLogin($login);
|
||||||
if (is_bool($user) && !$settings->_restricted) {
|
if (is_bool($user) && !$settings->_restricted) {
|
||||||
// Retrieve the user's LDAP information.
|
// Retrieve the user's LDAP information.
|
||||||
$search = ldap_search($ds, $settings->_ldapBaseDN, $ldapSearchAttribut . $login);
|
if (isset($settings->_ldapFilter) && strlen($settings->_ldapFilter) > 0) {
|
||||||
|
$search = ldap_search($ds, $settings->_ldapBaseDN, "(&(".$ldapSearchAttribut.$login.")".$settings->_ldapFilter.")");
|
||||||
|
} else {
|
||||||
|
$search = ldap_search($ds, $settings->_ldapBaseDN, $ldapSearchAttribut . $login);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
$bind = @ldap_bind($ds, $dn, $pwd);
|
$bind = @ldap_bind($ds, $dn, $pwd);
|
||||||
if ($bind) {
|
if ($bind) {
|
||||||
|
|
|
@ -1,2 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
/usr/bin/php -f /usr/share/seeddms/utils/adddoc.php -- $*
|
if [ -z ${SEEDDMS_HOME+x} ]; then
|
||||||
|
echo "Please set SEEDDMS_HOME before running this script";
|
||||||
|
exit 1;
|
||||||
|
fi
|
||||||
|
php -f ${SEEDDMS_HOME}/utils/adddoc.php -- $*
|
||||||
|
|
|
@ -1,2 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
/usr/bin/php -f /usr/share/seeddms/utils/createfolder.php -- $*
|
if [ -z ${SEEDDMS_HOME+x} ]; then
|
||||||
|
echo "Please set SEEDDMS_HOME before running this script";
|
||||||
|
exit 1;
|
||||||
|
fi
|
||||||
|
php -f ${SEEDDMS_HOME}/utils/createfolder.php -- $*
|
||||||
|
|
|
@ -1,2 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
/usr/bin/php -f /usr/share/seeddms/utils/indexer.php -- $*
|
if [ -z ${SEEDDMS_HOME+x} ]; then
|
||||||
|
echo "Please set SEEDDMS_HOME before running this script";
|
||||||
|
exit 1;
|
||||||
|
fi
|
||||||
|
php -f ${SEEDDMS_HOME}/utils/indexer.php -- $*
|
||||||
|
|
|
@ -1,2 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
/usr/bin/php -f /usr/share/seeddms/utils/xmldump -- $*
|
if [ -z ${SEEDDMS_HOME+x} ]; then
|
||||||
|
echo "Please set SEEDDMS_HOME before running this script";
|
||||||
|
exit 1;
|
||||||
|
fi
|
||||||
|
php -f ${SEEDDMS_HOME}/utils/xmldump -- $*
|
||||||
|
|
Loading…
Reference in New Issue
Block a user