I have LDAP enabled on my Joomla Server. The thing is when LDAP creates a user in Joomla, it is automatically activated. Where does it set the value of block? I want to pre-configure the code for every user that is created by LDAP to be blocked first and require admin's activation.
Just to give you an other idea how we build a similar construct for our joomla based installations around the world:
1.) Go to the "Viewing Access Levels", and open the "Registred" users ACL menu entry:
2.) Copy that one and name it "approved-users"
3.)
In the global settings change the default access level to "approved-users"
3.) Reconfigure your side (modules, pages, menus, ...) so that only the access level "approved-users" can use them. Here is an example for that section for an module entry:
4.) You also could configure a default page only for the user group "registred" which said "Sorry, but an administrator need to approve your account, come back tomorrow".
There is really no "hack" from some Joomla core files needed ;-)
plugins\authentication\ldap\ldap.php
andplugins\authentication\ldap\ldap.php
are the only files I can imagine are involved in this process – Lodder Mar 26 '15 at 8:16libraries\joomla\client\ldap.php
– Lodder Mar 26 '15 at 8:27