Le 16/10/14 17:07, Demet Dinc Oguz a écrit : > Dear Sir/Madam > I am trying to extend LDAP entities with a new attribute(isActive).
Please define a "LDAP entity". > Can you explain that how can i add a new attribute (isActive) to an > existing entity with ldif file. Assuming entity == entry, > Here is the ldif file i run to create my sample entity > > dn: cn=ESB Dev,ou=Users,dc=dtg,dc=nl > objectClass: inetOrgPerson > objectClass: organizationalPerson > objectClass: person > objectClass: top > cn: ESB Dev > sn: ESBDEV > description: 19741108000000Z > employeeNumber: 7 > givenName: ESBDEV > telephoneNumber: 254-323-1920 > isActive: TRUE > uid: [email protected] > userPassword:: 123244 > > > After the execution of this file i saw the entity is created but i do not see > the isActive attribute of it. Which is quite normal. The isActive AttributeType is not present in any of your ObjectClass. You either have to add the extensible ObjectClass in your entry, or to define a new ObjectClass which takes isActive as a MAY or MUST attributeType, and include this ObjectClass into the list of ObjectClass for your entry. Of course, this isActive AttributeType must exist in your shema. At this point, I stringly encourage you to read some information about what is a LDAP schema (something like http://www.yolinux.com/TUTORIALS/LinuxTutorialLDAP-DefineObjectsAndAttributes.html could help, but it just scratchs the very surface of this matter), or something similar.
