-
@subven I needed this for a PHP app and I just built a custom LAMP app for personal development, but if the official LAMP app got LDAP (or maybe a version of the app that has it enabled in the same likeness of how wordpress and unmanaged wordpress have different apps) it would be nice since so many self-hosted options are PHP and ldap is almost always a must have.
-
@murgero said in How to enable LDAP support in LAMP app?:
@subven I needed this for a PHP app and I just built a custom LAMP app for personal development, but if the official LAMP app got LDAP (or maybe a version of the app that has it enabled in the same likeness of how wordpress and unmanaged wordpress have different apps) it would be nice since so many self-hosted options are PHP and ldap is almost always a must have.
Do you have the code for this. I'm making a custom LAMP app and can't seem to get the LDAP environment variables to show up despite adding this to CloudronManifest.json:
"addons": { "localstorage": {}, "mysql": {}, "ldap": {}
This
getenv("CLOUDRON_LDAP_SERVER")
still shows up as null? Did I miss a step? -
@Lonk said in How to enable LDAP support in LAMP app?:
After way too long debugging this, I've come to realize that I needed to uninstall the app and re-install it as cloudron update does not initialize those environment variables.
Correct! The "ldap" bit can only be set/unset at first install time. This is something we need to look into making it more dynamic in future releases.
-
@girish said in How to enable LDAP support in LAMP app?:
@Lonk said in How to enable LDAP support in LAMP app?:
After way too long debugging this, I've come to realize that I needed to uninstall the app and re-install it as cloudron update does not initialize those environment variables.
Correct! The "ldap" bit can only be set/unset at first install time. This is something we need to look into making it more dynamic in future releases.
I can't believe I didn't think of update being different than install in an
add-on
sense - but little things like that have to be weighed out on what's easiest for the developer (the minority) vs what's most efficient (what customer's, being the majority notice) as to what to cache in containers or not. So, I get it. -
@girish and @nebulon I just noticed that LDAP is still not in this app? Can we or when can we expect this?
I really need Resourcespace (https://forum.cloudron.io/topic/2036/resourcespace-digital-asset-management-dam) and was thinking of installing it manually in LAMP. However I need to have LDAP to authenticate the 30 users of our Cloudron.
-
@mehdi said in How to enable LDAP support in LAMP app?:
Plus, you'd gain a nice App Dev badge
well, I consider myself more as an experienced user, administrator, manager than a App Dev like you professionals are
-
@imc67 said in How to enable LDAP support in LAMP app?:
@girish and @nebulon I just noticed that LDAP is still not in this app? Can we or when can we expect this?
SFTP change has been made for 6.0 already. So, I think we can make the LAMP app have LDAP support already. There is of course a small window between now and release of Cloudron 6 where non-admins can have SFTP access, so it's something to be aware of (guess it's not much of a worry for LAMP app anyway).