From e1cd690a7c26f5fca0e512b9b04873254f0b49ef Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Mon, 23 Apr 2012 18:56:50 +0200 Subject: [PATCH] LDPA: group settings into basic and advanced to look less crowded. Still needs some love. Looks different to the other admin settings, though. --- apps/user_ldap/settings.php | 9 ++++---- apps/user_ldap/templates/settings.php | 31 +++++++++++++++++---------- 2 files changed, 25 insertions(+), 15 deletions(-) diff --git a/apps/user_ldap/settings.php b/apps/user_ldap/settings.php index ad44fe95f9..2226c74609 100644 --- a/apps/user_ldap/settings.php +++ b/apps/user_ldap/settings.php @@ -20,7 +20,10 @@ * License along with this library. If not, see . * */ -$params = array('ldap_host', 'ldap_port', 'ldap_dn', 'ldap_password', 'ldap_base', 'ldap_userlist_filter', 'ldap_login_filter', 'ldap_display_name', 'ldap_tls', 'ldap_nocase'. 'ldap_quota_def', 'ldap_quota_attr', 'ldap_email_attr'); +$params = array('ldap_host', 'ldap_port', 'ldap_dn', 'ldap_password', 'ldap_base', 'ldap_base_users', 'ldap_base_groups', 'ldap_userlist_filter', 'ldap_login_filter', 'ldap_display_name', 'ldap_tls', 'ldap_nocase'. 'ldap_quota_def', 'ldap_quota_attr', 'ldap_email_attr'); + +OC_Util::addScript('user_ldap', 'settings'); +OC_Util::addStyle('user_ldap', 'settings'); if ($_POST) { foreach($params as $param){ @@ -45,10 +48,8 @@ foreach($params as $param){ $tmpl->assign($param, $value); } -// ldap_port has a default value +// settings with default values $tmpl->assign( 'ldap_port', OC_Appconfig::getValue('user_ldap', 'ldap_port', OC_USER_BACKEND_LDAP_DEFAULT_PORT)); - -// ldap_display_name has a default value $tmpl->assign( 'ldap_display_name', OC_Appconfig::getValue('user_ldap', 'ldap_display_name', OC_USER_BACKEND_LDAP_DEFAULT_DISPLAY_NAME)); return $tmpl->fetchPage(); diff --git a/apps/user_ldap/templates/settings.php b/apps/user_ldap/templates/settings.php index 828c72cba9..7e327bb070 100644 --- a/apps/user_ldap/templates/settings.php +++ b/apps/user_ldap/templates/settings.php @@ -1,21 +1,30 @@
-
- LDAP -

-

+
+ +
+

t('Leave both empty for anonymous bind for search, then bind with users credentials.');?>

-

t('use %%uid placeholder, e.g. uid=%%uid');?>

-

t('without any placeholder, e.g. "objectClass=person".');?>

-

- t('Currently the display name field needs to be the same you matched %%uid against in the filter above, because ownCloud doesn\'t distinguish between user id and user name.');?>

+

t('without any placeholder, e.g. "objectClass=person".');?>

+
+
+

+

+

>

>

+

+ t('Currently the display name field needs to be the same you matched %%uid against in the filter above, because ownCloud doesn\'t distinguish between user id and user name.');?>

- bytes

-

- + bytes

+

+ +
+