Coppermine LDAP Bridge v2.0As the name implies, this is the LDAP bridge. You can find the bridge and the configuration file attached to this post.
What is the LDAP Bridge?LDAP bridge is a standard Coppermine Bridge. This bridge allows authorization of users through an LDAP server. Tested on CPG v1.5.20.
How can I use it?- First, you need to set up your configuration in the config_ldap.inc.php file. I have tried to explain the details in that file.
- Place the configuration file to the "include" folder of your CPG installation.
- Upload the bridge file in the "bridges" folder.
- Use the Bridge Manager inside CPG to activate.
- The user having user_id = 1 (that is the first user you have created when you are installing CPG) will be always active, even if your LDAP server crashes.
Do I need to LDAP users to the CPG database before they log in?In the previous version of the bridge, you need to, but in v2.0, the bridge automatically manages user operations. The bridge checks the username and password from the LDAP server and after successful authorization, the bridge checks for the user availability in the users table. If user is not available, the bridge creates the user entry but does not save the password. The user entry in the users table is needed for session checks of CPG.
If user_id = 1, the bridge will use local DB for authorization. If user_id > 1, the bridge always uses LDAP server.
What about groups?Groups are still work-in-progress.
What about Active Directory?I am planning to integrate AD authorization in the LDAP bridge, or I may build a new bridge. Just give me a couple of weeks

I am open to all suggestions and requests regarding to this bridge. Also, comments are welcome
