summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/js
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2013-10-10 01:21:05 +0200
committerArthur Schiwon <blizzz@owncloud.com>2013-10-17 19:13:28 +0200
commit109ddde944ae17621c4680d9c7172eb585b1626d (patch)
treee3c68ab17b4d1acbf6a8c1e866df723688bb7e0a /apps/user_ldap/js
parent5606b60f36e0f6c34c18694a2a19f6446c6b2618 (diff)
downloadnextcloud-server-109ddde944ae17621c4680d9c7172eb585b1626d.tar.gz
nextcloud-server-109ddde944ae17621c4680d9c7172eb585b1626d.zip
Wizard: autodetection of group-member-assoc attribute
Diffstat (limited to 'apps/user_ldap/js')
-rw-r--r--apps/user_ldap/js/settings.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/apps/user_ldap/js/settings.js b/apps/user_ldap/js/settings.js
index 049df9b8b17..6b1f363bbaf 100644
--- a/apps/user_ldap/js/settings.js
+++ b/apps/user_ldap/js/settings.js
@@ -226,6 +226,7 @@ var LdapWizard = {
LdapWizard.countUsers();
} else if(type == 'group') {
LdapWizard.countGroups();
+ LdapWizard.detectGroupMemberAssoc();
}
},
function (result) {
@@ -256,6 +257,20 @@ var LdapWizard = {
LdapWizard._countThings('countUsers');
},
+ detectGroupMemberAssoc: function() {
+ param = 'action=determineGroupMemberAssoc'+
+ '&ldap_serverconfig_chooser='+$('#ldap_serverconfig_chooser').val();
+
+ LdapWizard.ajax(param,
+ function(result) {
+ //pure background story
+ },
+ function (result) {
+ // error handling
+ }
+ );
+ },
+
findAttributes: function() {
param = 'action=determineAttributes'+
'&ldap_serverconfig_chooser='+$('#ldap_serverconfig_chooser').val();
@@ -395,6 +410,7 @@ var LdapWizard = {
LdapWizard.countUsers();
} else if(triggerObj.id == 'ldap_group_filter') {
LdapWizard.countGroups();
+ LdapWizard.detectGroupMemberAssoc();
}
if(triggerObj.id == 'ldap_loginfilter_username'