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.) 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 ;-)