go to  ForumEasy.com   
LdapPro  
 
 
   Home  |  MyForum  |  FAQ  |  Archive    You are not logged in. [Login] or [Register]  
Forum Home » Native LDAP Servers -- AD, OpenLdap, etc. » Schema-Compliant Issues -- OpenDJ
Email To Friend  |   Set Alert To This Topic Rewarding Points Availabe: 0 (What's this) New Topic  |   Post Reply
Author Topic: Schema-Compliant Issues -- OpenDJ
eLDAP
member
offline   
 
posts: 107
joined: 08/02/2006
from: Austin, TX
  posted on: 10/20/2011 03:35:28 PM    Edit  |   Quote  |   Report 
Schema-Compliant Issues -- OpenDJ
Even with the "schema-check" being set as "false", OpenDJ does not allow the followings:

1) To modify/add NO-USER-MODIFICATION attributes
"Entry xxx cannot be added because it
includes attribute xxx which is defined as NO-USER-MODIFICATION in the
server schema"


2) To add not-defined or obsolete objectclasses
"Object class xxx cannot be added to entry xxx because that class is not defined in the Directory Server schema"

3) To modify/add encoded passwords
"Pre-encoded passwords are not allowed for the password attribute xxx"

 Profile | Reply Points Earned: 0
eLDAP
member
offline   
 
posts: 107
joined: 08/02/2006
from: Austin, TX
  posted on: 11/15/2011 06:08:47 PM    Edit  |   Quote  |   Report 
For encoded password issue, OpenDS cannot verify that pre-encrypted password matches the password policy and therefore rejects them by default, with the following error : LDAP: error code 53 - Pre-encoded passwords are not allowed for the password attribute userPassword.

To allow pre-encrypted passwords, the default password policy settings must be changed, and the advanced property "allow-pre-encoded-passwords" set to "true". Use "dsconfig --advanced" to see the advanced properties or open policy cn=Default Password Policy,cn=Password Policies,cn=config to change it.
 Profile | Reply Points Earned: 0
eLDAP
member
offline   
 
posts: 107
joined: 08/02/2006
from: Austin, TX
  posted on: 03/07/2012 02:49:46 PM    Edit  |   Quote  |   Report 
Once 'Schema Checking' is disabled, SunOne DS7 dose not allow to modify NO-USER-MODIFICATION attribute like 'modifytimestamp' either.
dn: uid=test,ou=people,dc=exmaple
changetype: modify
replace: modifytimestamp
modifytimestamp: 20120101180000Z


Returns with 'Constraint violation' error.

But SunOne DS7 allow to add entry with NO-USER-MODIFICATION attribute like:

dn: uid=test,ou=people,dc=exmaple
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
uid: test
cn: test test
modifytimestamp: 20120101180000Z


Note: the added entry has 'modifytimestamp' overridden with its system timestamp value.
 Profile | Reply Points Earned: 0
eLDAP
member
offline   
 
posts: 107
joined: 08/02/2006
from: Austin, TX
  posted on: 07/12/2012 09:21:24 PM    Edit  |   Quote  |   Report 
The SYNTAX within AttributeTypes do not like the char (')
While extending openDJ's schema, for example, adding into schema a new attribute 'myAttr' with the following:

dn: cn=schema
AttributeTypes: 'myAttr' with value: ( myAttr-oid NAME 'myAttr' DESC 
 'Standard Attribute' SYNTAX '1.3.6.1.4.1.1466.115.121.1.15' )


you are going to get error similar like this:

javax.naming.directory.InvalidAttributeValueException: [LDAP: error code 21 - An error occurred while attempting to decode the attribute type "( myAttr-oid NAME 'myAttr' DESC 'Standard Attribute' SYNTAX '1.3.6.1.4.1.1466.115.121.1.15' )": The provided value "( myAttr-oid NAME 'myAttr' DESC 'Standard Attribute' SYNTAX '1.3.6.1.4.1.1466.115.121.1.15' )" could not be parsed as an attribute type description because the numeric OID contained an illegal character ' at position 66]; remaining name 'cn=schema'; Operations error


It claims that the numerical OID might be the cause, but the root cause is the syntax value. If the following is used instead,

dn: cn=schema
AttributeTypes: 'myAttr' with value: ( myAttr-oid NAME 'myAttr' DESC 
 'Standard Attribute' SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 )


there is no error thrown.

 Profile | Reply Points Earned: 0

 
Powered by ForumEasy © 2003-2005, All Rights Reserved. | Privacy Policy | Terms of Use
 
Get your own forum today. It's easy and free.