[Fedora-directory-users] Re: Extending inetOrgPerson's schema to support custom attributes

François Beretti francois.beretti at gmail.com
Mon Sep 25 19:59:11 UTC 2006


Hi,

a few thoughts from someone who is not a fedoraDS expert :
- you created a new attribute type, but did not add it to the inetorgperson
class definition. So the class itself is not modified. The way the LDIF
files are named does not imply you modify a given class. Only the number has
a meaning, and this represents the order of the files analysing at the
server startup
- I am not sure, but I believe that 99users.ldif should not be modified,
because it represents a view of the directory schema, and is not a
configuration file. Again, I am really not sure, I don't have a fedora
instance at home and can't check this
- standard classes should not be modified. You should create an auxiliary
objectClass containing you custom attribute types, and have your users
implement both inetOrgPerson and your auxiliary class. This can also be a
way to determine if a given user is configured for our application or not
(if it implements your aux class or not) To achieve this, you should create
a file named, for example, 70kevin.ldif and put all your custom schema in
it. Then start your server.


Regards,

François



2006/9/25, kevin james <kevinjj33 at yahoo.com>:
>
> Oops I pressed the enter key and the mail got sent, Yahoo Beta Mail is too
> Ajaxified :)
>
> These were the lines I added to the bottom of the 99users.ldif
> My custom attribute being called "policyNos"
>
> attributeTypes: ( 1.3.6.1.4.1.5923.1.1.1.2 NAME 'policyNos' DESC 'Policy
> Numbers for Insured' EQUALITY caseIgnoreMatch SYNTAX
> 1.3.6.1.4.1.1466.115.121.1.15 X-ORIGIN 'user defined' )
> I was able to restart slapd with no problems, but it still doesnt show up
> in my list of attrbutes for inetOrgPerson.
>
> Again any suggestions would be greatly appreciated.
>
> Thanks,
> Kevin
> ----- Original Message ----
> From: kevin james <kevinjj33 at yahoo.com>
> To: fedora-directory-users at redhat.com
> Sent: Monday, September 25, 2006 3:43:07 PM
> Subject: Extending inetOrgPerson's schema to support custom attributes
>
>  Hello All,
>
> I'm trying to extend the inetOrgPerson's schema in order to better support
> our companie's
> user profile. I 've been doing some googling and I understand that
> modifications need to be done to the 99users.ldif file, I've tried a
> couple of settings but I'm unable to see my custom attributes show up in the
> list of schema attributes for the inetOrgPerson class.
>
> Here's what I've done so far. Any help would be greatly appreciated.
>
> These are the lines I added to the bottom of the 99users.ldif file.
>
>
>
> --
> Fedora-directory-users mailing list
> Fedora-directory-users at redhat.com
> https://www.redhat.com/mailman/listinfo/fedora-directory-users
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/fedora-directory-users/attachments/20060925/89fa5491/attachment.htm>


More information about the Fedora-directory-users mailing list