summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/tests
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2015-06-30 14:09:11 +0200
committerArthur Schiwon <blizzz@owncloud.com>2015-06-30 14:09:11 +0200
commit5f4db0540af272e4dbb29b550eb6e93904ea26e7 (patch)
tree957f938fecb27ed38922ce60245c16d2b03e1955 /apps/user_ldap/tests
parent646f2f1d414cd782f0a176b750915001c457863a (diff)
downloadnextcloud-server-5f4db0540af272e4dbb29b550eb6e93904ea26e7.tar.gz
nextcloud-server-5f4db0540af272e4dbb29b550eb6e93904ea26e7.zip
tests solidity
Diffstat (limited to 'apps/user_ldap/tests')
-rwxr-xr-xapps/user_ldap/tests/.htaccess14
-rw-r--r--apps/user_ldap/tests/integration/setup-scripts/createExplicitGroups.php5
-rw-r--r--apps/user_ldap/tests/integration/setup-scripts/createExplicitUsers.php5
3 files changed, 24 insertions, 0 deletions
diff --git a/apps/user_ldap/tests/.htaccess b/apps/user_ldap/tests/.htaccess
new file mode 100755
index 00000000000..5e068d28661
--- /dev/null
+++ b/apps/user_ldap/tests/.htaccess
@@ -0,0 +1,14 @@
+# Generated by ownCloud on 2015-06-18 14:16:40
+# line below if for Apache 2.4
+<ifModule mod_authz_core.c>
+Require all denied
+</ifModule>
+
+# line below if for Apache 2.2
+<ifModule !mod_authz_core.c>
+deny from all
+Satisfy All
+</ifModule>
+
+# section for Apache 2.2 and 2.4
+IndexIgnore *
diff --git a/apps/user_ldap/tests/integration/setup-scripts/createExplicitGroups.php b/apps/user_ldap/tests/integration/setup-scripts/createExplicitGroups.php
index 60166dec26a..68854de5571 100644
--- a/apps/user_ldap/tests/integration/setup-scripts/createExplicitGroups.php
+++ b/apps/user_ldap/tests/integration/setup-scripts/createExplicitGroups.php
@@ -1,5 +1,10 @@
<?php
+if(php_sapi_name() !== 'cli') {
+ print('Only via CLI, please.');
+ exit(1);
+}
+
include __DIR__ . '/config.php';
$cr = ldap_connect($host, $port);
diff --git a/apps/user_ldap/tests/integration/setup-scripts/createExplicitUsers.php b/apps/user_ldap/tests/integration/setup-scripts/createExplicitUsers.php
index 957c25236fd..ac21d48fd16 100644
--- a/apps/user_ldap/tests/integration/setup-scripts/createExplicitUsers.php
+++ b/apps/user_ldap/tests/integration/setup-scripts/createExplicitUsers.php
@@ -1,5 +1,10 @@
<?php
+if(php_sapi_name() !== 'cli') {
+ print('Only via CLI, please.');
+ exit(1);
+}
+
include __DIR__ . '/config.php';
$cr = ldap_connect($host, $port);