directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pierre-Arnaud Marcelot ...@marcelot.net>
Subject Re: Custom Attribute
Date Fri, 07 Sep 2012 13:06:23 GMT

On 7 sept. 2012, at 15:03, Merve Temizer <mervet2009@gmail.com> wrote:

> Hi,
> Thanks for reply.
> 
> I checked out 2 months ago, from svn co http://svn.apache.org/repos/asf/directory/apacheds/trunk-with-dependencies
> 
> Do you advise to check it out again from same url, or something else?

Yes.

Or just download the latest milestone release here:
http://directory.apache.org/apacheds/2.0/downloads.html

Regards,
Pierre-Arnaud

> Thanks.
> 
> 2012/9/7 Pierre-Arnaud Marcelot <pa@marcelot.net>
> Hi,
> 
> What version of ApacheDS are you using?
> 
> I successfully imported your LDIF with the latest version:
>> #!RESULT OK
>> #!CONNECTION ldap://localhost:10389
>> #!DATE 2012-09-07T12:34:10.932
>> dn: cn=schema
>> changetype: modify
>> add: attributeTypes
>> attributeTypes: ( 2.25.128424792425578037463837247958458780603.1       NAME 'u
>>  serEmail'       EQUALITY caseIgnoreMatch       SUBSTR caseIgnoreSubstringsMat
>>  ch       SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 )
>> attributeTypes: ( 2.25.128424792425578037463837247958458780603.2       NAME 'u
>>  serOrganizationDn'       EQUALITY caseIgnoreMatch       SUBSTR caseIgnoreSubs
>>  tringsMatch       SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{1024} )
>> attributeTypes: ( 2.25.128424792425578037463837247958458780603.3       NAME 'u
>>  serSuborganizationDn'       EQUALITY caseIgnoreMatch       SUBSTR caseIgnoreS
>>  ubstringsMatch       SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{1024} )
>> attributeTypes: ( 2.25.128424792425578037463837247958458780603.4       NAME 'u
>>  serMobilePhone'       EQUALITY caseIgnoreMatch       SUBSTR caseIgnoreSubstri
>>  ngsMatch       SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{1024} )
>> attributeTypes: ( 2.25.128424792425578037463837247958458780603.5       NAME 'u
>>  serNotifEmail'       EQUALITY caseIgnoreMatch       SUBSTR caseIgnoreSubstrin
>>  gsMatch       SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{1024} )
>> attributeTypes: ( 2.25.128424792425578037463837247958458780603.6       NAME 'u
>>  serNotifPhone'       EQUALITY caseIgnoreMatch       SUBSTR caseIgnoreSubstrin
>>  gsMatch       SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{1024} )
>> attributeTypes: ( 2.25.128424792425578037463837247958458780603.7       NAME 'u
>>  serStatusOption'       EQUALITY caseIgnoreMatch       SUBSTR caseIgnoreSubstr
>>  ingsMatch       SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{1024} )
>> attributeTypes: ( 2.25.128424792425578037463837247958458780603.8       NAME 'u
>>  serAccountOption'       EQUALITY caseIgnoreMatch       SUBSTR caseIgnoreSubst
>>  ringsMatch       SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{1024} )
>> attributeTypes: ( 2.25.128424792425578037463837247958458780603.9       NAME 'u
>>  serEmailQuota'       EQUALITY caseIgnoreMatch       SUBSTR caseIgnoreSubstrin
>>  gsMatch       SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{1024} )
>> attributeTypes: ( 2.25.128424792425578037463837247958458780603.10       NAME '
>>  userStorageQuota'       EQUALITY caseIgnoreMatch       SUBSTR caseIgnoreSubst
>>  ringsMatch       SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{1024} )
>> attributeTypes: ( 2.25.128424792425578037463837247958458780603.11       NAME '
>>  userLastSignIn'       EQUALITY caseIgnoreMatch       SUBSTR caseIgnoreSubstri
>>  ngsMatch       SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{1024} )
>> attributeTypes: ( 2.25.128424792425578037463837247958458780603.12       NAME '
>>  userPhone'       EQUALITY caseIgnoreMatch       SUBSTR caseIgnoreSubstringsMa
>>  tch       SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{1024} )
>> attributeTypes: ( 2.25.128424792425578037463837247958458780603.13       NAME '
>>  userCertificateType'       EQUALITY caseIgnoreMatch       SUBSTR caseIgnoreSu
>>  bstringsMatch       SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{1024} )
>> attributeTypes: ( 2.25.128424792425578037463837247958458780603.14       NAME '
>>  userAddress'       EQUALITY caseIgnoreMatch       SUBSTR caseIgnoreSubstrings
>>  Match       SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{1024} )
>> -
>> add: objectClasses
>> objectClasses: ( 2.25.128424792425578037463837247958458780603.15   NAME 'myUse
>>  r'   DESC 'myUser'   SUP inetOrgPerson   STRUCTURAL   MAY  ( userEmail $ user
>>  OrganizationDn $ userSuborganizationDn $ userMobilePhone $ userNotifEmail $ u
>>  serNotifPhone $ userStatusOption $ userAccountOption $ userEmailQuota $ userS
>>  torageQuota $ userLastSignIn $ userPhone $ userCertificateType $ userAddress)
>>  )
>> -
> 
> Regards,
> Pierre-Arnaud
> 
> On 7 sept. 2012, at 11:31, Merve Temizer <mervet2009@gmail.com> wrote:
> 
>> Hello,
>> I have tried to add a custom objectClass and custom attributes of it.
>> So i wrote an ldif file 
>> 
>> dn: cn=schema
>> changetype: modify
>> add: attributeTypes
>> attributeTypes: ( 2.25.128424792425578037463837247958458780603.1
>>         NAME 'userEmail'
>>         EQUALITY caseIgnoreMatch
>>         SUBSTR caseIgnoreSubstringsMatch
>>         SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 )
>> attributeTypes: ( 2.25.128424792425578037463837247958458780603.2
>>         NAME 'userOrganizationDn'
>>         EQUALITY caseIgnoreMatch
>>         SUBSTR caseIgnoreSubstringsMatch
>>         SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{1024} )
>> attributeTypes: ( 2.25.128424792425578037463837247958458780603.3
>>         NAME 'userSuborganizationDn'
>>         EQUALITY caseIgnoreMatch
>>         SUBSTR caseIgnoreSubstringsMatch
>>         SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{1024} )
>> attributeTypes: ( 2.25.128424792425578037463837247958458780603.4
>>         NAME 'userMobilePhone'
>>         EQUALITY caseIgnoreMatch
>>         SUBSTR caseIgnoreSubstringsMatch
>>         SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{1024} )
>> attributeTypes: ( 2.25.128424792425578037463837247958458780603.5
>>         NAME 'userNotifEmail'
>>         EQUALITY caseIgnoreMatch
>>         SUBSTR caseIgnoreSubstringsMatch
>>         SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{1024} )
>> attributeTypes: ( 2.25.128424792425578037463837247958458780603.6
>>         NAME 'userNotifPhone'
>>         EQUALITY caseIgnoreMatch
>>         SUBSTR caseIgnoreSubstringsMatch
>>         SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{1024} )
>> attributeTypes: ( 2.25.128424792425578037463837247958458780603.7
>>         NAME 'userStatusOption'
>>         EQUALITY caseIgnoreMatch
>>         SUBSTR caseIgnoreSubstringsMatch
>>         SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{1024} )
>> attributeTypes: ( 2.25.128424792425578037463837247958458780603.8
>>         NAME 'userAccountOption'
>>         EQUALITY caseIgnoreMatch
>>         SUBSTR caseIgnoreSubstringsMatch
>>         SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{1024} )
>> attributeTypes: ( 2.25.128424792425578037463837247958458780603.9
>>         NAME 'userEmailQuota'
>>         EQUALITY caseIgnoreMatch
>>         SUBSTR caseIgnoreSubstringsMatch
>>         SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{1024} )
>> attributeTypes: ( 2.25.128424792425578037463837247958458780603.10
>>         NAME 'userStorageQuota'
>>         EQUALITY caseIgnoreMatch
>>         SUBSTR caseIgnoreSubstringsMatch
>>         SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{1024} )
>> attributeTypes: ( 2.25.128424792425578037463837247958458780603.11
>>         NAME 'userLastSignIn'
>>         EQUALITY caseIgnoreMatch
>>         SUBSTR caseIgnoreSubstringsMatch
>>         SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{1024} )
>> attributeTypes: ( 2.25.128424792425578037463837247958458780603.12
>>         NAME 'userPhone'
>>         EQUALITY caseIgnoreMatch
>>         SUBSTR caseIgnoreSubstringsMatch
>>         SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{1024} )
>> attributeTypes: ( 2.25.128424792425578037463837247958458780603.13
>>         NAME 'userCertificateType'
>>         EQUALITY caseIgnoreMatch
>>         SUBSTR caseIgnoreSubstringsMatch
>>         SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{1024} )
>> attributeTypes: ( 2.25.128424792425578037463837247958458780603.14
>>         NAME 'userAddress'
>>         EQUALITY caseIgnoreMatch
>>         SUBSTR caseIgnoreSubstringsMatch
>>         SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{1024} )
>> -
>> add: objectClasses
>> objectClasses: ( 2.25.128424792425578037463837247958458780603.15
>>     NAME 'myUser'
>>     DESC 'myUser'
>>     SUP inetOrgPerson
>>     STRUCTURAL
>>     MAY  ( userEmail $ userOrganizationDn $ userSuborganizationDn $ userMobilePhone
$ userNotifEmail $ userNotifPhone $ userStatusOption $ userAccountOption $ userEmailQuota
$ userStorageQuota $ userLastSignIn $ userPhone $ userCertificateType $ userAddress)
>>  )
>> 
>> I tried to import it using apacheDS directory studio-> ou=schema rightclick->import->LDIF
file
>> 
>> But i am getting error
>> 
>> org.apache.directory.shared.ldap.model.message.ModifyRequestImpl@cfeedf56: ERR_335
Oid 2.25.128424792425578037463837247958458780603.1 for new schema entity is not unique.];
remaining name 'cn=schema'
>> 
>> I do not know how to determine the uid number string. Where can i read how to determine
it?
>> 
>> Or could you give some idea?
>> 
>> Thanks
> 
> 


Mime
View raw message