![]() |
I can't connect to my LDAP with danlavu's code.
Dear Malcolmx, I'm waiting your new plugin. I hope it will successful. |
If you want, pastebin what you have and I can take a look at it, because its working fine for me. Also if you modify controller.debug.php and make the changes, it'll give you a lot more information on what the error is, if you can pastebin that I certain i can help you get it working.
|
Dear danlavu,
Thanks for support. Can you send me your "controller.php" file you have repair it or you send me your plugin you config. Thanks so much |
Dracula,
I found a bug in my code, if I can it working without this bug I'll post a solution but in the meanwhile please disregard my solution, it allows users to login as long as they match a username in ldap, no actual authentication occurs. So I apologize for prematurely posting any code. Dan |
OK, I finally got it working properly, here is my controller.php and ldapconfig.inc.php
controller.php (modified ldap parameters to bind to a database, and because I'm using AD, I changed my search filter to 'samaccountname' instead of uid. Code:
<?php Code:
<?php |
For those of you using OpenLDAP, you may need to specify:
PHP Code:
|
Also that whole second connect/bind/search just to get the email address isn't necessary -- we already have in $searchResult. So just do:
PHP Code:
|
i am sorry, that i am was not that active in the last weeks. lots of work to do :( thanks for every one helping the other vbulletin users!
-malc |
1 Attachment(s)
Just to help others, it's important to check that you have the php_ldap module, your php info should show something like this:
https://vborg.vbsupport.ru/external/2010/03/47.jpg But I am currently having this problem: Code:
Warning: ldap_search() [function.ldap-search]: Search: Can't contact LDAP server in [path]/ldapAuth/controller.php on line 37 |
Quote:
-malc |
All times are GMT. The time now is 03:35 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|