[389-devel] Re: Build failed in Jenkins: 389-DS-NIGHTLY #192

2017-03-28 Thread Mark Reynolds


On 03/28/2017 09:34 PM, William Brown wrote:
> Hi Mark,
>
> Could this be related to the change you made for minage? You did change
> the internal_op setting, perhaps this required it? 
My change only affected the password minimum age check.  This is a
failure in password history.  This test passes for me on my laptop - so
perhaps we need a longer sleep?   I've found that all the password
policy tests require a sleep between making the password update and
checking the result
>
>
>> === FAILURES 
>> ===
>> _ test_ticket48228_test_subtree_policy 
>> _
>>
>> topology_st = 
>>
>> def test_ticket48228_test_subtree_policy(topology_st):
>> """
>> Check subtree level password policy
>> """
>> 
>> log.info('\''Set inhistory = 6'\'')
>> set_subtree_pwpolicy(topology_st)
>> 
>> log.info('\''Bind as directory manager'\'')
>> log.info("Bind as %s" % DN_DM)
>> topology_st.standalone.simple_bind_s(DN_DM, PASSWORD)
>> 
>> log.info('\''Add an entry'\'' + USER2_DN)
>> try:
>> topology_st.standalone.add_s(
>> Entry((USER2_DN, {'\''objectclass'\'': "top person 
>> organizationalPerson inetOrgPerson".split(),
>>   '\''sn'\'': '\''2'\'',
>>   '\''cn'\'': '\''user 2'\'',
>>   '\''uid'\'': '\''user2'\'',
>>   '\''givenname'\'': '\''user'\'',
>>   '\''mail'\'': '\''us...@example.com'\'',
>>   '\''userpassword'\'': '\''password'\''})))
>> except ldap.LDAPError as e:
>> log.fatal('\''test_ticket48228: Failed to add user'\'' + 
>> USER2_DN + '\'': error '\'' + e.message['\''desc'\''])
>> assert False
>> 
>> log.info('\''Update the password of '\'' + USER2_DN + '\'' 6 
>> times'\'')
>>>   update_passwd(topology_st, USER2_DN, '\''password'\'', 6)
>> :224:
>>  
>> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
>> _ _ 
>>
>> topology_st = 
>> user = '\''uid=user2,dc=example,dc=com'\'', passwd = '\''password'\'', times 
>> = 6
>>
>> def update_passwd(topology_st, user, passwd, times):
>> cpw = passwd
>> for i in range(times):
>> log.info("   Bind as {%s,%s}" % (user, cpw))
>> topology_st.standalone.simple_bind_s(user, cpw)
>> cpw = '\''password%d'\'' % i
>> try:
>> topology_st.standalone.modify_s(user, [(ldap.MOD_REPLACE, 
>> '\''userpassword'\'', cpw)])
>> except ldap.LDAPError as e:
>> log.fatal(
>> '\''test_ticket48228: Failed to update the password '\'' 
>> + cpw + '\'' of user '\'' + user + '\'': error '\'' + e.message[
>> '\''desc'\''])
>> assert False
>> time.sleep(1)
>> 
>> # checking the first password, which is supposed to be in history
>> inhistory = check_passwd_inhistory(topology_st, user, cpw, passwd)
>>>   assert inhistory == 1
>> E   assert 0 == 1
>>
>> :135:
>>  AssertionError
>> - Captured stderr call 
>> -
>> INFO:dirsrvtests.tests.tickets.ticket48228_test: Set inhistory = 6
>> INFO:dirsrvtests.tests.tickets.ticket48228_test: + Enable subtree 
>> level password policy +
>>
>> INFO:dirsrvtests.tests.tickets.ticket48228_test: Add the 
>> container
>> INFO:dirsrvtests.tests.tickets.ticket48228_test: Add the 
>> password policy subentry {passwordHistory: on, passwordInHistory: 6}
>> INFO:dirsrvtests.tests.tickets.ticket48228_test: Add the COS 
>> template
>> INFO:dirsrvtests.tests.tickets.ticket48228_test: Add the COS 
>> definition
>> INFO:dirsrvtests.tests.tickets.ticket48228_test: Bind as directory 
>> manager
>> INFO:dirsrvtests.tests.tickets.ticket48228_test:Bind as cn=Directory Manager
>> INFO:dirsrvtests.tests.tickets.ticket48228_test: Add an 
>> entryuid=user2,dc=example,dc=com
>> INFO:dirsrvtests.tests.tickets.ticket48228_test: Update the password of 
>> uid=user2,dc=example,dc=com 6 times
>> INFO:dirsrvtests.tests.tickets.ticket48228_test: Bind as 
>> {uid=user2,dc=example,dc=com,password}
>> INFO:dirsrvtests.tests.tickets.ticket48228_test: Bind as 
>> {uid=user2,dc=example,dc=com,password0}
>> 

[389-devel] Re: Build failed in Jenkins: 389-DS-NIGHTLY #192

2017-03-28 Thread William Brown
Hi Mark,

Could this be related to the change you made for minage? You did change
the internal_op setting, perhaps this required it? 


> 
> === FAILURES 
> ===
> _ test_ticket48228_test_subtree_policy 
> _
> 
> topology_st = 
> 
> def test_ticket48228_test_subtree_policy(topology_st):
> """
> Check subtree level password policy
> """
> 
> log.info('\'' Set inhistory = 6'\'')
> set_subtree_pwpolicy(topology_st)
> 
> log.info('\'' Bind as directory manager'\'')
> log.info("Bind as %s" % DN_DM)
> topology_st.standalone.simple_bind_s(DN_DM, PASSWORD)
> 
> log.info('\'' Add an entry'\'' + USER2_DN)
> try:
> topology_st.standalone.add_s(
> Entry((USER2_DN, {'\''objectclass'\'': "top person 
> organizationalPerson inetOrgPerson".split(),
>   '\''sn'\'': '\''2'\'',
>   '\''cn'\'': '\''user 2'\'',
>   '\''uid'\'': '\''user2'\'',
>   '\''givenname'\'': '\''user'\'',
>   '\''mail'\'': '\''us...@example.com'\'',
>   '\''userpassword'\'': '\''password'\''})))
> except ldap.LDAPError as e:
> log.fatal('\''test_ticket48228: Failed to add user'\'' + USER2_DN 
> + '\'': error '\'' + e.message['\''desc'\''])
> assert False
> 
> log.info('\'' Update the password of '\'' + USER2_DN + '\'' 6 
> times'\'')
> >   update_passwd(topology_st, USER2_DN, '\''password'\'', 6)
> 
> :224:
>  
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> 
> topology_st = 
> user = '\''uid=user2,dc=example,dc=com'\'', passwd = '\''password'\'', times 
> = 6
> 
> def update_passwd(topology_st, user, passwd, times):
> cpw = passwd
> for i in range(times):
> log.info("Bind as {%s,%s}" % (user, cpw))
> topology_st.standalone.simple_bind_s(user, cpw)
> cpw = '\''password%d'\'' % i
> try:
> topology_st.standalone.modify_s(user, [(ldap.MOD_REPLACE, 
> '\''userpassword'\'', cpw)])
> except ldap.LDAPError as e:
> log.fatal(
> '\''test_ticket48228: Failed to update the password '\'' 
> + cpw + '\'' of user '\'' + user + '\'': error '\'' + e.message[
> '\''desc'\''])
> assert False
> time.sleep(1)
> 
> # checking the first password, which is supposed to be in history
> inhistory = check_passwd_inhistory(topology_st, user, cpw, passwd)
> >   assert inhistory == 1
> E   assert 0 == 1
> 
> :135:
>  AssertionError
> - Captured stderr call 
> -
> INFO:dirsrvtests.tests.tickets.ticket48228_test:  Set inhistory = 6
> INFO:dirsrvtests.tests.tickets.ticket48228_test:  + Enable subtree 
> level password policy +
> 
> INFO:dirsrvtests.tests.tickets.ticket48228_test:  Add the 
> container
> INFO:dirsrvtests.tests.tickets.ticket48228_test:  Add the 
> password policy subentry {passwordHistory: on, passwordInHistory: 6}
> INFO:dirsrvtests.tests.tickets.ticket48228_test:  Add the COS 
> template
> INFO:dirsrvtests.tests.tickets.ticket48228_test:  Add the COS 
> definition
> INFO:dirsrvtests.tests.tickets.ticket48228_test:  Bind as directory 
> manager
> INFO:dirsrvtests.tests.tickets.ticket48228_test:Bind as cn=Directory Manager
> INFO:dirsrvtests.tests.tickets.ticket48228_test:  Add an 
> entryuid=user2,dc=example,dc=com
> INFO:dirsrvtests.tests.tickets.ticket48228_test:  Update the password of 
> uid=user2,dc=example,dc=com 6 times
> INFO:dirsrvtests.tests.tickets.ticket48228_test:  Bind as 
> {uid=user2,dc=example,dc=com,password}
> INFO:dirsrvtests.tests.tickets.ticket48228_test:  Bind as 
> {uid=user2,dc=example,dc=com,password0}
> INFO:dirsrvtests.tests.tickets.ticket48228_test:  Bind as 
> {uid=user2,dc=example,dc=com,password1}
> INFO:dirsrvtests.tests.tickets.ticket48228_test:  Bind as 
> {uid=user2,dc=example,dc=com,password2}
> INFO:dirsrvtests.tests.tickets.ticket48228_test:  Bind as 
> {uid=user2,dc=example,dc=com,password3}
> INFO:dirsrvtests.tests.tickets.ticket48228_test:  Bind as 
> {uid=user2,dc=example,dc=com,password4}
> 

[389-devel] Build failed in Jenkins: 389-DS-NIGHTLY #192

2017-03-28 Thread Jenkins
See 


--
[...truncated 4281 lines...]
suites/paged_results/paged_results_test.py::test_search_success[6-5] PASSED
suites/paged_results/paged_results_test.py::test_search_success[5-5] PASSED
suites/paged_results/paged_results_test.py::test_search_success[5-25] PASSED
suites/paged_results/paged_results_test.py::test_search_limits_fail[50-200-cn=config,cn=ldbm
 
database,cn=plugins,cn=config-nsslapd-idlistscanlimit-100-UNWILLING_TO_PERFORM] 
PASSED
suites/paged_results/paged_results_test.py::test_search_limits_fail[5-15-cn=config-nsslapd-timelimit-20-UNAVAILABLE_CRITICAL_EXTENSION]
 PASSED
suites/paged_results/paged_results_test.py::test_search_limits_fail[21-50-cn=config-nsslapd-sizelimit-20-SIZELIMIT_EXCEEDED]
 PASSED
suites/paged_results/paged_results_test.py::test_search_limits_fail[21-50-cn=config-nsslapd-pagedsizelimit-5-SIZELIMIT_EXCEEDED]
 PASSED
suites/paged_results/paged_results_test.py::test_search_limits_fail[5-50-cn=config,cn=ldbm
 database,cn=plugins,cn=config-nsslapd-lookthroughlimit-20-ADMINLIMIT_EXCEEDED] 
PASSED
suites/paged_results/paged_results_test.py::test_search_sort_success PASSED
suites/paged_results/paged_results_test.py::test_search_abandon PASSED
suites/paged_results/paged_results_test.py::test_search_with_timelimit PASSED
suites/paged_results/paged_results_test.py::test_search_dns_ip_aci[dns = 
"localhost.localdomain"] PASSED
suites/paged_results/paged_results_test.py::test_search_dns_ip_aci[ip = "::1" 
or ip = "127.0.0.1"] PASSED
suites/paged_results/paged_results_test.py::test_search_multiple_paging PASSED
suites/paged_results/paged_results_test.py::test_search_invalid_cookie[1000] 
PASSED
suites/paged_results/paged_results_test.py::test_search_invalid_cookie[-1] 
PASSED
suites/paged_results/paged_results_test.py::test_search_abandon_with_zero_size 
PASSED
suites/paged_results/paged_results_test.py::test_search_pagedsizelimit_success 
PASSED
suites/paged_results/paged_results_test.py::test_search_nspagedsizelimit[5-15-PASS]
 PASSED
suites/paged_results/paged_results_test.py::test_search_nspagedsizelimit[15-5-SIZELIMIT_EXCEEDED]
 PASSED
suites/paged_results/paged_results_test.py::test_search_paged_limits[conf_attr_values0-ADMINLIMIT_EXCEEDED]
 PASSED
suites/paged_results/paged_results_test.py::test_search_paged_limits[conf_attr_values1-PASS]
 PASSED
suites/paged_results/paged_results_test.py::test_search_paged_user_limits[conf_attr_values0-ADMINLIMIT_EXCEEDED]
 PASSED
suites/paged_results/paged_results_test.py::test_search_paged_user_limits[conf_attr_values1-PASS]
 PASSED
suites/paged_results/paged_results_test.py::test_ger_basic PASSED
suites/paged_results/paged_results_test.py::test_multi_suffix_search PASSED
suites/paged_results/paged_results_test.py::test_maxsimplepaged_per_conn_success[None]
 PASSED
suites/paged_results/paged_results_test.py::test_maxsimplepaged_per_conn_success[-1]
 PASSED
suites/paged_results/paged_results_test.py::test_maxsimplepaged_per_conn_success[1000]
 PASSED
suites/paged_results/paged_results_test.py::test_maxsimplepaged_per_conn_failure[0]
 PASSED
suites/paged_results/paged_results_test.py::test_maxsimplepaged_per_conn_failure[1]
 PASSED
suites/password/password_test.py::test_password_delete_specific_password PASSED
suites/password/pwdAdmin_test.py::test_pwdAdmin_init PASSED
suites/password/pwdAdmin_test.py::test_pwdAdmin PASSED
suites/password/pwdAdmin_test.py::test_pwdAdmin_config_validation PASSED
suites/password/pwdPolicy_attribute_test.py::test_change_pwd[on-off-UNWILLING_TO_PERFORM]
 PASSED
suites/password/pwdPolicy_attribute_test.py::test_change_pwd[off-off-UNWILLING_TO_PERFORM]
 PASSED
suites/password/pwdPolicy_attribute_test.py::test_change_pwd[off-on-None] PASSED
suites/password/pwdPolicy_attribute_test.py::test_change_pwd[on-on-None] PASSED
suites/password/pwdPolicy_attribute_test.py::test_pwd_min_age PASSED
suites/password/pwdPolicy_inherit_global_test.py::test_entry_has_no_restrictions[off-off]
 PASSED
suites/password/pwdPolicy_inherit_global_test.py::test_entry_has_no_restrictions[on-off]
 PASSED
suites/password/pwdPolicy_inherit_global_test.py::test_entry_has_no_restrictions[off-on]
 PASSED
suites/password/pwdPolicy_inherit_global_test.py::test_entry_has_restrictions[cn=config]
 PASSED
suites/password/pwdPolicy_inherit_global_test.py::test_entry_has_restrictions[cn="cn=nsPwPolicyEntry,ou=People,dc=example,dc=com",cn=nsPwPolicyContainer,ou=People,dc=example,dc=com]
 PASSED
suites/password/pwdPolicy_syntax_test.py::test_pwdPolicy_syntax PASSED
suites/password/pwdPolicy_warning_test.py::test_different_values[ ] PASSED
suites/password/pwdPolicy_warning_test.py::test_different_values[junk123] PASSED
suites/password/pwdPolicy_warning_test.py::test_different_values[on] PASSED
suites/password/pwdPolicy_warning_test.py::test_different_values[off] PASSED
suites/password/pwdPolicy_warning_test.py::test_expiry_time PASSED

[389-devel] Please review: 49196 cache sanity check log levels

2017-03-28 Thread William Brown
https://pagure.io/389-ds-base/issue/49196

https://pagure.io/389-ds-base/issue/raw/files/9db0753f133daf14dd4cff435e5b6f488306948a368d1256e229ede526219a35-0001-Ticket-49196-Autotune-generates-crit-messages.patch

-- 
Sincerely,

William Brown
Software Engineer
Red Hat, Australia/Brisbane



signature.asc
Description: This is a digitally signed message part
___
389-devel mailing list -- 389-devel@lists.fedoraproject.org
To unsubscribe send an email to 389-devel-le...@lists.fedoraproject.org


[389-devel] please review: Issue 49039 - password min age should be ignored if password must be reset

2017-03-28 Thread Mark Reynolds
https://pagure.io/389-ds-base/issue/49039

https://pagure.io/389-ds-base/issue/raw/files/3a1577378989e434ec0c52110cd7fff241aee6bd1dadf16d4c3559f3d9052c6e-0001-Issue-49039-password-min-age-should-be-ignored-if-pa.patch
___
389-devel mailing list -- 389-devel@lists.fedoraproject.org
To unsubscribe send an email to 389-devel-le...@lists.fedoraproject.org