NEW LDAP IMPLEMENTATION

Hi all,
As there are a lot of problems with the old ldap doekos implementation. I wrote another one. It has all the features the old one had and can be easily customised to do pretty much everything.
Installation
Here is the setp to install it :
1. Download the tar.gz file here : http://www.dokeos.com/download/newldap-dokeos-2.1.tar.gz
1. backup your main/auth/ldap/folder
2. Uncompress the downloaded file to main/auth/ldap/ folder overwriting login.php and newUser.php
And that's it. All your paramters of the old ldap implementaiton will still be taken.
Configuration
To activate ldap, you have to uncomment thos 2 lines in main/inc/conf/configuration.php (as in the old version) :
// Uncomment these lines to activate ldap
$extAuthSource["ldap"]["login"] = $_configuration['root_sys'].$_configuration['code_append']."auth/ldap/login.php";
$extAuthSource["ldap"]["newUser"] = $_configuration['root_sys'].$_configuration['code_append']."auth/ldap/newUser.php";
For a basic configuration, you can use the dokeos administrration section ldap (main/admin/settings.php?category=LDAP)
If you want to do things more complicated, edit the main/auth/ldap/ldap.conf.php file. It is self documented and permit to do a lot of things. See the $ldap_user_correspondance variable
Debug
One thing that has been improved is the debug.
If it does not work, open your error.log file and it should tell you why.
If you have any questions or comment,...
- login of registreer om te reageren

Hi, We experience new
Hi,
We experience new problem here with the dokeos ldap.
---
Hi
Hi,
LDAP issues
Hi,
Ive tried your new LDAP but for some reason i just cannot login or lookup any of my ldap users... so im doing this right, is the search term samaccountname? Or something else???
thanks
Trev
LDAP still no success
Im still have trouble getting any configurations working...
search term is samaccountname right??
Ive tried all i can.... please find a solution soon, this is the only thing stopping our school using this awseome piece of software.
Development issues are listed below if they help you??
http://community.spiceworks.com/topic/195048-php-ldap-on-microsoft-active-directory-troubleshooting
wrong admin account
Hi Graveler,
what have you put in Authentication login field in dokeos configuration interface.
If you open the main/auth/ldap/ldap.conf.php you 'll see that admin_dn is computed as below :
'admin_dn' => 'CN='.api_get_setting('ldap_authentication_login').','.api_get_setting('ldap_domain'),
So if your admin dn is 'CN=admin,dn=...', you just have to put admin in the configuration field.
What did you put in dokeos configuration and what did you put in your other ldap application?
Please note that you can directly edit ldap.conf.php file and put admin_dn directly if you want.
Hope this could help you. If you still have problems post here your admin dn tou've put for dokeos and the one you put in your other ldap application.
Noel
Hi, We use Active Directory
Hi,
We use Active Directory with LDAP Version is 3 and configuration in authentication field is :
cn=Administrator,cn=Users,dc=ourdomain,dc=local
is there any wrong config ?
Well its hardcode and its