Koozali.org: home of the SME Server

LemonLDAP for Owncloud/Nextcloud

Offline frifri

  • *
  • 108
  • +0/-0
LemonLDAP for Owncloud/Nextcloud
« on: September 30, 2016, 01:57:16 PM »
Hi,

I installed Nextcloud in a iBay and want to authenticate against LemonLDAP.

Created a subdomain for Nextcloud :

Code: [Select]
[root@sme ~]# db domains show cloud.pollet-ghys.be
cloud.pollet-ghys.be=domain
    Authentication=LemonLDAP
    Content=Primary
    Description=Owncloud voor Pollet & Ghys
    DocumentRoot=/home/e-smith/files/ibays/owncloud/html
    Nameservers=corporate
    TemplatePath=WebAppVirtualHost
    owner=a06.pollet-ghys.be

Have this in httpd.conf :

Code: [Select]
<VirtualHost 0.0.0.0:443>

    ServerName cloud.pollet-ghys.be
    ServerAlias ftp.cloud.pollet-ghys.be mail.cloud.pollet-ghys.be proxy.cloud.pollet-ghys.be sme.cloud.pollet-ghys.be wpad.cloud.pollet-ghys.be www.cloud.pollet-ghys.be

    # This virtualhost is configured to be protected by LemonLDAP NG
    PerlHeaderParserHandler Lemonldap::NG::Handler
    ErrorDocument 403 https://auth.pollet-ghys.be/?lmError=403
    ErrorDocument 500 https://auth.pollet-ghys.be/?lmError=500

    SSLEngine on


    RewriteEngine on
    RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
    RewriteRule .* - [F]



    # alias for Apache icons
    Alias /icons/ /var/www/icons/


    DocumentRoot /home/e-smith/files/ibays/owncloud/html


</VirtualHost>

And this :

Code: [Select]
#------------------------------------------------------------
# owncloud ibay directories (Owncloud)
#------------------------------------------------------------

<Directory /home/e-smith/files/ibays/owncloud/html>
    SSLRequireSSL
    Options None
    Options +Indexes
    Options +FollowSymLinks
    Options +Includes
    php_admin_flag allow_url_fopen on
    AllowOverride All
    order deny,allow
    deny from all
    allow from all
</Directory>

<Directory /home/e-smith/files/ibays/owncloud/cgi-bin>
    Options ExecCGI
    AllowOverride None
    order deny,allow
    deny from all
    allow from all
</Directory>

<Directory /home/e-smith/files/ibays/owncloud/files>
    AllowOverride None
    order deny,allow
    deny from all
    allow from all
</Directory>

If i want to login on https://cloud.pollet-ghys.be, i am redirected to https://auth.pollet-ghys.be

I even can login on https://auth.pollet-ghys.be but after this login i need to login a second time on cloud.pollet-ghys.be to reach my files on cloud.pollet-ghys.be

Whats missing ?

Thanks,

F.

guest22

Re: LemonLDAP for Owncloud/Nextcloud
« Reply #1 on: March 12, 2017, 03:15:47 PM »
frifri, did you ever solved this issue? If so, could you please share?

TIA!

Offline frifri

  • *
  • 108
  • +0/-0
Re: LemonLDAP for Owncloud/Nextcloud
« Reply #2 on: March 12, 2017, 03:25:19 PM »
Hi RequestedDeletion,

No, i couldn't solve this.

F.

guest22

Re: LemonLDAP for Owncloud/Nextcloud
« Reply #3 on: March 12, 2017, 05:13:41 PM »
No, i couldn't solve this.

Maybe the httpd config for Dokuwiki can help. It works with LemonLDAP. It's in the fws repo.

http://pastebin.com/uUYMFB0f