RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1206309 - winsync sets AccountUserControl in AD to 544
Summary: winsync sets AccountUserControl in AD to 544
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: 389-ds-base
Version: 7.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Noriko Hosoi
QA Contact: Viktor Ashirov
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-03-26 18:14 UTC by Noriko Hosoi
Modified: 2020-09-13 20:58 UTC (History)
4 users (show)

Fixed In Version: 389-ds-base-1.3.4.0-1.el7
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-11-19 11:43:46 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github 389ds 389-ds-base issues 1057 0 None None None 2020-09-13 20:58:37 UTC
Red Hat Product Errata RHBA-2015:2351 0 normal SHIPPED_LIVE 389-ds-base bug fix and enhancement update 2015-11-19 10:28:44 UTC

Description Noriko Hosoi 2015-03-26 18:14:13 UTC
This bug is created as a clone of upstream ticket:
https://fedorahosted.org/389/ticket/47723

Hi,

We notice that when a user is synchronized from 389 Directory to Active Directory the AccountUserControl value was 544 (mean NORMAL ACCOUNT + PASSWD_NOTREQD http://support.microsoft.com/kb/305144/en-us).

This isn't secure (allow user to set empty password). Letting the administrator set a default value for this attribute in synchronization parameters would be nice.

Thanks.

Comment 2 Viktor Ashirov 2015-08-31 21:22:03 UTC
Hi Noriko,

>This isn't secure (allow user to set empty password). Letting the administrator set a default value for this attribute in synchronization parameters would be nice.

In the patch I didn't find any info about default value that can be set by admin.
As far as I understand, we now fallback to 512 if password is set and 544 if not, correct?

Thanks!

Comment 3 Noriko Hosoi 2015-08-31 22:26:07 UTC
(In reply to Viktor Ashirov from comment #2)
> Hi Noriko,
> 
> >This isn't secure (allow user to set empty password). Letting the administrator set a default value for this attribute in synchronization parameters would be nice.
> 
> In the patch I didn't find any info about default value that can be set by
> admin.
> As far as I understand, we now fallback to 512 if password is set and 544 if
> not, correct?

Yes, that's correct.  Thank you for understanding the cryptic description...

Comment 4 Sankar Ramalingam 2015-09-18 16:35:36 UTC
For password not set user... the userAccountControl set to 544.

[root@dhcp35-196 MMR_WINSYNC]# /usr/lib64/mozldap/ldapsearch -Z -P /etc/dirsrv/slapd-M1/cert8.db -h win2012r2.adrelm.com -p 636 -D "cn=SyncManager,cn=Users,dc=adrelm,dc=com" -w Secret123 -b "cn=dsdsdsX,ou=adpasssync,dc=adrelm,dc=com" objectClass=* "userAccountControl"
version: 1
dn: CN=dsdsdsX,OU=adpasssync,DC=adrelm,DC=com
userAccountControl: 544


For the password set to user, the userAccountControl set to 512:

[root@dhcp35-196 MMR_WINSYNC]# /usr/lib64/mozldap/ldapsearch -Z -P /etc/dirsrv/slapd-M1/cert8.db -h win2012r2.adrelm.com -p 636 -D "cn=SyncManager,cn=Users,dc=adrelm,dc=com" -w Secret123 -b "cn=dsdsds9,ou=adpasssync,dc=adrelm,dc=com" objectClass=* "userAccountControl"
version: 1
dn: CN=dsdsds9,OU=adpasssync,DC=adrelm,DC=com
userAccountControl: 512


Hence, marking the bug as Verified.

Build tested:
[root@dhcp35-196 MMR_WINSYNC]# rpm -qa |grep -i 389-ds
389-ds-base-libs-1.3.4.0-15.el7.x86_64
389-ds-base-1.3.4.0-15.el7.x86_64

Comment 5 errata-xmlrpc 2015-11-19 11:43:46 UTC
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-2351.html


Note You need to log in before you can comment on or make changes to this bug.