You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by Merve Temizer <me...@gmail.com> on 2012/09/10 10:33:56 UTC
Custom Object Class
For the importing below ldif file
dn: cn=schema
changetype: modify
add: attributeTypes
attributeTypes: ( 2.25.128424792425578037463837247958458780603.32
NAME 'orgName'
EQUALITY caseIgnoreMatch
SUBSTR caseIgnoreSubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{1024} )
attributeTypes: ( 2.25.128424792425578037463837247958458780603.33
NAME 'orgPhone'
EQUALITY caseIgnoreMatch
SUBSTR caseIgnoreSubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{1024} )
attributeTypes: ( 2.25.128424792425578037463837247958458780603.34
NAME 'orgFax'
EQUALITY caseIgnoreMatch
SUBSTR caseIgnoreSubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{1024} )
attributeTypes: ( 2.25.128424792425578037463837247958458780603.35
NAME 'orgContactName'
EQUALITY caseIgnoreMatch
SUBSTR caseIgnoreSubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{1024} )
attributeTypes: ( 2.25.128424792425578037463837247958458780603.36
NAME 'orgCountry'
EQUALITY caseIgnoreMatch
SUBSTR caseIgnoreSubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{1024} )
attributeTypes: ( 2.25.128424792425578037463837247958458780603.37
NAME 'orgCity'
EQUALITY caseIgnoreMatch
SUBSTR caseIgnoreSubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{1024} )
attributeTypes: ( 2.25.128424792425578037463837247958458780603.38
NAME 'orgAddress'
EQUALITY caseIgnoreMatch
SUBSTR caseIgnoreSubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{1024} )
-
add: objectClasses
objectClasses: ( 2.25.128424792425578037463837247958458780603.39
NAME 'myOrganization'
DESC 'myOrganization'
SUP organizationalUnit
STRUCTURAL
MAY ( orgName $ orgPhone $ orgFax $ orgContactName $ orgCountry
orgCity $ orgAddress)
)
I am getting the error for all the attribute types
[11:31:26] ERROR
[org.apache.directory.shared.ldap.model.entry.DefaultEntry] - ERR_04269
ATTRIBUTE_TYPE for OID x-read-only does not exist!
[11:31:26] ERROR
[org.apache.directory.shared.ldap.model.entry.DefaultEntry] - ERR_04269
ATTRIBUTE_TYPE for OID x-enabled does not exist!
Also i can not see myOrganization after server restart and refresh the
objectClass select list.
Re: Custom Object Class
Posted by Merve Temizer <me...@gmail.com>.
Thanks in advance. The problem was that you stated.
Now one more question how can i remove imported ldif and attributes and
classes which is imported while importing ldif?
2012/9/11 Emmanuel Lécharny <el...@gmail.com>
> Btw, this thread should be sent on the users mailing list, not on the dev
> mailing list. Thanks.
>
> See comments on line.
>
> Le 9/11/12 12:21 PM, Merve Temizer a écrit :
>
> I have checked out ApacheDS from svn a week ago.
>> When i try to import same file again it gives non unique id exception.
>> I think it is because that it can save attributes somewhere but not the
>> class.
>> I am going to try without newline.
>>
>
> There is also a bug in the ObectClass : a missing $ between orgCountry and
> orgCity. Plus you must have a space on any starting line. The correct file
> should be :
>
>
> dn: cn=schema
> changetype: modify
> add: attributeTypes
> attributeTypes: ( 2.25.**128424792425578037463837247958**458780603.32
> NAME 'orgName'
> EQUALITY caseIgnoreMatch
> SUBSTR caseIgnoreSubstringsMatch
> SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{**1024} )
> attributeTypes: ( 2.25.**128424792425578037463837247958**458780603.33
> NAME 'orgPhone'
> EQUALITY caseIgnoreMatch
> SUBSTR caseIgnoreSubstringsMatch
> SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{**1024} )
> attributeTypes: ( 2.25.**128424792425578037463837247958**458780603.34
> NAME 'orgFax'
> EQUALITY caseIgnoreMatch
> SUBSTR caseIgnoreSubstringsMatch
> SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{**1024} )
> attributeTypes: ( 2.25.**128424792425578037463837247958**458780603.35
> NAME 'orgContactName'
> EQUALITY caseIgnoreMatch
> SUBSTR caseIgnoreSubstringsMatch
> SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{**1024} )
> attributeTypes: ( 2.25.**128424792425578037463837247958**458780603.36
> NAME 'orgCountry'
> EQUALITY caseIgnoreMatch
> SUBSTR caseIgnoreSubstringsMatch
> SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{**1024} )
> attributeTypes: ( 2.25.**128424792425578037463837247958**458780603.37
> NAME 'orgCity'
> EQUALITY caseIgnoreMatch
> SUBSTR caseIgnoreSubstringsMatch
> SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{**1024} )
> attributeTypes: ( 2.25.**128424792425578037463837247958**458780603.38
> NAME 'orgAddress'
> EQUALITY caseIgnoreMatch
> SUBSTR caseIgnoreSubstringsMatch
> SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{**1024} )
> -
> add: objectClasses
> objectClasses: ( 2.25.**128424792425578037463837247958**458780603.39
> NAME 'myOrganization'
> DESC 'myOrganization'
> SUP organizationalUnit
> STRUCTURAL
> MAY ( orgName $ orgPhone $ orgFax $ orgContactName $ orgCountry
> $ orgCity $ orgAddress)
>
> )
>
>
>
> --
> Regards,
> Cordialement,
> Emmanuel Lécharny
> www.iktek.com
>
>
Re: Custom Object Class
Posted by Emmanuel Lécharny <el...@gmail.com>.
Btw, this thread should be sent on the users mailing list, not on the
dev mailing list. Thanks.
See comments on line.
Le 9/11/12 12:21 PM, Merve Temizer a écrit :
> I have checked out ApacheDS from svn a week ago.
> When i try to import same file again it gives non unique id exception.
> I think it is because that it can save attributes somewhere but not the
> class.
> I am going to try without newline.
There is also a bug in the ObectClass : a missing $ between orgCountry
and orgCity. Plus you must have a space on any starting line. The
correct file should be :
dn: cn=schema
changetype: modify
add: attributeTypes
attributeTypes: ( 2.25.128424792425578037463837247958458780603.32
NAME 'orgName'
EQUALITY caseIgnoreMatch
SUBSTR caseIgnoreSubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{1024} )
attributeTypes: ( 2.25.128424792425578037463837247958458780603.33
NAME 'orgPhone'
EQUALITY caseIgnoreMatch
SUBSTR caseIgnoreSubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{1024} )
attributeTypes: ( 2.25.128424792425578037463837247958458780603.34
NAME 'orgFax'
EQUALITY caseIgnoreMatch
SUBSTR caseIgnoreSubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{1024} )
attributeTypes: ( 2.25.128424792425578037463837247958458780603.35
NAME 'orgContactName'
EQUALITY caseIgnoreMatch
SUBSTR caseIgnoreSubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{1024} )
attributeTypes: ( 2.25.128424792425578037463837247958458780603.36
NAME 'orgCountry'
EQUALITY caseIgnoreMatch
SUBSTR caseIgnoreSubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{1024} )
attributeTypes: ( 2.25.128424792425578037463837247958458780603.37
NAME 'orgCity'
EQUALITY caseIgnoreMatch
SUBSTR caseIgnoreSubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{1024} )
attributeTypes: ( 2.25.128424792425578037463837247958458780603.38
NAME 'orgAddress'
EQUALITY caseIgnoreMatch
SUBSTR caseIgnoreSubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{1024} )
-
add: objectClasses
objectClasses: ( 2.25.128424792425578037463837247958458780603.39
NAME 'myOrganization'
DESC 'myOrganization'
SUP organizationalUnit
STRUCTURAL
MAY ( orgName $ orgPhone $ orgFax $ orgContactName $ orgCountry
$ orgCity $ orgAddress)
)
--
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com
Re: Custom Object Class
Posted by Merve Temizer <me...@gmail.com>.
I have checked out ApacheDS from svn a week ago.
When i try to import same file again it gives non unique id exception.
I think it is because that it can save attributes somewhere but not the
class.
I am going to try without newline.
2012/9/11 Emmanuel Lécharny <el...@gmail.com>
> Le 9/11/12 11:54 AM, Merve Temizer a écrit :
>
> Have a good holiday then :)
>>
> Sadly, it's behind me :/
>
> FYI, I can import the LDIF without any problem, except that the
> ObjectClass is not imported, because there is a new line before the "-"
> char (there should be no new line).
>
> Which LDAP server are you using ?
>
>
>
> --
> Regards,
> Cordialement,
> Emmanuel Lécharny
> www.iktek.com
>
>
Re: Custom Object Class
Posted by Emmanuel Lécharny <el...@gmail.com>.
Le 9/11/12 11:54 AM, Merve Temizer a écrit :
> Have a good holiday then :)
Sadly, it's behind me :/
FYI, I can import the LDIF without any problem, except that the
ObjectClass is not imported, because there is a new line before the "-"
char (there should be no new line).
Which LDAP server are you using ?
--
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com
Re: Custom Object Class
Posted by Merve Temizer <me...@gmail.com>.
Have a good holiday then :)
2012/9/11 Emmanuel Lécharny <el...@gmail.com>
> Le 9/11/12 9:32 AM, Merve Temizer a écrit :
>
> Is it something wrong with my question?
>> You used to answer in 24 hours usually.
>>
> Except when we are coming back from hollidays, and have to deal with real
> life and office things.
>
> Keep in mind this is a volunteer organization, we cope with issues as soon
> as we find time...
>
> Be patient :)
>
> --
> Regards,
> Cordialement,
> Emmanuel Lécharny
> www.iktek.com
>
>
Re: Custom Object Class
Posted by Emmanuel Lécharny <el...@gmail.com>.
Le 9/11/12 9:32 AM, Merve Temizer a écrit :
> Is it something wrong with my question?
> You used to answer in 24 hours usually.
Except when we are coming back from hollidays, and have to deal with
real life and office things.
Keep in mind this is a volunteer organization, we cope with issues as
soon as we find time...
Be patient :)
--
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com
Re: Custom Object Class
Posted by Merve Temizer <me...@gmail.com>.
Is it something wrong with my question?
You used to answer in 24 hours usually.
Please tell me if sth is wrong with my usage and what is my mistake.
Thanks in advance.
2012/9/10 Merve Temizer <me...@gmail.com>
> For the importing below ldif file
>
> dn: cn=schema
> changetype: modify
> add: attributeTypes
> attributeTypes: ( 2.25.128424792425578037463837247958458780603.32
> NAME 'orgName'
> EQUALITY caseIgnoreMatch
> SUBSTR caseIgnoreSubstringsMatch
> SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{1024} )
> attributeTypes: ( 2.25.128424792425578037463837247958458780603.33
> NAME 'orgPhone'
> EQUALITY caseIgnoreMatch
> SUBSTR caseIgnoreSubstringsMatch
> SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{1024} )
> attributeTypes: ( 2.25.128424792425578037463837247958458780603.34
> NAME 'orgFax'
> EQUALITY caseIgnoreMatch
> SUBSTR caseIgnoreSubstringsMatch
> SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{1024} )
> attributeTypes: ( 2.25.128424792425578037463837247958458780603.35
> NAME 'orgContactName'
> EQUALITY caseIgnoreMatch
> SUBSTR caseIgnoreSubstringsMatch
> SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{1024} )
> attributeTypes: ( 2.25.128424792425578037463837247958458780603.36
> NAME 'orgCountry'
> EQUALITY caseIgnoreMatch
> SUBSTR caseIgnoreSubstringsMatch
> SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{1024} )
> attributeTypes: ( 2.25.128424792425578037463837247958458780603.37
> NAME 'orgCity'
> EQUALITY caseIgnoreMatch
> SUBSTR caseIgnoreSubstringsMatch
> SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{1024} )
> attributeTypes: ( 2.25.128424792425578037463837247958458780603.38
> NAME 'orgAddress'
> EQUALITY caseIgnoreMatch
> SUBSTR caseIgnoreSubstringsMatch
> SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{1024} )
>
> -
> add: objectClasses
> objectClasses: ( 2.25.128424792425578037463837247958458780603.39
> NAME 'myOrganization'
> DESC 'myOrganization'
> SUP organizationalUnit
> STRUCTURAL
> MAY ( orgName $ orgPhone $ orgFax $ orgContactName $ orgCountry
> orgCity $ orgAddress)
> )
>
> I am getting the error for all the attribute types
>
> [11:31:26] ERROR
> [org.apache.directory.shared.ldap.model.entry.DefaultEntry] - ERR_04269
> ATTRIBUTE_TYPE for OID x-read-only does not exist!
> [11:31:26] ERROR
> [org.apache.directory.shared.ldap.model.entry.DefaultEntry] - ERR_04269
> ATTRIBUTE_TYPE for OID x-enabled does not exist!
>
>
> Also i can not see myOrganization after server restart and refresh the
> objectClass select list.
>
>