Bug 661792

Summary: Valid managed entry config rejected
Product: [Retired] 389 Reporter: Nathan Kinder <nkinder>
Component: Server - PluginsAssignee: Nathan Kinder <nkinder>
Status: CLOSED CURRENTRELEASE QA Contact: Viktor Ashirov <vashirov>
Severity: medium Docs Contact:
Priority: high    
Version: 1.2.7CC: jgalipea, sramling
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-12-07 17:08:22 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:
Bug Depends On:    
Bug Blocks: 576869, 639035    
Attachments:
Description Flags
Patch nkinder: review?, rmeggins: review+

Description Nathan Kinder 2010-12-09 16:36:29 UTC
Adding a valid managed entry config is sometimes rejected with an error 53 (unwilling to perform).  As an example, adding the following template and config entry can trigger this problem:

dn: cn=UPG Template,dc=example,dc=com
objectclass: mepTemplateEntry
cn: UPG Template
mepRDNAttr: cn
mepStaticAttr: objectclass: posixGroup
mepMappedAttr: cn: $uid
mepMappedAttr: gidNumber: $gidNumber
mepMappedAttr: description: User private group for $uid

dn: cn=UPG Definition1,cn=Managed Entries, cn=plugins,cn=config
objectclass: extensibleObject
cn: UPG Definition1
originScope: dc=example,dc=com
originFilter: objectclass=posixAccount
managedBase: dc=example,dc=com
managedTemplate: cn=UPG Template, dc=example,dc=com

When the definition entry is added, the following errors are sometimes seen in the errors log:

[09/Dec/2010:08:14:33 -0800] managed-entries-plugin - mep_create_managed_entry: Error parsing mapped attribute in template "cn=UPG Template, dc=example,dc=com".
[09/Dec/2010:08:14:33 -0800] managed-entries-plugin - mep_parse_config_entry: Unable to create a test managed entry from managed entry template "cn=UPG Template, dc=example,dc=com".  Please check the template entry for errors.

Comment 1 Nathan Kinder 2010-12-09 16:43:15 UTC
Created attachment 467795 [details]
Patch

Comment 2 Nathan Kinder 2010-12-09 17:31:06 UTC
Pushed to master.  Thanks to Rich for the review!

Counting objects: 13, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (7/7), done.
Writing objects: 100% (7/7), 1.00 KiB, done.
Total 7 (delta 4), reused 0 (delta 0)
To ssh://git.fedorahosted.org/git/389/ds.git
   f5dc726..3b68aa6  master -> master

Comment 4 Sankar Ramalingam 2010-12-10 18:54:12 UTC
This fix is verified in the nightly acceptance.
 managedEntry startup elapse time : 00:06:42
    managedEntry startup Tests PASS      : 100% (1/1)