By: Sakit Atakishiyev user 12 Sep 2017 at 10:31 a.m. CDT

6 Responses
Sakit Atakishiyev gravatar
Hello. I want to customize login page. I read this [article](https://gluu.org/docs/ce/3.0.1/operation/custom-loginpage/). Everything is ok. Now my question is I use default `basic` authentication script which is use default `login.xhtml` file and my custom `login` script which is has own login `xhtml` and `xml` file for mapping. I put my new `xhtml` file under `/custom/pages/` according to article. Where should I put its `xml` file? My second question I stored all my `custom script` to files and use these files path. What is the correct permission for these files?

By Mohib Zico staff 13 Sep 2017 at 1:04 a.m. CDT

Mohib Zico gravatar
>> Hello. I want to customize login page. I read this article. Everything is ok. Now my question is I use default basic authentication script which is use default login.xhtml file and my custom login script which is has own login xhtml and xml file for mapping. I put my new xhtml file under /custom/pages/ according to article. Where should I put its xml file? If you use modified xhtml inside /custom/pages, it will override default login.xhtml. >> My second question I stored all my custom script to files and use these files path. What is the correct permission for these files? Try root:root and tomcat:tomcat. We suggest to save that custom scripts in ldap as it will help you a lot in clustered setup.

By Sakit Atakishiyev user 13 Sep 2017 at 1:19 a.m. CDT

Sakit Atakishiyev gravatar
If I understand correctly I could not use different name other than `login.xhtml` am I right? And for the second one storing custom scripts in ldap may help me in clustered setup. But when install a new gluu server then I should copy all scripts again so that I use file. And when I install a new server I just copy these files. Can I create `ldif` file for custom scripts? If yes can you help me how I can create this file? I just create all my scrips in ldif file and insert to ldap. is it possible? like adding multiple custom attributes just one ldif file

By Mohib Zico staff 13 Sep 2017 at 9:23 a.m. CDT

Mohib Zico gravatar
>> If I understand correctly I could not use different name other than login.xhtml am I right? Without any customization inside code, correct. >> Can I create ldif file for custom scripts? I am not sure how easy job that will be. Attaching a screenshot of a custom two factor authentication module named 'SuperGluu' which looks like this in ldap.

By Sakit Atakishiyev user 13 Sep 2017 at 9:33 a.m. CDT

Sakit Atakishiyev gravatar
mohib thanks for screenshot. Should I encode my scripts to `base64` for storing?

By Mohib Zico staff 13 Sep 2017 at 9:35 a.m. CDT

Mohib Zico gravatar
Use oxTrust GUI, that will simplify your life.

By Sakit Atakishiyev user 13 Sep 2017 at 9:37 a.m. CDT

Sakit Atakishiyev gravatar
Yes you right but when I need to install a new gluu server then nightmare starts :). I should create all custom scripts again and again. So that I search some alternatives to do all this.