Koozali.org: home of the SME Server
Obsolete Releases => SME 9.x Contribs => Topic started by: Stefano on August 31, 2016, 03:20:18 PM
-
hi all
I'm testing pydio with lemonLDAP..
followed both wiki's pages (https://wiki.contribs.org/Pydio (https://wiki.contribs.org/Pydio) and https://wiki.contribs.org/LemonLDAP-NG (https://wiki.contribs.org/LemonLDAP-NG)), installing lemonLDAP before pydio
I successfully managed to add my virtualhost in lemonLDAP but when I authenticate an user and follow the link from the auth portal, I'm asked to insert my credentials again.. tried with the same user, I see "user not found"
so, please, is there anyone that can give me a 5-years old howto?
moreover (mainly to Daniel B.), is there a way to upgrade both pydio and lemonLDAP to the last releases or, at least, to something newer?
(tried to rebuild rpms both for pydio and lemonLDAP using latest sources and spec file coming from pws with no success)
TIA
-
as a side note, there's only an rpm coming from Dag's repo (which is offline in most of the mirrors and in the main site)
the package is perl-IPC-ShareLite which, AFAICS, is used by lemonLDAP.. pydio doesn't need any Dag's rpm
I'll amend the wiki pages (Pydio's one and Dag's repo one) accordingly
-
I successfully managed to add my virtualhost in lemonLDAP but when I authenticate an user and follow the link from the auth portal, I'm asked to insert my credentials again.. tried with the same user, I see "user not found"
This means for pydio, the auth is still internal. Please show
db configuration show pydio | grep -v Password
moreover (mainly to Daniel B.), is there a way to upgrade both pydio and lemonLDAP to the last releases or, at least, to something newer?
(tried to rebuild rpms both for pydio and lemonLDAP using latest sources and spec file coming from pws with no success)
For pydio, it should be possible but requires a big job to keep the integtration with SME (user auth, settings, integration with Shared Folders). I just haven't found the time yet. For Lemonldap::NG, no, it's not possible because it requires newer perl version (and modules). It'll stay on the 1.4.x branch (which is still maintained)
-
[root@test ~]# db configuration show pydio | grep -v Password
pydio=webapp
AliasOnPrimary=disabled
Authentication=LemonLDAP
DbName=pydio
DbUser=pydio
DefaultLanguage=it
HomeDir=enabled
Title=My own web based file manager
WelcomMessage=Powered by SME Server
access=public
status=enabled
about rebuilding, lemonLDAP is on 1.4.10, which I tried to rebuild without success
-
Hard to say what's wrong. Can you show the config of your vhost plz ? For the newer Lemonldap::NG, I missed the announcement. I'll update the rpm in my repo
-
Doh!
my bad, I didn't see any reference to a custom template for the virtualhost..
so, re-reading the lemonLDAP page, I have to create a custom fragment for pydio pointing to /usr/share/pydio
are this example still valid?
<Directory /opt/myapp>
AllowOverride None
SSLRequireSSL on
AddType application/x-httpd-php .php
php_admin_value open_basedir /opt/myapp:/tmp
order deny,allow
deny from all
allow from {"$localAccess $externalSSLAccess";}
Satisfy all
</Directory>
?
-
well, I'm confused.. I already have pydio config in httpd.conf
-
Nop, there should be no custom template needed. But you should have a vhost (= domain) created, as detailed here: https://wiki.contribs.org/Pydio#Create_a_new_virtualhost_for_Pydio
-
indeed, I have it
[root@test etc]# db domains show exchange.mycompany.local
exchange.mycompany.local=domain
Authentication=LemonLDAP
Content=Primary
Description=Pydio
DocumentRoot=/usr/share/pydio
Nameservers=internet
TemplatePath=WebAppVirtualHost
so, making a recap:
- installed lemonLDAP
- installed pydio and created its virtualhost and configured to be lemonLDAP protected
- in lemonLDAP, created a new virtualhost pointing to exchange.mycompany.local with only a rule, as per wiki page
what's wrong? :-)
is there any log/place to check for errors?
-
Can you check in /var/lib/pydio/plugins/boot.conf/bootstrap.json that you have "instance_name" : "auth.basic_http" under MASTER_INSTANCE_CONFIG (which is itself under core.auth)
-
I have no file in /var/lib/pydio/plugins/boot.conf/
-
That's a problem. Fire a signal-event webapps-update and check in /var/log/messages why the templates are not being expanded
-
Thank you Dani, will do tomorrow and report back
-
ok, did it and now it works as expected.. thank you Dani