|Classes of Klaus Silveira||>||Simple LDAP||>||README.txt||>||Download|
SimpleLDAP is a small library that implements an abstraction layer for LDAP server communication using PHP. It makes your life easier when you need to authenticate users through an LDAP server and/or when you need to perform CRUD actions on it. It's meant to be simple and easy to use. If you need more robust solutions, feel free to expand from SimpleLDAP and create... well, ComplexLDAP.
Authors and contributors
SimpleLDAP is currently under development by the community and is just starting. Feel free to suggest improvements and provide heavy feedback. We really want to hear it! (Seriously, we do!)
The idea behind SimpleLDAP is to keep things very easy to use, without headaches. In order to start using SimpleLDAP, you'll have to provide a few details, otherwise it won't be able to do it's magic.
That's it. Now you're able to connect and authenticate to an LDAP server.
The auth method will return the user information as an array if the authentication is successful, and false if it wasn't.
If you want to perform administrative actions on the server, such as CRUD, you'll have to bind as an user with administrative rights. That's what the ADN and APass properties are for. They are required for the CRUD actions to be performed correctly.
Now you can add, remove, modify and list users on the server.
You can list users based on a filter and SimpleLDAP will return an array with information about each users that matched that filter. You can read more about those filters here: http://www.mozilla.org/directory/csdk-docs/filter.htm
In order to create users, you just need to pass the username you want to create and it's directory information. The directory information should be inside an array.
In order to remove users, you just need to pass the username you want to remove.
In order to modify users, you just need to pass the username you want to modify and the new information.