Forums

mauro
mauro
Offline
Resolved
0 votes
How configure Clearos 7 community to add optional fields such as telephone number, address, title, and more.
In User add web config only appear: name, username, password.
thanks
In Users
Tuesday, March 14 2017, 03:01 PM
Share this post:
Responses (3)
  • Accepted Answer

    Saturday, March 18 2017, 02:07 PM - #Permalink
    Resolved
    0 votes
    If you want some standard attributes, it is simple:

    yum -y install app-contact-extension-core


    B
    The reply is currently minimized Show
  • Accepted Answer

    mauro
    mauro
    Offline
    Saturday, March 18 2017, 01:39 PM - #Permalink
    Resolved
    0 votes
    Thanks ben for you answer, I only want to add additional data to user like telephone and email. In Clearos Documentation User, says (Configure optional fields). I assumed it was not going to be complicated to add a field like telephone.
    Regards
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, March 14 2017, 06:00 PM - #Permalink
    Resolved
    0 votes
    Hmm....not a simple one liner answer...it's quite a complex subject.

    The attributes are all defined in LDAP schemas. You'll find examples in:

    /etc/openldap/schema/


    You could use any available attributes that are already defined...if you need additional custom attributes, you'll need to define your own schema (or hook/add onto ClearFoundation's template) for inclusion.

    That's part I...the next step is to create a user extension so that your new attributes are displayed/used in Webconfig. Have a look at any app-xxxx-extension like:

    https://github.com/clearos/app-kopano-extension
    or
    https://github.com/eglooca/app-two-factor-auth-extension

    Are you building a new app for the Marketplace or just looking to hack in additional user metadata?

    Cheers,

    B.
    The reply is currently minimized Show
Your Reply