[389-ds-base] branch master updated (f901190 -> 3571bac)
by git repository hosting
This is an automated email from the git hooks/post-receive script.
mreynolds pushed a change to branch master
in repository 389-ds-base.
from f901190 Ticket 49856 - Remove backend option from bak2db
add 3571bac Ticket 49814 - dscreate should set the port selinux labels
No new revisions were added by this update.
Summary of changes:
rpm/389-ds-base.spec.in | 6 ++---
src/lib389/lib389/instance/remove.py | 6 +++++
src/lib389/lib389/instance/setup.py | 14 ++++++++---
src/lib389/lib389/utils.py | 47 ++++++++++++++++++++++++++++++++++++
4 files changed, 66 insertions(+), 7 deletions(-)
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
5 years, 6 months
[389-ds-base] branch master updated (219ddd8 -> f901190)
by git repository hosting
This is an automated email from the git hooks/post-receive script.
mreynolds pushed a change to branch master
in repository 389-ds-base.
from 219ddd8 Ticket 49926 - Fix various issues with replication UI
add f901190 Ticket 49856 - Remove backend option from bak2db
No new revisions were added by this update.
Summary of changes:
ldap/admin/src/scripts/bak2db.in | 4 +---
ldap/admin/src/scripts/bak2db.pl.in | 10 ++--------
man/man8/bak2db.8 | 5 +----
src/lib389/doc/source/task.rst | 2 +-
src/lib389/doc/source/utils.rst | 2 +-
src/lib389/lib389/__init__.py | 2 +-
src/lib389/lib389/tasks.py | 10 +---------
7 files changed, 8 insertions(+), 27 deletions(-)
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
5 years, 6 months
[389-ds-base] branch master updated (364b854 -> 219ddd8)
by git repository hosting
This is an automated email from the git hooks/post-receive script.
mreynolds pushed a change to branch master
in repository 389-ds-base.
from 364b854 Ticket 49975 - SUSE rpmlint issues
add 219ddd8 Ticket 49926 - Fix various issues with replication UI
No new revisions were added by this update.
Summary of changes:
src/cockpit/389-console/css/ds.css | 25 +
src/cockpit/389-console/js/ds.js | 2 +-
src/cockpit/389-console/js/replication.js | 647 +++++++++++++++-----------
src/cockpit/389-console/js/schema.js | 57 ++-
src/cockpit/389-console/js/servers.js | 4 +-
src/cockpit/389-console/replication.html | 242 ++++++----
src/lib389/doc/source/repltools.rst | 2 +-
src/lib389/lib389/__init__.py | 2 +-
src/lib389/lib389/_constants.py | 2 +-
src/lib389/lib389/cli_conf/replication.py | 80 +++-
src/lib389/lib389/tests/replicaLegacy_test.py | 4 +-
11 files changed, 673 insertions(+), 394 deletions(-)
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
5 years, 6 months
[389-ds-base] branch master updated (aaf517c -> 364b854)
by git repository hosting
This is an automated email from the git hooks/post-receive script.
firstyear pushed a change to branch master
in repository 389-ds-base.
from aaf517c Ticket 49978 - Add CLI logging function for UI
add e1c693d Issue 49939 - Fix ldapi path in lib389
add 364b854 Ticket 49975 - SUSE rpmlint issues
No new revisions were added by this update.
Summary of changes:
ldap/servers/slapd/main.c | 16 ++++++++++++++++
src/lib389/lib389/clitools/__init__.py | 2 --
src/lib389/lib389/instance/setup.py | 3 ++-
3 files changed, 18 insertions(+), 3 deletions(-)
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
5 years, 6 months
[389-console] tag 389-console-1.1.19 created (now 21bbad4)
by git repository hosting
This is an automated email from the git hooks/post-receive script.
mreynolds pushed a change to tag 389-console-1.1.19
in repository 389-console.
at 21bbad4 (commit)
No new revisions were added by this update.
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
5 years, 6 months
[389-console] branch master updated: Bump version to 1.1.19
by git repository hosting
This is an automated email from the git hooks/post-receive script.
mreynolds pushed a commit to branch master
in repository 389-console.
The following commit(s) were added to refs/heads/master by this push:
new 21bbad4 Bump version to 1.1.19
21bbad4 is described below
commit 21bbad4be75f7a418b099f91d466a2370ef917bc
Author: Mark Reynolds <mreynolds(a)redhat.com>
AuthorDate: Thu Oct 18 16:25:36 2018 -0400
Bump version to 1.1.19
---
build.properties | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/build.properties b/build.properties
index e8da4f7..3400c09 100644
--- a/build.properties
+++ b/build.properties
@@ -23,7 +23,7 @@ lang=en
console.root=.
console.version=11
-console.dotversion=1.1.18
+console.dotversion=1.1.19
console.dotgenversion=1.1
theme.core=389-console
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
5 years, 6 months
[389-ds-base] branch master updated (634df9e -> aaf517c)
by git repository hosting
This is an automated email from the git hooks/post-receive script.
mreynolds pushed a change to branch master
in repository 389-ds-base.
from 634df9e Issue 49929 - Modifications required for the Test Case Management System
add aaf517c Ticket 49978 - Add CLI logging function for UI
No new revisions were added by this update.
Summary of changes:
src/cockpit/389-console/js/ds.js | 37 +++++++++
src/cockpit/389-console/js/replication.js | 120 ++++++++++++++----------------
src/cockpit/389-console/js/schema.js | 23 +++---
src/cockpit/389-console/js/servers.js | 48 ++++++------
4 files changed, 129 insertions(+), 99 deletions(-)
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
5 years, 6 months
[389-ds-base] branch master updated (a8c37ea -> 634df9e)
by git repository hosting
This is an automated email from the git hooks/post-receive script.
vashirov pushed a change to branch master
in repository 389-ds-base.
from a8c37ea Ticket 49979 - Fix regression in last commit
add 634df9e Issue 49929 - Modifications required for the Test Case Management System
No new revisions were added by this update.
Summary of changes:
dirsrvtests/tests/suites/acl/__init__.py | 3 +++
dirsrvtests/tests/suites/automember_plugin/__init__.py | 3 +++
dirsrvtests/tests/suites/basic/__init__.py | 3 +++
dirsrvtests/tests/suites/betxns/__init__.py | 3 +++
dirsrvtests/tests/suites/clu/__init__.py | 3 +++
dirsrvtests/tests/suites/config/__init__.py | 3 +++
dirsrvtests/tests/suites/cos/__init__.py | 3 +++
dirsrvtests/tests/suites/disk_monitoring/__init__.py | 3 +++
dirsrvtests/tests/suites/ds_logs/__init__.py | 3 +++
dirsrvtests/tests/suites/ds_tools/__init__.py | 4 ++++
dirsrvtests/tests/suites/dynamic_plugins/__init__.py | 3 +++
dirsrvtests/tests/suites/filter/__init__.py | 3 +++
dirsrvtests/tests/suites/get_effective_rights/__init__.py | 3 +++
dirsrvtests/tests/suites/gssapi/__init__.py | 3 +++
dirsrvtests/tests/suites/gssapi_repl/__init__.py | 3 +++
dirsrvtests/tests/suites/import/__init__.py | 4 +++-
dirsrvtests/tests/suites/ldapi/__init__.py | 3 +++
dirsrvtests/tests/suites/memberof_plugin/__init__.py | 4 +++-
dirsrvtests/tests/suites/memory_leaks/__init__.py | 3 +++
dirsrvtests/tests/suites/monitor/__init__.py | 3 +++
dirsrvtests/tests/suites/paged_results/__init__.py | 3 +++
dirsrvtests/tests/suites/password/__init__.py | 3 +++
dirsrvtests/tests/suites/plugins/__init__.py | 3 +++
dirsrvtests/tests/suites/psearch/__init__.py | 3 +++
dirsrvtests/tests/suites/replication/__init__.py | 3 +++
dirsrvtests/tests/suites/sasl/__init__.py | 3 +++
dirsrvtests/tests/suites/schema/__init__.py | 3 +++
dirsrvtests/tests/suites/setup_ds/__init__.py | 3 +++
dirsrvtests/tests/suites/snmp/__init__.py | 3 +++
dirsrvtests/tests/suites/syntax/__init__.py | 3 +++
dirsrvtests/tests/suites/tls/__init__.py | 3 +++
dirsrvtests/tests/suites/vlv/__init__.py | 3 +++
32 files changed, 97 insertions(+), 2 deletions(-)
create mode 100644 dirsrvtests/tests/suites/automember_plugin/__init__.py
create mode 100644 dirsrvtests/tests/suites/ds_tools/__init__.py
create mode 100644 dirsrvtests/tests/suites/gssapi_repl/__init__.py
create mode 100644 dirsrvtests/tests/suites/setup_ds/__init__.py
create mode 100644 dirsrvtests/tests/suites/syntax/__init__.py
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
5 years, 6 months
[389-ds-base] branch 389-ds-base-1.3.8 updated: Ticket 49968 - Confusing CRITICAL message: list_candidates - NULL idl was recieved from filter_candidates_ext
by git repository hosting
This is an automated email from the git hooks/post-receive script.
mreynolds pushed a commit to branch 389-ds-base-1.3.8
in repository 389-ds-base.
The following commit(s) were added to refs/heads/389-ds-base-1.3.8 by this push:
new e87985c Ticket 49968 - Confusing CRITICAL message: list_candidates - NULL idl was recieved from filter_candidates_ext
e87985c is described below
commit e87985cd15559329826315fa65f775621d2cc93f
Author: Thierry Bordaz <tbordaz(a)redhat.com>
AuthorDate: Wed Oct 10 15:35:12 2018 +0200
Ticket 49968 - Confusing CRITICAL message: list_candidates - NULL idl was recieved from filter_candidates_ext
Bug Description:
When a filter component is indexed but returns an empty IDL
an alarming message is logged although it is normal.
Fix Description:
Remove the alarming message
https://pagure.io/389-ds-base/issue/49968
Reviewed by: Mark Reynolds
Platforms tested: F27 + testcase
Flag Day: no
Doc impact: no
---
dirsrvtests/tests/suites/basic/basic_test.py | 202 +++++++++++++++++++++++++++
ldap/servers/slapd/back-ldbm/filterindex.c | 10 +-
2 files changed, 204 insertions(+), 8 deletions(-)
diff --git a/dirsrvtests/tests/suites/basic/basic_test.py b/dirsrvtests/tests/suites/basic/basic_test.py
index 45988dc..dc366cd 100644
--- a/dirsrvtests/tests/suites/basic/basic_test.py
+++ b/dirsrvtests/tests/suites/basic/basic_test.py
@@ -868,6 +868,208 @@ adds nsslapd-return-default-opattr attr with value of one operation attribute.
log.fatal('Search failed, error: ' + e.message['desc'])
assert False
+
+(a)pytest.fixture(scope="module")
+def create_users(topology_st):
+ """Add users to the default suffix
+ """
+
+ users = UserAccounts(topology_st.standalone, DEFAULT_SUFFIX)
+ user_names = ["Directory", "Server", "389", "lib389", "pytest"]
+
+ log.info('Adding 5 test users')
+ for name in user_names:
+ user = users.create(properties={
+ 'uid': name,
+ 'sn': name,
+ 'cn': name,
+ 'uidNumber': '1000',
+ 'gidNumber': '1000',
+ 'homeDirectory': '/home/%s' % name,
+ 'mail': '%s(a)example.com' % name,
+ 'userpassword': 'pass%s' % name,
+ })
+
+
+def test_basic_anonymous_search(topology_st, create_users):
+ """Tests basic anonymous search operations
+
+ :id: c7831e04-f458-4e50-83c7-b6f77109f639
+ :setup: Standalone instance
+ Add 5 test users with different user names
+ :steps:
+ 1. Execute anonymous search with different filters
+ :expectedresults:
+ 1. Search should be successful
+ """
+
+ filters = ["uid=Directory", "(|(uid=S*)(uid=3*))", "(&(uid=l*)(mail=l*))", "(&(!(uid=D*))(ou=People))"]
+ log.info("Execute anonymous search with different filters")
+ for filtr in filters:
+ entries = topology_st.standalone.search_s(DEFAULT_SUFFIX, ldap.SCOPE_SUBTREE, filtr)
+ assert len(entries) != 0
+
+
+(a)pytest.mark.ds604
+(a)pytest.mark.bz915801
+def test_search_original_type(topology_st, create_users):
+ """Test ldapsearch returning original attributes
+ using nsslapd-search-return-original-type-switch
+
+ :id: d7831d04-f558-4e50-93c7-b6f77109f640
+ :setup: Standalone instance
+ Add some test entries
+ :steps:
+ 1. Set nsslapd-search-return-original-type-switch to ON
+ 2. Check that ldapsearch *does* return unknown attributes
+ 3. Turn off nsslapd-search-return-original-type-switch
+ 4. Check that ldapsearch doesn't return any unknown attributes
+ :expectedresults:
+ 1. nsslapd-search-return-original-type-switch should be set to ON
+ 2. ldapsearch should return unknown attributes
+ 3. nsslapd-search-return-original-type-switch should be OFF
+ 4. ldapsearch should not return any unknown attributes
+ """
+
+ log.info("Set nsslapd-search-return-original-type-switch to ON")
+ topology_st.standalone.config.set('nsslapd-search-return-original-type-switch', 'on')
+
+ log.info("Check that ldapsearch *does* return unknown attributes")
+ entries = topology_st.standalone.search_s(DEFAULT_SUFFIX, ldap.SCOPE_SUBTREE, 'uid=Directory',
+ ['objectclass overflow', 'unknown'])
+ assert "objectclass overflow" in entries[0].getAttrs()
+
+ log.info("Set nsslapd-search-return-original-type-switch to Off")
+ topology_st.standalone.config.set('nsslapd-search-return-original-type-switch', 'off')
+ log.info("Check that ldapsearch *does not* return unknown attributes")
+ entries = topology_st.standalone.search_s(DEFAULT_SUFFIX, ldap.SCOPE_SUBTREE, 'uid=Directory',
+ ['objectclass overflow', 'unknown'])
+ assert "objectclass overflow" not in entries[0].getAttrs()
+
+
+(a)pytest.mark.bz192901
+def test_search_ou(topology_st):
+ """Test that DS should not return an entry that does not match the filter
+
+ :id: d7831d05-f117-4e89-93c7-b6f77109f640
+ :setup: Standalone instance
+ :steps:
+ 1. Create an OU entry without sub entries
+ 2. Search from the OU with the filter that does not match the OU
+ :expectedresults:
+ 1. Creation of OU should be successful
+ 2. Search should not return any results
+ """
+
+ log.info("Create a test OU without sub entries")
+ ou = OrganizationalUnits(topology_st.standalone, DEFAULT_SUFFIX)
+ ou.create(properties={
+ 'ou': 'test_ou',
+ })
+
+ search_base = ("ou=test_ou,%s" % DEFAULT_SUFFIX)
+ log.info("Search from the OU with the filter that does not match the OU, it should not return anything")
+ entries = topology_st.standalone.search_s(search_base, ldap.SCOPE_SUBTREE, 'uid=*', ['dn'])
+ assert len(entries) == 0
+
+
+(a)pytest.mark.bz1044135
+(a)pytest.mark.ds47319
+def test_connection_buffer_size(topology_st):
+ """Test connection buffer size adjustable with different values(valid values and invalid)
+
+ :id: e7831d05-f117-4ec9-1203-b6f77109f117
+ :setup: Standalone instance
+ :steps:
+ 1. Set nsslapd-connection-buffer to some valid values (2, 0 , 1)
+ 2. Set nsslapd-connection-buffer to some invalid values (-1, a)
+ :expectedresults:
+ 1. This should pass
+ 2. This should fail
+ """
+
+ valid_values = ['2', '0', '1']
+ for value in valid_values:
+ topology_st.standalone.config.replace('nsslapd-connection-buffer', value)
+
+ invalid_values = ['-1', 'a']
+ for value in invalid_values:
+ with pytest.raises(ldap.OPERATIONS_ERROR):
+ topology_st.standalone.config.replace('nsslapd-connection-buffer', value)
+
+(a)pytest.mark.bz1637439
+def test_critical_msg_on_empty_range_idl(topology_st):
+ """Doing a range index lookup should not report a critical message even if IDL is empty
+
+ :id: a07a2222-0551-44a6-b113-401d23799364
+ :setup: Standalone instance
+ :steps:
+ 1. Create an index for internationalISDNNumber. (attribute chosen because it is
+ unlikely that previous tests used it)
+ 2. telephoneNumber being indexed by default create 20 users without telephoneNumber
+ 3. add a telephoneNumber value and delete it to trigger an empty index database
+ 4. Do a search that triggers a range lookup on empty telephoneNumber
+ 5. Check that the critical message is not logged in error logs
+ :expectedresults:
+ 1. This should pass
+ 2. This should pass
+ 3. This should pass
+ 4. This should pass on normal build but could abort a debug build
+ 4. This should pass
+ """
+ indexedAttr = 'internationalISDNNumber'
+
+ # Step 1
+ from lib389.index import Indexes
+
+ indexes = Indexes(topology_st.standalone)
+ indexes.create(properties={
+ 'cn': indexedAttr,
+ 'nsSystemIndex': 'false',
+ 'nsIndexType': 'eq'
+ })
+ topology_st.standalone.restart()
+
+ # Step 2
+ users = UserAccounts(topology_st.standalone, DEFAULT_SUFFIX)
+ log.info('Adding 20 users without "%s"' % indexedAttr)
+ for i in range(20):
+ name = 'user_%d' % i
+ last_user = users.create(properties={
+ 'uid': name,
+ 'sn': name,
+ 'cn': name,
+ 'uidNumber': '1000',
+ 'gidNumber': '1000',
+ 'homeDirectory': '/home/%s' % name,
+ 'mail': '%s(a)example.com' % name,
+ 'userpassword': 'pass%s' % name,
+ })
+
+ # Step 3
+ # required update to create the indexAttr (i.e. 'loginShell') database, and then make it empty
+ topology_st.standalone.modify_s(last_user.dn, [(ldap.MOD_ADD, indexedAttr, b'1234')])
+ ent = topology_st.standalone.getEntry(last_user.dn, ldap.SCOPE_BASE,)
+ assert ent
+ assert ent.hasAttr(indexedAttr)
+ topology_st.standalone.modify_s(last_user.dn, [(ldap.MOD_DELETE, indexedAttr, None)])
+ ent = topology_st.standalone.getEntry(last_user.dn, ldap.SCOPE_BASE,)
+ assert ent
+ assert not ent.hasAttr(indexedAttr)
+
+ # Step 4
+ # The first component being not indexed the range on second is evaluated
+ try:
+ ents = topology_st.standalone.search_s(DEFAULT_SUFFIX, ldap.SCOPE_SUBTREE, '(&(sudoNotAfter=*)(%s>=111))' % indexedAttr)
+ assert len(ents) == 0
+ except ldap.SERVER_DOWN:
+ log.error('Likely testing against a debug version that asserted')
+ pass
+
+ # Step 5
+ assert not topology_st.standalone.searchErrorsLog('CRIT - list_candidates - NULL idl was recieved from filter_candidates_ext.')
+
+
if __name__ == '__main__':
# Run isolated
# -s for DEBUG mode
diff --git a/ldap/servers/slapd/back-ldbm/filterindex.c b/ldap/servers/slapd/back-ldbm/filterindex.c
index 6d36ba3..3ef04f8 100644
--- a/ldap/servers/slapd/back-ldbm/filterindex.c
+++ b/ldap/servers/slapd/back-ldbm/filterindex.c
@@ -803,16 +803,10 @@ list_candidates(
}
/*
- * Assert we recieved a valid idl. If it was NULL, it means somewhere we failed
- * during the dblayer interactions.
- *
- * idl_set requires a valid idl structure to generate the linked list of
- * idls that we insert.
+ * The IDL for that component is NULL, so no candidate retrieved from that component. This is all normal
+ * Just build a idl with an empty set
*/
if (tmp == NULL) {
- slapi_log_err(SLAPI_LOG_CRIT, "list_candidates", "NULL idl was recieved from filter_candidates_ext.");
- slapi_log_err(SLAPI_LOG_CRIT, "list_candidates", "Falling back to empty IDL set. This may affect your search results.");
- PR_ASSERT(tmp);
tmp = idl_alloc(0);
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
5 years, 6 months
[389-ds-base] branch 389-ds-base-1.3.7 updated: Ticket 49915 - fix compiler warnings (2nd)
by git repository hosting
This is an automated email from the git hooks/post-receive script.
tbordaz pushed a commit to branch 389-ds-base-1.3.7
in repository 389-ds-base.
The following commit(s) were added to refs/heads/389-ds-base-1.3.7 by this push:
new cb21dc5 Ticket 49915 - fix compiler warnings (2nd)
cb21dc5 is described below
commit cb21dc58a51001ce93253abd8a9f6d79a84f481a
Author: Thierry Bordaz <tbordaz(a)redhat.com>
AuthorDate: Tue Oct 16 15:10:13 2018 +0200
Ticket 49915 - fix compiler warnings (2nd)
---
ldap/servers/slapd/back-ldbm/proto-back-ldbm.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/ldap/servers/slapd/back-ldbm/proto-back-ldbm.h b/ldap/servers/slapd/back-ldbm/proto-back-ldbm.h
index da3eef1..e0a84c8 100644
--- a/ldap/servers/slapd/back-ldbm/proto-back-ldbm.h
+++ b/ldap/servers/slapd/back-ldbm/proto-back-ldbm.h
@@ -304,6 +304,8 @@ int index_buffer_init(size_t size, int flags, void **h);
int index_buffer_flush(void *h, backend *be, DB_TXN *txn, struct attrinfo *a);
int index_buffer_terminate(void *h);
+int get_suffix_key(Slapi_Backend *be, struct _back_info_index_key *info);
+int set_suffix_key(Slapi_Backend *be, struct _back_info_index_key *info);
char *index_index2prefix(const char *indextype);
void index_free_prefix(char *);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
5 years, 6 months