By: Justin Chen user 05 Jun 2018 at 9:13 a.m. CDT

4 Responses
Justin Chen gravatar
I installed Gluu 3.1.3 and was in the process of adding custom attributes when I noticed that the LDAP service appears to have not been installed or started. My whole Gluu installation is all under root/opt/gluu-server-3.1.3. I'm not sure if this is involved at all. The error I get is: ``` root@idp:~# service solserver stop Failed to stop solserver.service: Unit solserver.service not loaded. root@idp:~# systemctl solserver stop Unknown operation solserver. root@idp:~# service solservice start Failed to start solservice.service: Unit solservice.service not found. root@idp:~# ldapsearch The program 'ldapsearch' is currently not installed. You can install it by typing: apt install ldap-utils root@idp:~# service solserver status solserver.service Loaded: not-found (Reason: No such file or directory) Active: inactive (dead) ``` I ran a search for LDAP against the root folder and found: ``` /opt/gluu-server-3.1.3/home/ldap /opt/gluu-server-3.1.3/opt/jetty-9.4/temp/jetty-localhost-8081-oxauth.war-_oxauth-any-7354561794905876379.dir/webapp/WEB-INF/classes/org/xdi/oxauth/model/ldap /opt/gluu-server-3.1.3/opt/jetty-9.4/temp/jetty-localhost-8081-oxauth.war-_oxauth-any-7354561794905876379.dir/webapp/WEB-INF/classes/org/xdi/oxauth/service/status/ldap /opt/gluu-server-3.1.3/opt/jetty-9.4/temp/jetty-localhost-8082-identity.war-_identity-any-3688371564098233217.dir/webapp/WEB-INF/classes/org/gluu/oxtrust/ldap /opt/gluu-server-3.1.3/opt/jetty-9.4/temp/jetty-localhost-8082-identity.war-_identity-any-3688371564098233217.dir/webapp/WEB-INF/classes/org/gluu/oxtrust/service/status/ldap /opt/gluu-server-3.1.3/etc/ldap /etc/ldap ``` And here is a full search for any file with ldap in it: ``` root@idp:~# find / -name "ldap*" /var/lib/dpkg/info/ldap-utils.md5sums /var/lib/dpkg/info/ldap-utils.list /opt/gluu-server-3.1.3/home/ldap /opt/gluu-server-3.1.3/opt/shibboleth-idp/dist/conf/ldap.properties.dist /opt/gluu-server-3.1.3/opt/shibboleth-idp/dist/conf/authn/ldap-authn-config.xml.dist /opt/gluu-server-3.1.3/opt/shibboleth-idp/webapp/WEB-INF/lib/ldaptive-1.0.11.jar /opt/gluu-server-3.1.3/opt/shibboleth-idp/conf/ldap.properties /opt/gluu-server-3.1.3/opt/shibboleth-idp/conf/authn/ldap-authn-config.xml /opt/gluu-server-3.1.3/opt/jetty-9.4/temp/jetty-localhost-8081-oxauth.war-_oxauth-any-7354561794905876379.dir/webapp/WEB-INF/classes/org/xdi/oxauth/model/ldap /opt/gluu-server-3.1.3/opt/jetty-9.4/temp/jetty-localhost-8081-oxauth.war-_oxauth-any-7354561794905876379.dir/webapp/WEB-INF/classes/org/xdi/oxauth/service/status/ldap /opt/gluu-server-3.1.3/opt/jetty-9.4/temp/jetty-localhost-8082-identity.war-_identity-any-3688371564098233217.dir/webapp/resources/ox/ldapConfig.xhtml /opt/gluu-server-3.1.3/opt/jetty-9.4/temp/jetty-localhost-8082-identity.war-_identity-any-3688371564098233217.dir/webapp/WEB-INF/classes/org/gluu/oxtrust/ldap /opt/gluu-server-3.1.3/opt/jetty-9.4/temp/jetty-localhost-8082-identity.war-_identity-any-3688371564098233217.dir/webapp/WEB-INF/classes/org/gluu/oxtrust/service/status/ldap /opt/gluu-server-3.1.3/opt/jetty-9.4/temp/jetty-localhost-8086-idp.war-_idp-any-7592439454254175210.dir/webapp/WEB-INF/lib/ldaptive-1.0.11.jar /opt/gluu-server-3.1.3/opt/opendj/bin/ldapsearch /opt/gluu-server-3.1.3/opt/opendj/bin/ldapdelete /opt/gluu-server-3.1.3/opt/opendj/bin/ldapcompare /opt/gluu-server-3.1.3/opt/opendj/bin/ldapmodify /opt/gluu-server-3.1.3/opt/opendj/bin/ldappasswordmodify /opt/gluu-server-3.1.3/opt/opendj/bat/ldapsearch.bat /opt/gluu-server-3.1.3/opt/opendj/bat/ldapcompare.bat /opt/gluu-server-3.1.3/opt/opendj/bat/ldapmodify.bat /opt/gluu-server-3.1.3/opt/opendj/bat/ldappasswordmodify.bat /opt/gluu-server-3.1.3/opt/opendj/bat/ldapdelete.bat /opt/gluu-server-3.1.3/install/community-edition-setup/static/scripts/ldap_encrypt.py /opt/gluu-server-3.1.3/install/community-edition-setup/static/idp3/conf/ldap.properties /opt/gluu-server-3.1.3/etc/ldap /opt/gluu-server-3.1.3/etc/ldap/ldap.conf /opt/gluu-server-3.1.3/etc/apache2/mods-available/ldap.load /opt/gluu-server-3.1.3/etc/apache2/mods-available/ldap.conf /opt/gluu-server-3.1.3/usr/lib/ruby/2.3.0/uri/ldaps.rb /opt/gluu-server-3.1.3/usr/lib/ruby/2.3.0/uri/ldap.rb /opt/gluu-server-3.1.3/usr/share/man/man5/ldap.conf.5.gz /opt/gluu-server-3.1.3/usr/share/vim/vim74/syntax/ldapconf.vim /etc/ldap /etc/ldap/ldap.conf /etc/apparmor.d/abstractions/ldapclient /usr/bin/ldapcompare /usr/bin/ldapsearch /usr/bin/ldappasswd /usr/bin/ldapurl /usr/bin/ldapexop /usr/bin/ldapmodify /usr/bin/ldapwhoami /usr/bin/ldapadd /usr/bin/ldapmodrdn /usr/bin/ldapdelete /usr/share/doc/ldap-utils /usr/share/vim/vim74/syntax/ldapconf.vim /usr/share/perl5/URI/ldap.pm /usr/share/perl5/URI/ldaps.pm /usr/share/perl5/URI/ldapi.pm /usr/share/bash-completion/completions/ldapcompare /usr/share/bash-completion/completions/ldapsearch /usr/share/bash-completion/completions/ldappasswd /usr/share/bash-completion/completions/ldapmodify /usr/share/bash-completion/completions/ldapwhoami /usr/share/bash-completion/completions/ldapadd /usr/share/bash-completion/completions/ldapmodrdn /usr/share/bash-completion/completions/ldapvi /usr/share/bash-completion/completions/ldapdelete /usr/share/sosreport/sos/plugins/__pycache__/ldap.cpython-35.pyc /usr/share/sosreport/sos/plugins/ldap.py /usr/share/man/man1/ldapdelete.1.gz /usr/share/man/man1/ldapurl.1.gz /usr/share/man/man1/ldapmodify.1.gz /usr/share/man/man1/ldapsearch.1.gz /usr/share/man/man1/ldapwhoami.1.gz /usr/share/man/man1/ldapexop.1.gz /usr/share/man/man1/ldapcompare.1.gz /usr/share/man/man1/ldappasswd.1.gz /usr/share/man/man1/ldapadd.1.gz /usr/share/man/man1/ldapmodrdn.1.gz /usr/share/man/man5/ldap_table.5.gz /usr/share/man/man5/ldap.conf.5.gz ``` Keep in mind that my Gluu installation, while installed in the root folder, actually was installed under /opt/gluu-server-3.1.3/. Not sure if that effects anything or how to remedy that if needed. But as you can see above there is also a /etc/ldap folder with nothing but ldap.config in it.

By Thomas Gasmyr Mougang staff 05 Jun 2018 at 9:28 a.m. CDT

Thomas Gasmyr Mougang gravatar
Hi Justin, It seems like the ldap implementation picked during installation was OpenDj. The command **service solserver start** works only if openLdap is installed. Do you have any trouble accessing Gluu services after installation?

By Justin Chen user 05 Jun 2018 at 10:49 a.m. CDT

Justin Chen gravatar
Got it. That makes sense. I did select OpenDJ. Is there anything functionally I need to watch out for while making custom attributes for SAML? I am setting up a number of SP trusted relationships that will need custom attributes, and all the instructions I found were for LDAP: https://gluu.org/docs/ce/admin-guide/attribute/. Do you by any chance have documentation for OpenDJ custom attributes? No, the installation seems to be working perfectly otherwise.

By Thomas Gasmyr Mougang staff 05 Jun 2018 at 10:54 a.m. CDT

Thomas Gasmyr Mougang gravatar
Here is the [doc](https://gluu.org/docs/ce/3.1.3/admin-guide/attribute/#opendj) you can follow to add custom attribute in OpenDJ.

By Justin Chen user 05 Jun 2018 at 1:56 p.m. CDT

Justin Chen gravatar
Thanks Thomas, you've been super helpful! :)