docker-nextcloud icon indicating copy to clipboard operation
docker-nextcloud copied to clipboard

No LDAP Connection to Local LDAP Server

Open u63725 opened this issue 6 years ago • 2 comments

I have installed the Wonderfall Nextcloud Docker on my Synology NAS Server. I will use the Active Directory Server of my Synology NAS. The Problem is i can't connect to the LDAP Server wich is on the same Server. My LDAP Configuration: 1 2 3 Nextcloud Log: 4

u63725 avatar Apr 04 '19 20:04 u63725

LDAP addon work on this mod only by shell

DeAlexPesh avatar Jun 10 '21 13:06 DeAlexPesh

docker exec -it nextcloud php -m | grep ldap   // search installed mod
docker exec -it nextcloud occ app:enable user_ldap   // enable ldap

docker exec -it nextcloud occ ldap:create-empty-config   // create empty confug
docker exec -it nextcloud occ ldap:show-config --show-password   // show config with pass

docker exec -it nextcloud occ ldap:set-config s01 ldapHost "domain.org" && \
docker exec -it nextcloud occ ldap:set-config s01 ldapPort "389" && \
docker exec -it nextcloud occ ldap:set-config s01 ldapAgentName "cn=user,ou=group,dc=domain,dc=org" && \
docker exec -it nextcloud occ ldap:set-config s01 ldapAgentPassword 'PASSWORD'; history -d $((HISTCMD-1)) && \
docker exec -it nextcloud occ ldap:set-config s01 ldapBase "dc=domain,dc=org" && \
docker exec -it nextcloud occ ldap:set-config s01 ldapLoginFilter "(&(&(memberOf=cn=cloud,ou=group,dc=domain,dc=org)(|(objectClass=person)))(|(sAMAccountName=%uid)(userPrincipalName=%uid)))" && \
docker exec -it nextcloud occ ldap:set-config s01 ldapUserFilter "(&(memberOf=cn=cloud,ou=group,dc=domain,dc=org)(|(objectClass=person)))" && \
docker exec -it nextcloud occ ldap:set-config s01 ldapUserFilterObjectclass "person" && \
docker exec -it nextcloud occ ldap:set-config s01 ldapEmailAttribute "mail" && \
docker exec -it nextcloud occ ldap:set-config s01 ldapExpertUsernameAttr "sAMAccountName"

docker exec -it nextcloud occ ldap:test-config s01   // test
docker exec -it nextcloud occ ldap:set-config s01 ldapConfigurationActive "1"   // activation

DeAlexPesh avatar Dec 23 '21 05:12 DeAlexPesh