wizardDetectorTestLoginName.js 784 B

123456789101112131415161718192021222324252627282930
  1. /**
  2. * Copyright (c) 2015, Arthur Schiwon <blizzz@owncloud.com>
  3. * This file is licensed under the Affero General Public License version 3 or later.
  4. * See the COPYING-README file.
  5. */
  6. OCA = OCA || {};
  7. (function() {
  8. /**
  9. * @classdesc checks whether the provided log in name can be resolved into
  10. * a DN using the current login filter
  11. *
  12. * @constructor
  13. */
  14. var WizardDetectorTestLoginName = OCA.LDAP.Wizard.WizardDetectorTestAbstract.subClass({
  15. /** @inheritdoc */
  16. init: function() {
  17. // given, it is not a configuration key
  18. this.setTargetKey('ldap_test_loginname');
  19. this.testName = 'TestLoginName';
  20. this.wizardMethod = 'testLoginName';
  21. this.runsOnRequest = true;
  22. }
  23. });
  24. OCA.LDAP.Wizard.WizardDetectorTestLoginName = WizardDetectorTestLoginName;
  25. })();