Browse Source
Merge pull request #341 from YunoHost-Apps/fix-user-group-association
[fix] Group and user are not associated
pull/385/head
Kayou
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
6 additions and
1 deletions
-
conf/config.json
-
conf/nginx.conf
|
|
|
@ -24,9 +24,10 @@ |
|
|
|
"ldap_email_attr": "mail", |
|
|
|
"ldap_expert_username_attr": "uid", |
|
|
|
"ldap_group_display_name": "cn", |
|
|
|
"ldap_group_filter": "objectClass=posixGroup", |
|
|
|
"ldap_group_filter": "(&(objectclass=top)(memberUid=*))", |
|
|
|
"ldap_group_filter_mode": "0", |
|
|
|
"ldap_groupfilter_objectclass": "posixGroup", |
|
|
|
"ldap_group_member_assoc_attribute": "memberUid", |
|
|
|
"ldap_host": "localhost", |
|
|
|
"ldap_login_filter": "(&(|(objectclass=posixAccount))(uid=%uid))", |
|
|
|
"ldap_login_filter_mode": "0", |
|
|
|
|
|
|
|
@ -93,6 +93,10 @@ location ^~ __PATH__/ { |
|
|
|
# then Nginx will encounter an infinite rewriting loop when it prepends |
|
|
|
# `/nextcloud/index.php` to the URI, resulting in a HTTP 500 error response. |
|
|
|
location ~ \.php(?:$|/) { |
|
|
|
# Required for legacy support |
|
|
|
# https://github.com/nextcloud/documentation/pull/2197#issuecomment-721432337 |
|
|
|
# This line fix the ldap admin page |
|
|
|
rewrite ^__PATH__/(?!index|remote|public|cron|core\/ajax\/update|status|ocs\/v[12]|updater\/.+|oc[ms]-provider\/.+|.+\/richdocumentscode\/proxy) __PATH__/index.php$request_uri; |
|
|
|
fastcgi_split_path_info ^(.+?\.php)(/.*)$; |
|
|
|
set $path_info $fastcgi_path_info; |
|
|
|
try_files $fastcgi_script_name =404; |
|
|
|
|