mirror of
https://github.com/YunoHost-Apps/friendica_ynh.git
synced 2024-09-03 18:36:14 +02:00
Fixed ldap plugin in 2018.09
This commit is contained in:
parent
9c2af8c0dd
commit
3ac8f66220
2 changed files with 12 additions and 23 deletions
|
@ -6,27 +6,16 @@
|
||||||
;consumerkey = localhost
|
;consumerkey = localhost
|
||||||
;consumersecret = mysqlusername
|
;consumersecret = mysqlusername
|
||||||
|
|
||||||
|
[system]
|
||||||
|
addon = ldapauth
|
||||||
|
|
||||||
[ldapauth]
|
[ldapauth]
|
||||||
// ldap hostname server - required
|
ldap_server = 'localhost'
|
||||||
ldap_server = localhost
|
ldap_searchdn = 'ou=users,dc=yunohost,dc=org'
|
||||||
// dn to search users - required
|
ldap_userattr = 'uid'
|
||||||
ldap_searchdn = ou=users,dc=yunohost,dc=org
|
ldap_autocreateaccount = 'true'
|
||||||
// attribute to find username - required
|
ldap_autocreateaccount_emailattribute = 'mail'
|
||||||
ldap_userattr = uid
|
ldap_autocreateaccount_nameattribute = 'name'
|
||||||
|
|
||||||
// admin dn - optional - only if ldap server dont have anonymous access
|
|
||||||
//ldap_binddn = cn=admin,dc=example,dc=com
|
|
||||||
// admin password - optional - only if ldap server dont have anonymous access
|
|
||||||
//ldap_bindpw = password
|
|
||||||
|
|
||||||
// for create Friendica account if user exist in ldap
|
|
||||||
// required an email and a simple (beautiful) nickname on user ldap object
|
|
||||||
// active account creation - optional - default none
|
|
||||||
ldap_autocreateaccount = true
|
|
||||||
// attribute to get email - optional - default : 'mail'
|
|
||||||
ldap_autocreateaccount_emailattribute = mail
|
|
||||||
// attribute to get nickname - optional - default : 'givenName'
|
|
||||||
ldap_autocreateaccount_nameattribute = givenName
|
|
||||||
|
|
||||||
|
|
||||||
INI;
|
INI;
|
||||||
|
|
|
@ -74,10 +74,10 @@ path_url=$(ynh_normalize_url_path $path_url)
|
||||||
|
|
||||||
# Download, check integrity, uncompress and patch the source from app.src
|
# Download, check integrity, uncompress and patch the source from app.src
|
||||||
ynh_setup_source "$final_path"
|
ynh_setup_source "$final_path"
|
||||||
sudo cp -af "$tmpdir/.htaccess" "${final_path}/."
|
sudo cp -af "$tmpdir/.htaccess" "${final_path}/."
|
||||||
sudo cp -af "$tmpdir/view/smarty3" "${final_path}/view/."
|
sudo cp -af "$tmpdir/view/smarty3" "${final_path}/view/."
|
||||||
sudo cp -af "$tmpdir/config/local.ini.php" "${final_path}/config/."
|
sudo cp -af "$tmpdir/config/local.ini.php" "${final_path}/config/."
|
||||||
|
sudo cp -af "../conf/addon.ini.php" "${final_path}/config/."
|
||||||
|
|
||||||
sudo rm -Rf "$tmpdir"
|
sudo rm -Rf "$tmpdir"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue