From 542ff9b0825bc2b21137f23026d61c2c9644ef13 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Sun, 18 Mar 2018 23:17:31 -0400 Subject: [PATCH] Move scripts/auth_ejabberd.php to bin/ --- {scripts => bin}/auth_ejabberd.php | 6 +++--- doc/install-ejabberd.md | 6 +++--- src/Util/ExAuth.php | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) rename {scripts => bin}/auth_ejabberd.php (89%) mode change 100755 => 100644 diff --git a/scripts/auth_ejabberd.php b/bin/auth_ejabberd.php old mode 100755 new mode 100644 similarity index 89% rename from scripts/auth_ejabberd.php rename to bin/auth_ejabberd.php index 32aa30898..06d8488df --- a/scripts/auth_ejabberd.php +++ b/bin/auth_ejabberd.php @@ -13,14 +13,14 @@ * Installation: * * - Change it's owner to whichever user is running the server, ie. ejabberd - * $ chown ejabberd:ejabberd /path/to/friendica/scripts/auth_ejabberd.php + * $ chown ejabberd:ejabberd /path/to/friendica/bin/auth_ejabberd.php * * - Change the access mode so it is readable only to the user ejabberd and has exec - * $ chmod 700 /path/to/friendica/scripts/auth_ejabberd.php + * $ chmod 700 /path/to/friendica/bin/auth_ejabberd.php * * - Edit your ejabberd.cfg file, comment out your auth_method and add: * {auth_method, external}. - * {extauth_program, "/path/to/friendica/script/auth_ejabberd.php"}. + * {extauth_program, "/path/to/friendica/bin/auth_ejabberd.php"}. * * - Restart your ejabberd service, you should be able to login with your friendica auth info * diff --git a/doc/install-ejabberd.md b/doc/install-ejabberd.md index 8f95069e6..dbdc0b975 100644 --- a/doc/install-ejabberd.md +++ b/doc/install-ejabberd.md @@ -11,16 +11,16 @@ Installation - Change it's owner to whichever user is running the server, ie. ejabberd - $ chown ejabberd:ejabberd /path/to/friendica/include/auth_ejabberd.php + $ chown ejabberd:ejabberd /path/to/friendica/bin/auth_ejabberd.php - Change the access mode so it is readable only to the user ejabberd and has exec - $ chmod 700 /path/to/friendica/include/auth_ejabberd.php + $ chmod 700 /path/to/friendica/bin/auth_ejabberd.php - Edit your ejabberd.cfg file, comment out your auth_method and add: {auth_method, external}. - {extauth_program, "/path/to/friendica/include/auth_ejabberd.php"}. + {extauth_program, "/path/to/friendica/bin/auth_ejabberd.php"}. - Disable the module "mod_register" and disable the registration: diff --git a/src/Util/ExAuth.php b/src/Util/ExAuth.php index a6851c385..d4436e32a 100644 --- a/src/Util/ExAuth.php +++ b/src/Util/ExAuth.php @@ -13,14 +13,14 @@ * Installation: * * - Change it's owner to whichever user is running the server, ie. ejabberd - * $ chown ejabberd:ejabberd /path/to/friendica/scripts/auth_ejabberd.php + * $ chown ejabberd:ejabberd /path/to/friendica/bin/auth_ejabberd.php * * - Change the access mode so it is readable only to the user ejabberd and has exec - * $ chmod 700 /path/to/friendica/scripts/auth_ejabberd.php + * $ chmod 700 /path/to/friendica/bin/auth_ejabberd.php * * - Edit your ejabberd.cfg file, comment out your auth_method and add: * {auth_method, external}. - * {extauth_program, "/path/to/friendica/script/auth_ejabberd.php"}. + * {extauth_program, "/path/to/friendica/bin/auth_ejabberd.php"}. * * - Restart your ejabberd service, you should be able to login with your friendica auth info *