Skip to content

Create custom attribute

Bruno Bonfils edited this page Jul 13, 2013 · 3 revisions

Introduction

While the default object may be enough, you'll probably need to add some attributs to the employee object. This page will describe all steps require to extend the default object.

Add ObjectClass (optional)

IF the attribute you want to add is not on defined on inetOrgPerson objectClass, you must add the required objectClass in object_classes method:

def object_classes(cls):
    return ['top', 'person', 'organizationalPerson','inetOrgPerson', 'my-employee-oc' ]

You must restart LBE.

Create attribute

Logon as administrator in LBE, click on Add attribute. The DisplayName field describe how this attribute is displayed on LBE. The Name field must match the name of your LDAP attribute.

Edit object

Clone this wiki locally