aboutsummaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/js/wizard
diff options
context:
space:
mode:
Diffstat (limited to 'apps/user_ldap/js/wizard')
-rw-r--r--apps/user_ldap/js/wizard/configModel.js6
-rw-r--r--apps/user_ldap/js/wizard/controller.js5
-rw-r--r--apps/user_ldap/js/wizard/view.js15
-rw-r--r--apps/user_ldap/js/wizard/wizard.js6
-rw-r--r--apps/user_ldap/js/wizard/wizardDetectorAvailableAttributes.js7
-rw-r--r--apps/user_ldap/js/wizard/wizardDetectorBaseDN.js7
-rw-r--r--apps/user_ldap/js/wizard/wizardDetectorClearGroupMappings.js6
-rw-r--r--apps/user_ldap/js/wizard/wizardDetectorClearUserMappings.js6
-rw-r--r--apps/user_ldap/js/wizard/wizardDetectorEmailAttribute.js6
-rw-r--r--apps/user_ldap/js/wizard/wizardDetectorFeatureAbstract.js6
-rw-r--r--apps/user_ldap/js/wizard/wizardDetectorFilterGroup.js7
-rw-r--r--apps/user_ldap/js/wizard/wizardDetectorFilterLogin.js7
-rw-r--r--apps/user_ldap/js/wizard/wizardDetectorFilterUser.js7
-rw-r--r--apps/user_ldap/js/wizard/wizardDetectorGeneric.js7
-rw-r--r--apps/user_ldap/js/wizard/wizardDetectorGroupCount.js7
-rw-r--r--apps/user_ldap/js/wizard/wizardDetectorGroupObjectClasses.js6
-rw-r--r--apps/user_ldap/js/wizard/wizardDetectorGroupsForGroups.js6
-rw-r--r--apps/user_ldap/js/wizard/wizardDetectorGroupsForUsers.js6
-rw-r--r--apps/user_ldap/js/wizard/wizardDetectorPort.js7
-rw-r--r--apps/user_ldap/js/wizard/wizardDetectorQueue.js6
-rw-r--r--apps/user_ldap/js/wizard/wizardDetectorSimpleRequestAbstract.js7
-rw-r--r--apps/user_ldap/js/wizard/wizardDetectorTestAbstract.js7
-rw-r--r--apps/user_ldap/js/wizard/wizardDetectorTestBaseDN.js6
-rw-r--r--apps/user_ldap/js/wizard/wizardDetectorTestConfiguration.js7
-rw-r--r--apps/user_ldap/js/wizard/wizardDetectorTestLoginName.js6
-rw-r--r--apps/user_ldap/js/wizard/wizardDetectorUserCount.js6
-rw-r--r--apps/user_ldap/js/wizard/wizardDetectorUserDisplayNameAttribute.js6
-rw-r--r--apps/user_ldap/js/wizard/wizardDetectorUserGroupAssociation.js7
-rw-r--r--apps/user_ldap/js/wizard/wizardDetectorUserObjectClasses.js6
-rw-r--r--apps/user_ldap/js/wizard/wizardFilterOnType.js6
-rw-r--r--apps/user_ldap/js/wizard/wizardFilterOnTypeFactory.js5
-rw-r--r--apps/user_ldap/js/wizard/wizardObject.js6
-rw-r--r--apps/user_ldap/js/wizard/wizardTabAbstractFilter.js6
-rw-r--r--apps/user_ldap/js/wizard/wizardTabAdvanced.js152
-rw-r--r--apps/user_ldap/js/wizard/wizardTabElementary.js6
-rw-r--r--apps/user_ldap/js/wizard/wizardTabExpert.js7
-rw-r--r--apps/user_ldap/js/wizard/wizardTabGeneric.js7
-rw-r--r--apps/user_ldap/js/wizard/wizardTabGroupFilter.js5
-rw-r--r--apps/user_ldap/js/wizard/wizardTabLoginFilter.js6
-rw-r--r--apps/user_ldap/js/wizard/wizardTabUserFilter.js6
40 files changed, 253 insertions, 153 deletions
diff --git a/apps/user_ldap/js/wizard/configModel.js b/apps/user_ldap/js/wizard/configModel.js
index d99392660c8..85c87e2ef15 100644
--- a/apps/user_ldap/js/wizard/configModel.js
+++ b/apps/user_ldap/js/wizard/configModel.js
@@ -1,7 +1,7 @@
/**
- * Copyright (c) 2015, Arthur Schiwon <blizzz@owncloud.com>
- * This file is licensed under the Affero General Public License version 3 or later.
- * See the COPYING-README file.
+ * SPDX-FileCopyrightText: 2017 Nextcloud GmbH and Nextcloud contributors
+ * SPDX-FileCopyrightText: 2015 ownCloud, Inc.
+ * SPDX-License-Identifier: AGPL-3.0-or-later
*/
OCA = OCA || {};
diff --git a/apps/user_ldap/js/wizard/controller.js b/apps/user_ldap/js/wizard/controller.js
index 7c1f0d5d818..0bfa0fb7ffd 100644
--- a/apps/user_ldap/js/wizard/controller.js
+++ b/apps/user_ldap/js/wizard/controller.js
@@ -1,7 +1,6 @@
/**
- * Copyright (c) 2015, Arthur Schiwon <blizzz@owncloud.com>
- * This file is licensed under the Affero General Public License version 3 or later.
- * See the COPYING-README file.
+ * SPDX-FileCopyrightText: 2015 ownCloud, Inc.
+ * SPDX-License-Identifier: AGPL-3.0-or-later
*/
OCA = OCA || {};
diff --git a/apps/user_ldap/js/wizard/view.js b/apps/user_ldap/js/wizard/view.js
index 1a89eba3515..ba77d287141 100644
--- a/apps/user_ldap/js/wizard/view.js
+++ b/apps/user_ldap/js/wizard/view.js
@@ -1,7 +1,7 @@
/**
- * Copyright (c) 2015, Arthur Schiwon <blizzz@owncloud.com>
- * This file is licensed under the Affero General Public License version 3 or later.
- * See the COPYING-README file.
+ * SPDX-FileCopyrightText: 2022 Nextcloud GmbH and Nextcloud contributors
+ * SPDX-FileCopyrightText: 2015-2016 ownCloud, Inc.
+ * SPDX-License-Identifier: AGPL-3.0-or-later
*/
OCA = OCA || {};
@@ -40,7 +40,7 @@ OCA = OCA || {};
},
/**
- * applies click events to the forward and backword buttons
+ * applies click events to the forward and backward buttons
*/
initControls: function() {
var view = this;
@@ -86,7 +86,8 @@ OCA = OCA || {};
var agent = view.configModel.configuration.ldap_dn;
var pwd = view.configModel.configuration.ldap_agent_password;
- if((host && port && base) && ((!agent && !pwd) || (agent && pwd))) {
+ if(((host && port && base) || (host && base && host.indexOf('ldapi://') > -1 ))
+ && ((!agent && !pwd) || (agent && pwd))) {
view.enableTabs();
} else {
view.disableTabs();
@@ -107,7 +108,8 @@ OCA = OCA || {};
var userFilter = this.configModel.configuration.ldap_userlist_filter;
var loginFilter = this.configModel.configuration.ldap_login_filter;
- if(host && port && base && userFilter && loginFilter) {
+ if((host && port && base && userFilter && loginFilter) ||
+ (host && base && host.indexOf('ldapi://') > -1 && userFilter && loginFilter)) {
this.configModel.requestConfigurationTest();
} else {
this._updateStatusIndicator(this.STATUS_INCOMPLETE);
@@ -354,7 +356,6 @@ OCA = OCA || {};
this.$settings.tabs({});
$('#ldapSettings button:not(.icon-default-style):not(.ui-multiselect)').button();
$('#ldapSettings').tabs({ beforeActivate: this.onTabChange });
- $('#ldapSettings :input').tooltip({placement: "right", container: "body", trigger: "hover"});
this.initControls();
this.disableTabs();
diff --git a/apps/user_ldap/js/wizard/wizard.js b/apps/user_ldap/js/wizard/wizard.js
index 39ab2e13ef8..b8a3d74b881 100644
--- a/apps/user_ldap/js/wizard/wizard.js
+++ b/apps/user_ldap/js/wizard/wizard.js
@@ -1,7 +1,7 @@
/**
- * Copyright (c) 2015, Arthur Schiwon <blizzz@owncloud.com>
- * This file is licensed under the Affero General Public License version 3 or later.
- * See the COPYING-README file.
+ * SPDX-FileCopyrightText: 2018-2024 Nextcloud GmbH and Nextcloud contributors
+ * SPDX-FileCopyrightText: 2015-2016 ownCloud, Inc.
+ * SPDX-License-Identifier: AGPL-3.0-or-later
*/
OCA = OCA || {};
diff --git a/apps/user_ldap/js/wizard/wizardDetectorAvailableAttributes.js b/apps/user_ldap/js/wizard/wizardDetectorAvailableAttributes.js
index fd43b032ad5..4fae1ef5e99 100644
--- a/apps/user_ldap/js/wizard/wizardDetectorAvailableAttributes.js
+++ b/apps/user_ldap/js/wizard/wizardDetectorAvailableAttributes.js
@@ -1,8 +1,7 @@
-
/**
- * Copyright (c) 2015, Arthur Schiwon <blizzz@owncloud.com>
- * This file is licensed under the Affero General Public License version 3 or later.
- * See the COPYING-README file.
+ * SPDX-FileCopyrightText: 2017 Nextcloud GmbH and Nextcloud contributors
+ * SPDX-FileCopyrightText: 2015 ownCloud, Inc.
+ * SPDX-License-Identifier: AGPL-3.0-or-later
*/
OCA = OCA || {};
diff --git a/apps/user_ldap/js/wizard/wizardDetectorBaseDN.js b/apps/user_ldap/js/wizard/wizardDetectorBaseDN.js
index f81d342b692..3d3bba4f821 100644
--- a/apps/user_ldap/js/wizard/wizardDetectorBaseDN.js
+++ b/apps/user_ldap/js/wizard/wizardDetectorBaseDN.js
@@ -1,8 +1,7 @@
-
/**
- * Copyright (c) 2015, Arthur Schiwon <blizzz@owncloud.com>
- * This file is licensed under the Affero General Public License version 3 or later.
- * See the COPYING-README file.
+ * SPDX-FileCopyrightText: 2017 Nextcloud GmbH and Nextcloud contributors
+ * SPDX-FileCopyrightText: 2015 ownCloud, Inc.
+ * SPDX-License-Identifier: AGPL-3.0-or-later
*/
OCA = OCA || {};
diff --git a/apps/user_ldap/js/wizard/wizardDetectorClearGroupMappings.js b/apps/user_ldap/js/wizard/wizardDetectorClearGroupMappings.js
index c6ef0a9cab1..740fc3a3f6b 100644
--- a/apps/user_ldap/js/wizard/wizardDetectorClearGroupMappings.js
+++ b/apps/user_ldap/js/wizard/wizardDetectorClearGroupMappings.js
@@ -1,8 +1,6 @@
-
/**
- * Copyright (c) 2015, Arthur Schiwon <blizzz@owncloud.com>
- * This file is licensed under the Affero General Public License version 3 or later.
- * See the COPYING-README file.
+ * SPDX-FileCopyrightText: 2015 ownCloud, Inc.
+ * SPDX-License-Identifier: AGPL-3.0-or-later
*/
OCA = OCA || {};
diff --git a/apps/user_ldap/js/wizard/wizardDetectorClearUserMappings.js b/apps/user_ldap/js/wizard/wizardDetectorClearUserMappings.js
index 0e4811b39ea..1032682d926 100644
--- a/apps/user_ldap/js/wizard/wizardDetectorClearUserMappings.js
+++ b/apps/user_ldap/js/wizard/wizardDetectorClearUserMappings.js
@@ -1,8 +1,6 @@
-
/**
- * Copyright (c) 2015, Arthur Schiwon <blizzz@owncloud.com>
- * This file is licensed under the Affero General Public License version 3 or later.
- * See the COPYING-README file.
+ * SPDX-FileCopyrightText: 2015 ownCloud, Inc.
+ * SPDX-License-Identifier: AGPL-3.0-or-later
*/
OCA = OCA || {};
diff --git a/apps/user_ldap/js/wizard/wizardDetectorEmailAttribute.js b/apps/user_ldap/js/wizard/wizardDetectorEmailAttribute.js
index 5f177734681..007a9cc8079 100644
--- a/apps/user_ldap/js/wizard/wizardDetectorEmailAttribute.js
+++ b/apps/user_ldap/js/wizard/wizardDetectorEmailAttribute.js
@@ -1,8 +1,6 @@
-
/**
- * Copyright (c) 2015, Arthur Schiwon <blizzz@owncloud.com>
- * This file is licensed under the Affero General Public License version 3 or later.
- * See the COPYING-README file.
+ * SPDX-FileCopyrightText: 2015 ownCloud, Inc.
+ * SPDX-License-Identifier: AGPL-3.0-or-later
*/
OCA = OCA || {};
diff --git a/apps/user_ldap/js/wizard/wizardDetectorFeatureAbstract.js b/apps/user_ldap/js/wizard/wizardDetectorFeatureAbstract.js
index e025d8d6242..3d43cd369d5 100644
--- a/apps/user_ldap/js/wizard/wizardDetectorFeatureAbstract.js
+++ b/apps/user_ldap/js/wizard/wizardDetectorFeatureAbstract.js
@@ -1,8 +1,6 @@
-
/**
- * Copyright (c) 2015, Arthur Schiwon <blizzz@owncloud.com>
- * This file is licensed under the Affero General Public License version 3 or later.
- * See the COPYING-README file.
+ * SPDX-FileCopyrightText: 2015 ownCloud, Inc.
+ * SPDX-License-Identifier: AGPL-3.0-or-later
*/
OCA = OCA || {};
diff --git a/apps/user_ldap/js/wizard/wizardDetectorFilterGroup.js b/apps/user_ldap/js/wizard/wizardDetectorFilterGroup.js
index f56550a919e..507f7490731 100644
--- a/apps/user_ldap/js/wizard/wizardDetectorFilterGroup.js
+++ b/apps/user_ldap/js/wizard/wizardDetectorFilterGroup.js
@@ -1,8 +1,7 @@
-
/**
- * Copyright (c) 2015, Arthur Schiwon <blizzz@owncloud.com>
- * This file is licensed under the Affero General Public License version 3 or later.
- * See the COPYING-README file.
+ * SPDX-FileCopyrightText: 2017 Nextcloud GmbH and Nextcloud contributors
+ * SPDX-FileCopyrightText: 2015 ownCloud, Inc.
+ * SPDX-License-Identifier: AGPL-3.0-or-later
*/
OCA = OCA || {};
diff --git a/apps/user_ldap/js/wizard/wizardDetectorFilterLogin.js b/apps/user_ldap/js/wizard/wizardDetectorFilterLogin.js
index 7012847193b..827886c840c 100644
--- a/apps/user_ldap/js/wizard/wizardDetectorFilterLogin.js
+++ b/apps/user_ldap/js/wizard/wizardDetectorFilterLogin.js
@@ -1,8 +1,7 @@
-
/**
- * Copyright (c) 2015, Arthur Schiwon <blizzz@owncloud.com>
- * This file is licensed under the Affero General Public License version 3 or later.
- * See the COPYING-README file.
+ * SPDX-FileCopyrightText: 2017 Nextcloud GmbH and Nextcloud contributors
+ * SPDX-FileCopyrightText: 2015 ownCloud, Inc.
+ * SPDX-License-Identifier: AGPL-3.0-or-later
*/
OCA = OCA || {};
diff --git a/apps/user_ldap/js/wizard/wizardDetectorFilterUser.js b/apps/user_ldap/js/wizard/wizardDetectorFilterUser.js
index 3cd2935bd87..11e990a36e0 100644
--- a/apps/user_ldap/js/wizard/wizardDetectorFilterUser.js
+++ b/apps/user_ldap/js/wizard/wizardDetectorFilterUser.js
@@ -1,8 +1,7 @@
-
/**
- * Copyright (c) 2015, Arthur Schiwon <blizzz@owncloud.com>
- * This file is licensed under the Affero General Public License version 3 or later.
- * See the COPYING-README file.
+ * SPDX-FileCopyrightText: 2017 Nextcloud GmbH and Nextcloud contributors
+ * SPDX-FileCopyrightText: 2015 ownCloud, Inc.
+ * SPDX-License-Identifier: AGPL-3.0-or-later
*/
OCA = OCA || {};
diff --git a/apps/user_ldap/js/wizard/wizardDetectorGeneric.js b/apps/user_ldap/js/wizard/wizardDetectorGeneric.js
index 2126828c197..ab1c0c96d99 100644
--- a/apps/user_ldap/js/wizard/wizardDetectorGeneric.js
+++ b/apps/user_ldap/js/wizard/wizardDetectorGeneric.js
@@ -1,8 +1,7 @@
-
/**
- * Copyright (c) 2015, Arthur Schiwon <blizzz@owncloud.com>
- * This file is licensed under the Affero General Public License version 3 or later.
- * See the COPYING-README file.
+ * SPDX-FileCopyrightText: 2017 Nextcloud GmbH and Nextcloud contributors
+ * SPDX-FileCopyrightText: 2015 ownCloud, Inc.
+ * SPDX-License-Identifier: AGPL-3.0-or-later
*/
OCA = OCA || {};
diff --git a/apps/user_ldap/js/wizard/wizardDetectorGroupCount.js b/apps/user_ldap/js/wizard/wizardDetectorGroupCount.js
index d2f3dd978c5..9e29cf093ea 100644
--- a/apps/user_ldap/js/wizard/wizardDetectorGroupCount.js
+++ b/apps/user_ldap/js/wizard/wizardDetectorGroupCount.js
@@ -1,8 +1,7 @@
-
/**
- * Copyright (c) 2015, Arthur Schiwon <blizzz@owncloud.com>
- * This file is licensed under the Affero General Public License version 3 or later.
- * See the COPYING-README file.
+ * SPDX-FileCopyrightText: 2017 Nextcloud GmbH and Nextcloud contributors
+ * SPDX-FileCopyrightText: 2015 ownCloud, Inc.
+ * SPDX-License-Identifier: AGPL-3.0-or-later
*/
OCA = OCA || {};
diff --git a/apps/user_ldap/js/wizard/wizardDetectorGroupObjectClasses.js b/apps/user_ldap/js/wizard/wizardDetectorGroupObjectClasses.js
index 6d6048b7986..cbfb1f91a41 100644
--- a/apps/user_ldap/js/wizard/wizardDetectorGroupObjectClasses.js
+++ b/apps/user_ldap/js/wizard/wizardDetectorGroupObjectClasses.js
@@ -1,8 +1,6 @@
-
/**
- * Copyright (c) 2015, Arthur Schiwon <blizzz@owncloud.com>
- * This file is licensed under the Affero General Public License version 3 or later.
- * See the COPYING-README file.
+ * SPDX-FileCopyrightText: 2015 ownCloud, Inc.
+ * SPDX-License-Identifier: AGPL-3.0-or-later
*/
OCA = OCA || {};
diff --git a/apps/user_ldap/js/wizard/wizardDetectorGroupsForGroups.js b/apps/user_ldap/js/wizard/wizardDetectorGroupsForGroups.js
index fbb3f02e10a..2e898f5317e 100644
--- a/apps/user_ldap/js/wizard/wizardDetectorGroupsForGroups.js
+++ b/apps/user_ldap/js/wizard/wizardDetectorGroupsForGroups.js
@@ -1,8 +1,6 @@
-
/**
- * Copyright (c) 2015, Arthur Schiwon <blizzz@owncloud.com>
- * This file is licensed under the Affero General Public License version 3 or later.
- * See the COPYING-README file.
+ * SPDX-FileCopyrightText: 2015 ownCloud, Inc.
+ * SPDX-License-Identifier: AGPL-3.0-or-later
*/
OCA = OCA || {};
diff --git a/apps/user_ldap/js/wizard/wizardDetectorGroupsForUsers.js b/apps/user_ldap/js/wizard/wizardDetectorGroupsForUsers.js
index fe67854c794..de8407a0edd 100644
--- a/apps/user_ldap/js/wizard/wizardDetectorGroupsForUsers.js
+++ b/apps/user_ldap/js/wizard/wizardDetectorGroupsForUsers.js
@@ -1,8 +1,6 @@
-
/**
- * Copyright (c) 2015, Arthur Schiwon <blizzz@owncloud.com>
- * This file is licensed under the Affero General Public License version 3 or later.
- * See the COPYING-README file.
+ * SPDX-FileCopyrightText: 2015 ownCloud, Inc.
+ * SPDX-License-Identifier: AGPL-3.0-or-later
*/
OCA = OCA || {};
diff --git a/apps/user_ldap/js/wizard/wizardDetectorPort.js b/apps/user_ldap/js/wizard/wizardDetectorPort.js
index 50b1a1b4746..10055cd1cdd 100644
--- a/apps/user_ldap/js/wizard/wizardDetectorPort.js
+++ b/apps/user_ldap/js/wizard/wizardDetectorPort.js
@@ -1,8 +1,7 @@
-
/**
- * Copyright (c) 2015, Arthur Schiwon <blizzz@owncloud.com>
- * This file is licensed under the Affero General Public License version 3 or later.
- * See the COPYING-README file.
+ * SPDX-FileCopyrightText: 2017 Nextcloud GmbH and Nextcloud contributors
+ * SPDX-FileCopyrightText: 2015 ownCloud, Inc.
+ * SPDX-License-Identifier: AGPL-3.0-or-later
*/
OCA = OCA || {};
diff --git a/apps/user_ldap/js/wizard/wizardDetectorQueue.js b/apps/user_ldap/js/wizard/wizardDetectorQueue.js
index b6fa644558e..c00064f5c45 100644
--- a/apps/user_ldap/js/wizard/wizardDetectorQueue.js
+++ b/apps/user_ldap/js/wizard/wizardDetectorQueue.js
@@ -1,8 +1,6 @@
-
/**
- * Copyright (c) 2015, Arthur Schiwon <blizzz@owncloud.com>
- * This file is licensed under the Affero General Public License version 3 or later.
- * See the COPYING-README file.
+ * SPDX-FileCopyrightText: 2015 ownCloud, Inc.
+ * SPDX-License-Identifier: AGPL-3.0-or-later
*/
OCA = OCA || {};
diff --git a/apps/user_ldap/js/wizard/wizardDetectorSimpleRequestAbstract.js b/apps/user_ldap/js/wizard/wizardDetectorSimpleRequestAbstract.js
index 8a1da617aa0..80d14f8466c 100644
--- a/apps/user_ldap/js/wizard/wizardDetectorSimpleRequestAbstract.js
+++ b/apps/user_ldap/js/wizard/wizardDetectorSimpleRequestAbstract.js
@@ -1,8 +1,7 @@
-
/**
- * Copyright (c) 2015, Arthur Schiwon <blizzz@owncloud.com>
- * This file is licensed under the Affero General Public License version 3 or later.
- * See the COPYING-README file.
+ * SPDX-FileCopyrightText: 2017 Nextcloud GmbH and Nextcloud contributors
+ * SPDX-FileCopyrightText: 2015 ownCloud, Inc.
+ * SPDX-License-Identifier: AGPL-3.0-or-later
*/
OCA = OCA || {};
diff --git a/apps/user_ldap/js/wizard/wizardDetectorTestAbstract.js b/apps/user_ldap/js/wizard/wizardDetectorTestAbstract.js
index e371dbf0f63..929ea0e84e8 100644
--- a/apps/user_ldap/js/wizard/wizardDetectorTestAbstract.js
+++ b/apps/user_ldap/js/wizard/wizardDetectorTestAbstract.js
@@ -1,8 +1,7 @@
-
/**
- * Copyright (c) 2015, Arthur Schiwon <blizzz@owncloud.com>
- * This file is licensed under the Affero General Public License version 3 or later.
- * See the COPYING-README file.
+ * SPDX-FileCopyrightText: 2017 Nextcloud GmbH and Nextcloud contributors
+ * SPDX-FileCopyrightText: 2015 ownCloud, Inc.
+ * SPDX-License-Identifier: AGPL-3.0-or-later
*/
OCA = OCA || {};
diff --git a/apps/user_ldap/js/wizard/wizardDetectorTestBaseDN.js b/apps/user_ldap/js/wizard/wizardDetectorTestBaseDN.js
index 52848819bd8..de01726e1c1 100644
--- a/apps/user_ldap/js/wizard/wizardDetectorTestBaseDN.js
+++ b/apps/user_ldap/js/wizard/wizardDetectorTestBaseDN.js
@@ -1,8 +1,6 @@
-
/**
- * Copyright (c) 2015, Arthur Schiwon <blizzz@owncloud.com>
- * This file is licensed under the Affero General Public License version 3 or later.
- * See the COPYING-README file.
+ * SPDX-FileCopyrightText: 2015 ownCloud, Inc.
+ * SPDX-License-Identifier: AGPL-3.0-or-later
*/
OCA = OCA || {};
diff --git a/apps/user_ldap/js/wizard/wizardDetectorTestConfiguration.js b/apps/user_ldap/js/wizard/wizardDetectorTestConfiguration.js
index aed99539384..5049c101f09 100644
--- a/apps/user_ldap/js/wizard/wizardDetectorTestConfiguration.js
+++ b/apps/user_ldap/js/wizard/wizardDetectorTestConfiguration.js
@@ -1,8 +1,7 @@
-
/**
- * Copyright (c) 2015, Arthur Schiwon <blizzz@owncloud.com>
- * This file is licensed under the Affero General Public License version 3 or later.
- * See the COPYING-README file.
+ * SPDX-FileCopyrightText: 2017 Nextcloud GmbH and Nextcloud contributors
+ * SPDX-FileCopyrightText: 2015 ownCloud, Inc.
+ * SPDX-License-Identifier: AGPL-3.0-or-later
*/
OCA = OCA || {};
diff --git a/apps/user_ldap/js/wizard/wizardDetectorTestLoginName.js b/apps/user_ldap/js/wizard/wizardDetectorTestLoginName.js
index 260df5a0fe0..5e0319586b3 100644
--- a/apps/user_ldap/js/wizard/wizardDetectorTestLoginName.js
+++ b/apps/user_ldap/js/wizard/wizardDetectorTestLoginName.js
@@ -1,8 +1,6 @@
-
/**
- * Copyright (c) 2015, Arthur Schiwon <blizzz@owncloud.com>
- * This file is licensed under the Affero General Public License version 3 or later.
- * See the COPYING-README file.
+ * SPDX-FileCopyrightText: 2015 ownCloud, Inc.
+ * SPDX-License-Identifier: AGPL-3.0-or-later
*/
OCA = OCA || {};
diff --git a/apps/user_ldap/js/wizard/wizardDetectorUserCount.js b/apps/user_ldap/js/wizard/wizardDetectorUserCount.js
index bcff2cf3b10..144c64d24be 100644
--- a/apps/user_ldap/js/wizard/wizardDetectorUserCount.js
+++ b/apps/user_ldap/js/wizard/wizardDetectorUserCount.js
@@ -1,8 +1,6 @@
-
/**
- * Copyright (c) 2015, Arthur Schiwon <blizzz@owncloud.com>
- * This file is licensed under the Affero General Public License version 3 or later.
- * See the COPYING-README file.
+ * SPDX-FileCopyrightText: 2015 ownCloud, Inc.
+ * SPDX-License-Identifier: AGPL-3.0-or-later
*/
OCA = OCA || {};
diff --git a/apps/user_ldap/js/wizard/wizardDetectorUserDisplayNameAttribute.js b/apps/user_ldap/js/wizard/wizardDetectorUserDisplayNameAttribute.js
index ae734480c1c..64e5bb50371 100644
--- a/apps/user_ldap/js/wizard/wizardDetectorUserDisplayNameAttribute.js
+++ b/apps/user_ldap/js/wizard/wizardDetectorUserDisplayNameAttribute.js
@@ -1,8 +1,6 @@
-
/**
- * Copyright (c) 2015, Arthur Schiwon <blizzz@owncloud.com>
- * This file is licensed under the Affero General Public License version 3 or later.
- * See the COPYING-README file.
+ * SPDX-FileCopyrightText: 2015 ownCloud, Inc.
+ * SPDX-License-Identifier: AGPL-3.0-or-later
*/
OCA = OCA || {};
diff --git a/apps/user_ldap/js/wizard/wizardDetectorUserGroupAssociation.js b/apps/user_ldap/js/wizard/wizardDetectorUserGroupAssociation.js
index a20bdd9ac9b..a0051532388 100644
--- a/apps/user_ldap/js/wizard/wizardDetectorUserGroupAssociation.js
+++ b/apps/user_ldap/js/wizard/wizardDetectorUserGroupAssociation.js
@@ -1,8 +1,7 @@
-
/**
- * Copyright (c) 2015, Arthur Schiwon <blizzz@owncloud.com>
- * This file is licensed under the Affero General Public License version 3 or later.
- * See the COPYING-README file.
+ * SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors
+ * SPDX-FileCopyrightText: 2015 ownCloud, Inc.
+ * SPDX-License-Identifier: AGPL-3.0-or-later
*/
OCA = OCA || {};
diff --git a/apps/user_ldap/js/wizard/wizardDetectorUserObjectClasses.js b/apps/user_ldap/js/wizard/wizardDetectorUserObjectClasses.js
index 0fa324a0809..13e034e353e 100644
--- a/apps/user_ldap/js/wizard/wizardDetectorUserObjectClasses.js
+++ b/apps/user_ldap/js/wizard/wizardDetectorUserObjectClasses.js
@@ -1,8 +1,6 @@
-
/**
- * Copyright (c) 2015, Arthur Schiwon <blizzz@owncloud.com>
- * This file is licensed under the Affero General Public License version 3 or later.
- * See the COPYING-README file.
+ * SPDX-FileCopyrightText: 2015 ownCloud, Inc.
+ * SPDX-License-Identifier: AGPL-3.0-or-later
*/
OCA = OCA || {};
diff --git a/apps/user_ldap/js/wizard/wizardFilterOnType.js b/apps/user_ldap/js/wizard/wizardFilterOnType.js
index f792b1a99a2..80232ffd91b 100644
--- a/apps/user_ldap/js/wizard/wizardFilterOnType.js
+++ b/apps/user_ldap/js/wizard/wizardFilterOnType.js
@@ -1,7 +1,7 @@
/**
- * Copyright (c) 2015, Arthur Schiwon <blizzz@owncloud.com>
- * This file is licensed under the Affero General Public License version 3 or later.
- * See the COPYING-README file.
+ * SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors
+ * SPDX-FileCopyrightText: 2015 ownCloud, Inc.
+ * SPDX-License-Identifier: AGPL-3.0-or-later
*/
OCA = OCA || {};
diff --git a/apps/user_ldap/js/wizard/wizardFilterOnTypeFactory.js b/apps/user_ldap/js/wizard/wizardFilterOnTypeFactory.js
index bd6511dc8b0..de207574539 100644
--- a/apps/user_ldap/js/wizard/wizardFilterOnTypeFactory.js
+++ b/apps/user_ldap/js/wizard/wizardFilterOnTypeFactory.js
@@ -1,7 +1,6 @@
/**
- * Copyright (c) 2015, Arthur Schiwon <blizzz@owncloud.com>
- * This file is licensed under the Affero General Public License version 3 or later.
- * See the COPYING-README file.
+ * SPDX-FileCopyrightText: 2015 ownCloud, Inc.
+ * SPDX-License-Identifier: AGPL-3.0-or-later
*/
OCA = OCA || {};
diff --git a/apps/user_ldap/js/wizard/wizardObject.js b/apps/user_ldap/js/wizard/wizardObject.js
index a90f1533a26..9ae574d4ffd 100644
--- a/apps/user_ldap/js/wizard/wizardObject.js
+++ b/apps/user_ldap/js/wizard/wizardObject.js
@@ -1,8 +1,6 @@
-
/**
- * Copyright (c) 2015, Arthur Schiwon <blizzz@owncloud.com>
- * This file is licensed under the Affero General Public License version 3 or later.
- * See the COPYING-README file.
+ * SPDX-FileCopyrightText: 2015 ownCloud, Inc.
+ * SPDX-License-Identifier: AGPL-3.0-or-later
*/
OCA = OCA || {};
diff --git a/apps/user_ldap/js/wizard/wizardTabAbstractFilter.js b/apps/user_ldap/js/wizard/wizardTabAbstractFilter.js
index 8312ad909ec..f5cfd4a14fb 100644
--- a/apps/user_ldap/js/wizard/wizardTabAbstractFilter.js
+++ b/apps/user_ldap/js/wizard/wizardTabAbstractFilter.js
@@ -1,7 +1,7 @@
/**
- * Copyright (c) 2015, Arthur Schiwon <blizzz@owncloud.com>
- * This file is licensed under the Affero General Public License version 3 or later.
- * See the COPYING-README file.
+ * SPDX-FileCopyrightText: 2018-2024 Nextcloud GmbH and Nextcloud contributors
+ * SPDX-FileCopyrightText: 2015 ownCloud, Inc.
+ * SPDX-License-Identifier: AGPL-3.0-or-later
*/
OCA = OCA || {};
diff --git a/apps/user_ldap/js/wizard/wizardTabAdvanced.js b/apps/user_ldap/js/wizard/wizardTabAdvanced.js
index be98072dcb3..8f0d0aa7973 100644
--- a/apps/user_ldap/js/wizard/wizardTabAdvanced.js
+++ b/apps/user_ldap/js/wizard/wizardTabAdvanced.js
@@ -1,8 +1,7 @@
-
/**
- * Copyright (c) 2015, Arthur Schiwon <blizzz@owncloud.com>
- * This file is licensed under the Affero General Public License version 3 or later.
- * See the COPYING-README file.
+ * SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
+ * SPDX-FileCopyrightText: 2016 ownCloud, Inc.
+ * SPDX-License-Identifier: AGPL-3.0-or-later
*/
OCA = OCA || {};
@@ -67,6 +66,10 @@ OCA = OCA || {};
$element: $('#ldap_attributes_for_user_search'),
setMethod: 'setSearchAttributesUsers'
},
+ ldap_mark_remnants_as_disabled: {
+ $element: $('#ldap_mark_remnants_as_disabled'),
+ setMethod: 'setMarkRemnantsAsDisabled'
+ },
ldap_group_display_name: {
$element: $('#ldap_group_display_name'),
setMethod: 'setGroupDisplayName'
@@ -125,6 +128,48 @@ OCA = OCA || {};
$element: $('#ldap_ext_storage_home_attribute'),
setMethod: 'setExternalStorageHomeAttribute'
},
+
+ //User Profile Attributes
+ ldap_attr_phone: {
+ $element: $('#ldap_attr_phone'),
+ setMethod: 'setPhoneAttribute'
+ },
+ ldap_attr_website: {
+ $element: $('#ldap_attr_website'),
+ setMethod: 'setWebsiteAttribute'
+ },
+ ldap_attr_address: {
+ $element: $('#ldap_attr_address'),
+ setMethod: 'setAddressAttribute'
+ },
+ ldap_attr_twitter: {
+ $element: $('#ldap_attr_twitter'),
+ setMethod: 'setTwitterAttribute'
+ },
+ ldap_attr_fediverse: {
+ $element: $('#ldap_attr_fediverse'),
+ setMethod: 'setFediverseAttribute'
+ },
+ ldap_attr_organisation: {
+ $element: $('#ldap_attr_organisation'),
+ setMethod: 'setOrganisationAttribute'
+ },
+ ldap_attr_role: {
+ $element: $('#ldap_attr_role'),
+ setMethod: 'setRoleAttribute'
+ },
+ ldap_attr_headline: {
+ $element: $('#ldap_attr_headline'),
+ setMethod: 'setHeadlineAttribute'
+ },
+ ldap_attr_biography: {
+ $element: $('#ldap_attr_biography'),
+ setMethod: 'setBiographyAttribute'
+ },
+ ldap_attr_birthdate: {
+ $element: $('#ldap_attr_birthdate'),
+ setMethod: 'setBirthdateAttribute'
+ },
};
this.setManagedItems(items);
},
@@ -238,6 +283,15 @@ OCA = OCA || {};
},
/**
+ * enables or disables marking remnants as disabled
+ *
+ * @param {string} markRemnantsAsDisabled contains an int
+ */
+ setMarkRemnantsAsDisabled: function(markRemnantsAsDisabled) {
+ this.setElementValue(this.managedItems.ldap_mark_remnants_as_disabled.$element, markRemnantsAsDisabled);
+ },
+
+ /**
* sets the display name attribute for groups
*
* @param {string} attribute
@@ -367,6 +421,96 @@ OCA = OCA || {};
},
/**
+ * sets the attribute for the Nextcloud user profile phone Number
+ *
+ * @param {string} attribute
+ */
+ setPhoneAttribute: function(attribute) {
+ this.setElementValue(this.managedItems.ldap_attr_phone.$element, attribute);
+ },
+
+ /**
+ * sets the attribute for the Nextcloud user profile website
+ *
+ * @param {string} attribute
+ */
+ setWebsiteAttribute: function(attribute) {
+ this.setElementValue(this.managedItems.ldap_attr_website.$element, attribute);
+ },
+
+ /**
+ * sets the attribute for the Nextcloud user profile postal address
+ *
+ * @param {string} attribute
+ */
+ setAddressAttribute: function(attribute) {
+ this.setElementValue(this.managedItems.ldap_attr_address.$element, attribute);
+ },
+
+ /**
+ * sets the attribute for the Nextcloud user profile twitter
+ *
+ * @param {string} attribute
+ */
+ setTwitterAttribute: function(attribute) {
+ this.setElementValue(this.managedItems.ldap_attr_twitter.$element, attribute);
+ },
+
+ /**
+ * sets the attribute for the Nextcloud user profile fediverse
+ *
+ * @param {string} attribute
+ */
+ setFediverseAttribute: function(attribute) {
+ this.setElementValue(this.managedItems.ldap_attr_fediverse.$element, attribute);
+ },
+
+ /**
+ * sets the attribute for the Nextcloud user profile organisation
+ *
+ * @param {string} attribute
+ */
+ setOrganisationAttribute: function(attribute) {
+ this.setElementValue(this.managedItems.ldap_attr_organisation.$element, attribute);
+ },
+
+ /**
+ * sets the attribute for the Nextcloud user profile role
+ *
+ * @param {string} attribute
+ */
+ setRoleAttribute: function(attribute) {
+ this.setElementValue(this.managedItems.ldap_attr_role.$element, attribute);
+ },
+
+ /**
+ * sets the attribute for the Nextcloud user profile headline
+ *
+ * @param {string} attribute
+ */
+ setHeadlineAttribute: function(attribute) {
+ this.setElementValue(this.managedItems.ldap_attr_headline.$element, attribute);
+ },
+
+ /**
+ * sets the attribute for the Nextcloud user profile biography
+ *
+ * @param {string} attribute
+ */
+ setBiographyAttribute: function(attribute) {
+ this.setElementValue(this.managedItems.ldap_attr_biography.$element, attribute);
+ },
+
+ /**
+ * sets the attribute for the Nextcloud user profile birthday
+ *
+ * @param {string} attribute
+ */
+ setBirthdateAttribute: function(attribute) {
+ this.setElementValue(this.managedItems.ldap_attr_birthdate.$element, attribute);
+ },
+
+ /**
* deals with the result of the Test Connection test
*
* @param {WizardTabAdvanced} view
diff --git a/apps/user_ldap/js/wizard/wizardTabElementary.js b/apps/user_ldap/js/wizard/wizardTabElementary.js
index 7dbb9998064..2a04d773058 100644
--- a/apps/user_ldap/js/wizard/wizardTabElementary.js
+++ b/apps/user_ldap/js/wizard/wizardTabElementary.js
@@ -1,8 +1,8 @@
/**
- * Copyright (c) 2015, Arthur Schiwon <blizzz@owncloud.com>
- * This file is licensed under the Affero General Public License version 3 or later.
- * See the COPYING-README file.
+ * SPDX-FileCopyrightText: 2017-2024 Nextcloud GmbH and Nextcloud contributors
+ * SPDX-FileCopyrightText: 2015 ownCloud, Inc.
+ * SPDX-License-Identifier: AGPL-3.0-or-later
*/
OCA = OCA || {};
diff --git a/apps/user_ldap/js/wizard/wizardTabExpert.js b/apps/user_ldap/js/wizard/wizardTabExpert.js
index 61a1b8c9aa3..4848ced40fe 100644
--- a/apps/user_ldap/js/wizard/wizardTabExpert.js
+++ b/apps/user_ldap/js/wizard/wizardTabExpert.js
@@ -1,8 +1,7 @@
-
/**
- * Copyright (c) 2015, Arthur Schiwon <blizzz@owncloud.com>
- * This file is licensed under the Affero General Public License version 3 or later.
- * See the COPYING-README file.
+ * SPDX-FileCopyrightText: 2017-2024 Nextcloud GmbH and Nextcloud contributors
+ * SPDX-FileCopyrightText: 2015 ownCloud, Inc.
+ * SPDX-License-Identifier: AGPL-3.0-or-later
*/
OCA = OCA || {};
diff --git a/apps/user_ldap/js/wizard/wizardTabGeneric.js b/apps/user_ldap/js/wizard/wizardTabGeneric.js
index 89ae257d368..3496dee5009 100644
--- a/apps/user_ldap/js/wizard/wizardTabGeneric.js
+++ b/apps/user_ldap/js/wizard/wizardTabGeneric.js
@@ -1,8 +1,7 @@
-
/**
- * Copyright (c) 2015, Arthur Schiwon <blizzz@owncloud.com>
- * This file is licensed under the Affero General Public License version 3 or later.
- * See the COPYING-README file.
+ * SPDX-FileCopyrightText: 2017-2024 Nextcloud GmbH and Nextcloud contributors
+ * SPDX-FileCopyrightText: 2015-2016 ownCloud, Inc.
+ * SPDX-License-Identifier: AGPL-3.0-or-later
*/
OCA = OCA || {};
diff --git a/apps/user_ldap/js/wizard/wizardTabGroupFilter.js b/apps/user_ldap/js/wizard/wizardTabGroupFilter.js
index 3fbff9de9a0..850387b4589 100644
--- a/apps/user_ldap/js/wizard/wizardTabGroupFilter.js
+++ b/apps/user_ldap/js/wizard/wizardTabGroupFilter.js
@@ -1,7 +1,6 @@
/**
- * Copyright (c) 2015, Arthur Schiwon <blizzz@owncloud.com>
- * This file is licensed under the Affero General Public License version 3 or later.
- * See the COPYING-README file.
+ * SPDX-FileCopyrightText: 2015-2016 ownCloud, Inc.
+ * SPDX-License-Identifier: AGPL-3.0-or-later
*/
OCA = OCA || {};
diff --git a/apps/user_ldap/js/wizard/wizardTabLoginFilter.js b/apps/user_ldap/js/wizard/wizardTabLoginFilter.js
index 774c02dbf4a..d907957ac95 100644
--- a/apps/user_ldap/js/wizard/wizardTabLoginFilter.js
+++ b/apps/user_ldap/js/wizard/wizardTabLoginFilter.js
@@ -1,7 +1,7 @@
/**
- * Copyright (c) 2015, Arthur Schiwon <blizzz@owncloud.com>
- * This file is licensed under the Affero General Public License version 3 or later.
- * See the COPYING-README file.
+ * SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
+ * SPDX-FileCopyrightText: 2015-2016 ownCloud, Inc.
+ * SPDX-License-Identifier: AGPL-3.0-or-later
*/
OCA = OCA || {};
diff --git a/apps/user_ldap/js/wizard/wizardTabUserFilter.js b/apps/user_ldap/js/wizard/wizardTabUserFilter.js
index b57aa54db69..00aa62f0cd7 100644
--- a/apps/user_ldap/js/wizard/wizardTabUserFilter.js
+++ b/apps/user_ldap/js/wizard/wizardTabUserFilter.js
@@ -1,7 +1,7 @@
/**
- * Copyright (c) 2015, Arthur Schiwon <blizzz@owncloud.com>
- * This file is licensed under the Affero General Public License version 3 or later.
- * See the COPYING-README file.
+ * SPDX-FileCopyrightText: 2021 Nextcloud GmbH and Nextcloud contributors
+ * SPDX-FileCopyrightText: 2015-2016 ownCloud, Inc.
+ * SPDX-License-Identifier: AGPL-3.0-or-later
*/
OCA = OCA || {};