diff options
Diffstat (limited to 'sync.php')
-rwxr-xr-x | sync.php | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -14,6 +14,24 @@ init_ldap(); // config $dry_run = in_array('--dryrun', $argv) || in_array('-n', $argv); $verbose = in_array('--verbose', $argv) || in_array('-v', $argv); +$help = in_array('--help', $argv) || in_array('-h', $argv) || in_array('-?', $argv); + +if ($help) { + $text = <<<EOH +This script could be used to delete phpBB users, that does not exists +anymore in a ldap tree used for authentification. The users are marked +with "*LDAP*" as password. + +usage: ${argv[0]} [--dryrun] [--verbose] [--help] + + --dryrun -n Do not actually delete the user but printing it only. + --verbose -v Also display the users that exists in the ldap tree. + --help -h -? Display this message. +EOH; + + print("$text\n"); + exit; +} /** * Check if a given username exist in the ldap tree. Uses the configured ldap settings |