By: Mark Egan user 22 Feb 2018 at 9:10 a.m. CST

7 Responses
Mark Egan gravatar
I believe there are two ways to configure custom attributes: 1) first modify */opt/gluu/schema/openldap, restart the service, then submit web form oxTrust -> Configuration -> Attributes -> Register Attribute. 2) submit an LDIF of the attribute using oxTrust -> Configure -> Import/Export Attribute LDIF. I haven't tried this yet and am not sure exactly what it updates. Is there a way to add new attributes without requiring the use of the oxTrust web app? For instance, are there flat files that can be edited to complete the entire schema update & attribute registration prior to starting the service? We're inquiring as we prefer an approach to configuring custom attributes that can be scripted for use in configuration frameworks (like Ansible, Chef, Puppet, etc.).

By Mohib Zico Account Admin 22 Feb 2018 at 11:52 a.m. CST

Mohib Zico gravatar
Hi Mark, There is no flat file to create custom attributes in Gluu Server. Here is how it generally happens: - Custom attribute modification in schema - Custom attribute creation in ldap - Schema update require ldap restart Little curious... why you wanna automate this? Is this custom attribute creation a daily task in your operations?

By Mohib Zico Account Admin 28 Feb 2018 at 9:08 a.m. CST

Mohib Zico gravatar
Hello Mark, You want to keep this ticket open for further discussion?

By Mark Egan user 28 Feb 2018 at 9:15 a.m. CST

Mark Egan gravatar
Just for up to another week. Jeff Corrigan and I have been discussing and will likely try to update the schema LDIF on a new deployment, run an ldap command line command to "register" the attribute, then spin up Gluu and see if that registration sticks. And to answer your question about why: we're hoping to automate deploying/provision of new environments requiring as little human interaction as possible - so we're trying to avoid oxTrust UI form submissions.

By Mark Egan user 28 Feb 2018 at 9:18 a.m. CST

Mark Egan gravatar
Mohib: I accidentally closed it. So I reopened it and you might have to move it back to the proper status.

By Mohib Zico Account Admin 28 Feb 2018 at 9:23 a.m. CST

Mohib Zico gravatar
Got it, thanks Mark. Keeping this ticket open then...

By Mohib Zico Account Admin 21 Mar 2018 at 4:45 a.m. CDT

Mohib Zico gravatar
Hello Mark, Just touching base to know if you need any assistance from us.

By Mark Egan user 21 Mar 2018 at 2:56 p.m. CDT

Mark Egan gravatar
We will be taking an approach similar to your install scripts found in https://github.com/GluuFederation/install Thanks! -mark