Importing an LDIF schema

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Instead of copying the file to your config/schema, could you try adding 
the schema using "ldapmodify" to your FDS?
$ cd /opt/fedora-ds/shared/bin
$ ./ldapmodify -h <host> -p <port> -D <directory manager> -w <password> 
-f /tmp/commURI.ldif.txt

Note: I had to comment out the delete lines before running the command line:
#delete: attributetypes

    #attributetypes: (0.0.8.350.1.1.1.1.1 NAME 'commURI' )
    #-

    #delete: objectclasses
    #objectclasses: (0.0.8.350.1.1.1.2.1 NAME 'commURIObject' )
    #-

Once it's added, you'd see commURI and commURIObject in 99user.ldif:

    objectClasses: ( 0.0.8.350.1.1.1.2.1 NAME 'commURIObject' DESC
    'object that co
     ntains the URI attribute type' SUP top AUXILIARY MAY commURI
    X-ORIGIN 'user
     defined' )
    [...]
    attributeTypes: ( 0.0.8.350.1.1.1.1.1 NAME 'commURI' DESC 'Labeled
    URI format
     to point to the distinguished name of the commUniqueId' EQUALITY
    caseExactMa
     tch SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 X-ORIGIN 'user defined' )

Thanks,
--noriko

Giles Chamberlin wrote:
> I've got a hunch that you're probably right, given the error message and
> all.  But I can't see where that's missing.  I'm new to all this LDIF
> stuff, so stumbling a little, but comparing the commURI schema with
> those distributed with Fedora DS they look about right.  Specifically
> the commURI is defined with
>
> attributetypes: (0.0.8.350.1.1.1.1.1 
>      NAME 'commURI' 
>      DESC 'Labeled URI format to point to the distinguished name of the
> commUniqueId' 
>      EQUALITY caseExactMatch 
>      SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 )
>
> Which looks to me comparable with those distributed with Fedora DS.
>
> Probably something very simple, but all held gratefully accepted.
>
> Giles
>
> -----Original Message-----
> From: fedora-directory-users-bounces at redhat.com
> [mailto:fedora-directory-users-bounces at redhat.com] On Behalf Of Morris,
> Patrick
> Sent: 07 August 2006 17:00
> To: General discussion list for the Fedora Directory server project.
> Subject: RE: Importing an LDIF schema
>
> It looks like...well, like you're missing the syntax OID on the commURI
> attribute.  Just a guess. :) 
>
>   
>> -----Original Message-----
>> From: fedora-directory-users-bounces at redhat.com 
>> [mailto:fedora-directory-users-bounces at redhat.com] On Behalf 
>> Of Giles Chamberlin
>> Sent: Monday, August 07, 2006 8:53 AM
>> To: fedora-directory-users at redhat.com
>> Subject: Importing an LDIF schema
>>
>> I'm trying to import a existing schema into my fedora installation.
>> The schema is defined in
>> http://lab.ac.uab.edu/vnet/documents/ldif/commURI.ldif.txt
>>
>> So far I've copied that file to my installations config 
>> directory, renamed to 98commURI.ldif and restarted my 
>> instance of fedora ds.  
>>
>> This generates an error message:
>>
>>  dse - The entry cn=schema  in file 
>> /opt/fedora-ds/slapd-mist/config/schema/98comURI.ldif is 
>> invalid, error code 21 (Invalid syntax) - attribute type 
>> commURI: Missing attribute syntax OID
>> [07/Aug/2006:16:36:39 +0100] dse - Please edit the file to 
>> correct the reported problems and then restart the server.
>>
>>
>> The directory server is a fresh installation of 
>> fedora-ds-1.0.2-1.RHEL.i386 Can anyone point me in the right 
>> direction?
>>
>> --
>> Giles Chamberlin
>>
>> --
>> Fedora-directory-users mailing list
>> Fedora-directory-users at redhat.com
>> https://www.redhat.com/mailman/listinfo/fedora-directory-users
>>
>>     
>
> --
> Fedora-directory-users mailing list
> Fedora-directory-users at redhat.com
> https://www.redhat.com/mailman/listinfo/fedora-directory-users
>
> --
> Fedora-directory-users mailing list
> Fedora-directory-users at redhat.com
> https://www.redhat.com/mailman/listinfo/fedora-directory-users
>   

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3170 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.fedoraproject.org/pipermail/389-users/attachments/20060807/4443658d/attachment.bin 


[Index of Archives]     [Fedora User Discussion]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora News]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora QA]     [Fedora Triage]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Yosemite Photos]     [Linux Apps]     [Maemo Users]     [Gnome Users]     [KDE Users]     [Fedora Tools]     [Fedora Art]     [Fedora Docs]     [Maemo Users]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Fedora ARM]

  Powered by Linux