By: Sakit Atakishiyev user 01 Jun 2017 at 7:49 a.m. CDT

2 Responses
Sakit Atakishiyev gravatar
Hi . I faced with issue when i added custom attribute to ldap. I followed [this docs](https://www.bountysource.com/issues/40431340-unable-to-register-create-custom-attribute) . I want to create new attribute , it is called logic .That is why i added [this code block](https://www.dropbox.com/s/xgv3d7zplyzhn9z/add_custom_attr_to_ldap.txt?dl=0) to /opt/gluu/schema/openldap/custom.schema . But when i check this step : 4)/opt/symas/bin/slaptest -f /opt/symas/etc/openldap/slapd.conf -F /opt/symas/etc/openldap/slapd.d i get issue , then i replaced gluuCustomPerson class with getLogic which maybe does not exist [here](https://www.dropbox.com/s/d8q6suts2q6eh8r/custom.schema.PNG?dl=0) . Then i get success [here](https://www.dropbox.com/s/uc2uieis6qya37j/slapd.PNG?dl=0) and i started registering that attribute in oxtrust. But when i click save , i get error . you can see that in [this screen-shot](https://www.dropbox.com/s/leamhbuqehwrlda/errorAddingAttr.png?dl=0)

By Mohib Zico Account Admin 01 Jun 2017 at 8:54 a.m. CDT

Mohib Zico gravatar
Hello Sakit, I just tried 'logic' attribute, it created successfully. Here is the snippet from 'custom.schema' ``` GLUU.root@allinone3:~# cat /opt/gluu/schema/openldap/custom.schema attributetype ( 1.3.6.1.4.1.48710.1.3.1001 NAME 'myCustomAttr1' EQUALITY caseIgnoreMatch SUBSTR caseIgnoreSubstringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 X-ORIGIN 'Gluu - dynamic registration custom attribute' ) attributetype ( 1.3.6.1.4.1.48710.1.3.1002 NAME 'myCustomAttr2' EQUALITY caseIgnoreMatch SUBSTR caseIgnoreSubstringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 X-ORIGIN 'Gluu - dynamic registration custom attribute' ) attributetype ( 1.3.6.1.4.1.48710.1.3.1003 NAME 'logic' EQUALITY caseIgnoreMatch SUBSTR caseIgnoreSubstringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 X-ORIGIN 'Gluu - dynamic registration custom attribute' ) objectclass ( 1.3.6.1.4.1.48710.1.4.101 NAME 'gluuCustomPerson' SUP ( top ) AUXILIARY MAY ( telephoneNumber $ mobile $ logic ) X-ORIGIN 'Gluu - Custom persom objectclass' ) objectclass ( 1.3.6.1.4.1.48710.1.4.102 NAME 'oxAuthClientCustomAttributes' SUP ( top ) AUXILIARY MAY ( myCustomAttr1 $ myCustomAttr2 ) X-ORIGIN 'Gluu - Custom client objectclass' ) ``` Also attaching two screenshots.

By Sakit Atakishiyev user 02 Jun 2017 at 12:04 a.m. CDT

Sakit Atakishiyev gravatar
It worked . Thanks.