Bug 1183820
Summary: | Windows Sync accidentally cleared raw_entry | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | Noriko Hosoi <nhosoi> |
Component: | 389-ds-base | Assignee: | Noriko Hosoi <nhosoi> |
Status: | CLOSED ERRATA | QA Contact: | Viktor Ashirov <vashirov> |
Severity: | medium | Docs Contact: | |
Priority: | high | ||
Version: | 6.0 | CC: | jgalipea, nhosoi, nkinder, rmeggins, vashirov |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | 389-ds-base-1.2.11.15-51.el6 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2015-07-22 06:36:51 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Noriko Hosoi
2015-01-19 22:20:08 UTC
Please add verification steps. (In reply to Sankar Ramalingam from comment #1) > Please add verification steps. Test cases run by Viktor: https://bugzilla.redhat.com/show_bug.cgi?id=1118060#c5 [2.1] Disable account on DS: $ sudo ns-inactivate.pl -Z M1 -D "cn=Directory Manager" -w Secret123 -I uid=posixusr0,ou=dswinsync,dc=example,dc=com ldap_add: Already exists (68) ldap_add: Already exists (68) ldap_add: Already exists (68) ldap_add: Already exists (68) ldap_add: Already exists (68) uid=posixusr0,ou=dswinsync,dc=example,dc=com inactivated. On AD it becomes disabled: $ ldapsearch -o ldif-wrap=no -LLL -D "cn=Administrator,cn=users,dc=adrelm,dc=com" -w Secret123 -H ldap://win2k8.adrelm.com -b dc=adrelm,dc=com cn=posixusr0 userAccountControl dn: CN=posixusr0,OU=adsync,DC=adrelm,DC=com userAccountControl: 514 Enable account on DS: $ sudo ns-activate.pl -Z M1 -D "cn=Directory Manager" -w Secret123 -I uid=posixusr0,ou=dswinsync,dc=example,dc=com uid=posixusr0,ou=dswinsync,dc=example,dc=com activated. On AD it's still disabled: $ ldapsearch -o ldif-wrap=no -LLL -D "cn=Administrator,cn=users,dc=adrelm,dc=com" -w Secret123 -H ldap://win2k8.adrelm.com -b dc=adrelm,dc=com cn=posixusr0 userAccountControl dn: CN=posixusr0,OU=adsync,DC=adrelm,DC=com userAccountControl: 514 And after sync, on DS: $ sudo ns-accountstatus.pl -Z M1 -D "cn=Directory Manager" -w Secret123 -I uid=posixusr1,ou=dswinsync,dc=example,dc=com uid=posixusr1,ou=dswinsync,dc=example,dc=com inactivated (probably directly). In other words, if account was inactivated on DS, it cannot be reactivated again from DS. <== this issue should have been fixed. [2.2] Disable account on AD: Before change: $ sudo ns-accountstatus.pl -Z M1 -D "cn=Directory Manager" -w Secret123 -I uid=posixusr0,ou=dswinsync,dc=example,dc=com uid=posixusr0,ou=dswinsync,dc=example,dc=com activated. Disable account on AD: $ ldapmodify -D "cn=Administrator,cn=users,dc=adrelm,dc=com" -w Secret123 -H ldap://win2k8.adrelm.com << EOF dn: CN=posixusr0,OU=adsync,DC=adrelm,DC=com changetype: modify replace: userAccountControl userAccountControl: 514 EOF modifying entry "CN=posixusr0,OU=adsync,DC=adrelm,DC=com" After sync, on DS: $ sudo ns-accountstatus.pl -Z M1 -D "cn=Directory Manager" -w Secret123 -I uid=posixusr0,ou=dswinsync,dc=example,dc=com uid=posixusr0,ou=dswinsync,dc=example,dc=com inactivated (probably directly). Enable account on AD: $ ldapmodify -D "cn=Administrator,cn=users,dc=adrelm,dc=com" -w Secret123 -H ldap://win2k8.adrelm.com << EOF dn: CN=posixusr0,OU=adsync,DC=adrelm,DC=com changetype: modify replace: userAccountControl userAccountControl: 512 EOF After sync, on DS: $ sudo ns-accountstatus.pl -Z M1 -D "cn=Directory Manager" -w Secret123 -I uid=posixusr0,ou=dswinsync,dc=example,dc=com uid=posixusr0,ou=dswinsync,dc=example,dc=com activated. Build tested: 389-ds-base-1.2.11.15-53.el6.x86_64 [2.1] Disable account on DS: # ./ns-inactivate.pl -D "cn=Directory Manager" -w Secret123 -I uid=posixusr0,ou=dswinsync,dc=example,dc=com uid=posixusr0,ou=dswinsync,dc=example,dc=com inactivated. On AD it becomes disabled: # ldapsearch -o ldif-wrap=no -LLL -D "cn=Administrator,cn=users,dc=adrelm,dc=com" -w Secret123 -H ldap://win2k8.adrelm.com -b dc=adrelm,dc=com cn=posixusr0 userAccountControl dn: CN=posixusr0,CN=Users,DC=adrelm,DC=com userAccountControl: 546 Enable account on DS: # ./ns-activate.pl -D "cn=Directory Manager" -w Secret123 -I uid=posixusr0,ou=dswinsync,dc=example,dc=com uid=posixusr0,ou=dswinsync,dc=example,dc=com activated. On AD it's also enabled: # ldapsearch -o ldif-wrap=no -LLL -D "cn=Administrator,cn=users,dc=adrelm,dc=com" -w Secret123 -H ldap://win2k8.adrelm.com -b dc=adrelm,dc=com cn=posixusr0 userAccountControl dn: CN=posixusr0,CN=Users,DC=adrelm,DC=com userAccountControl: 544 And after sync, on DS: # ./ns-accountstatus.pl -D "cn=Directory Manager" -w Secret123 -I uid=posixusr0,ou=dswinsync,dc=example,dc=com uid=posixusr0,ou=dswinsync,dc=example,dc=com activated. Issue has been fixed. [2.2] Disable account on AD: Before change: # ./ns-accountstatus.pl -D "cn=Directory Manager" -w Secret123 -I uid=posixusr0,ou=dswinsync,dc=example,dc=com uid=posixusr0,ou=dswinsync,dc=example,dc=com activated. Disable account on AD: # ldapmodify -D "cn=Administrator,cn=users,dc=adrelm,dc=com" -w Secret123 -H ldap://win2k8.adrelm.com << EOF dn: CN=posixusr0,CN=Users,DC=adrelm,DC=com changetype: modify replace: userAccountControl userAccountControl: 514 EOF modifying entry "CN=posixusr0,CN=Users,DC=adrelm,DC=com" After sync, on DS: # ./ns-accountstatus.pl -D "cn=Directory Manager" -w Secret123 -I uid=posixusr0,ou=dswinsync,dc=example,dc=com uid=posixusr0,ou=dswinsync,dc=example,dc=com inactivated (probably directly). Enable account on AD: # ldapmodify -D "cn=Administrator,cn=users,dc=adrelm,dc=com" -w Secret123 -H ldap://win2k8.adrelm.com << EOF dn: CN=posixusr0,CN=Users,DC=adrelm,DC=com changetype: modify replace: userAccountControl userAccountControl: 512 EOF modifying entry "CN=posixusr0,CN=Users,DC=adrelm,DC=com" After sync, on DS: # ./ns-accountstatus.pl -D "cn=Directory Manager" -w Secret123 -I uid=posixusr0,ou=dswinsync,dc=example,dc=com uid=posixusr0,ou=dswinsync,dc=example,dc=com activated. Issue in [2.1] has been fixed, marking as VERIFIED. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHBA-2015-1326.html |