Monday, March 7, 2011

ldap_bind(): Unable to bind to server: Protocol error

Note that you have to specify the protocol version prior to making a call to ldap_bind, when the server is expecting LDAP protocol version 3. If you do not, you will receive a warning and fail to bind, such as:

ldap_bind(): Unable to bind to server: Protocol error

In order to avoid this, make this call:

ldap_set_option($ds, LDAP_OPT_PROTOCOL_VERSION, 3);
?>

Where $ds is the result returned by ldap_connect(...);

51 comments:

PRASA said...

Thanks....It was really help full to me.........

Anonymous said...

Thank you very much !
You save my day :)

Anonymous said...

a very big thank you Sir, this really helps me ....

asutenan said...

thanks a lot sir.. :)
gode bless you..

Anonymous said...

Helped me a lot, thanks :D

Unknown said...

thank You so much sir.. :)
it was helpfull for me.

Anonymous said...

THANKS SO MUCH, I WAS LOOKING FOR THIS SOLUTION!!!!!

SARZ said...

Waoo! I was struck in this warning for a long time, BIG Thanks!

SARZ said...

Waoo! I was struck in this warning for a long time, BIG Thanks!

Anonymous said...

It's very kind of you to public this.
Thanks so much.

Anonymous said...

Much obliged - saved me a good half hour of trying to figure out what was wrong.

Anonymous said...

Thanks man !

I was having this problem and just adding the line worked.

Thanks a lot !

Anonymous said...

Thanks a lot man !

That worked great !

Anonymous said...

Thanks! Very useful!!

Mario H. said...

Great, thank you very much. I was looking for hours and hours... :)

Lokesh said...

Thanks you have solved my problem

Anonymous said...

Merci Charith! <3

Unknown said...

Thank you so much!
That was the code line I was missing.

Lý thuyết Windows said...

Great, thank you very much!

Anonymous said...

I love you dude

Anonymous said...

Thank you very much!!!

Malyssia said...

THANKS!!! :D

Anonymous said...

Thanks you. it help me !

Anonymous said...

Thank you :D

Anonymous said...

Wow ,Big thanks. It's really helpful!.

serg said...

Thanks!

Anonymous said...

Thanks, Thanks, Thanks!

Unknown said...

谢谢!

Unknown said...

It is amazing and wonderful to visit your site.Thanks for sharing this information,this is useful to me...

Java training in Chennai

Java training in Bangalore

rajesh said...

Thank You. Saved My Time

Hida said...

Thanks so much

Mounika said...

At this time, it seems like Word Press is the preferred blogging platform available right now. (from what I’ve read) Is that what you’re using on your blog? Great post, however, I was wondering if you could write a little more on this subject?

python training in chennai
python course in chennai
python training in bangalore

Ananya said...
This comment has been removed by the author.
cynthiawilliams said...

Great, this article is quite awesome and I have bookmarked this page for my future reference. Keep blogging like this with the latest info.
DevOps course in Chennai
Best DevOps Training in Chennai
AWS Training in Chennai
AWS Certification in Chennai
RPA Training in Chennai
Robotics Process Automation Training in Chennai
DevOps Training in Anna Nagar
DevOps Training in Chennai

Anbarasan14 said...

This was an awesome blog. Thanks for sharing this information with us. Learnt a new information from your blog.

IELTS Classes in Mumbai
IELTS Coaching in Mumbai
IELTS Mumbai
Best IELTS Coaching in Mumbai
IELTS Center in Mumbai
Spoken English Classes in Chennai
Best Spoken English Classes in Chennai
Spoken English Class in Chennai

Rathinam said...


Nice article! It is very inspiring to me and I am regularly read your new posts. And I want different information from your great blog...
Placement Training in Chennai
Training institutes in Chennai with placement
Oracle DBA Training in Chennai
Social Media Marketing Courses in Chennai
Pega Training in Chennai
Oracle Training in Chennai
Primavera Training in Chennai
Unix Training in Chennai
Placement Training in Vadapalani
Placement Training in Tambaram

Jackie Co Kad said...

Great Article
IEEE Projects on Cloud Computing
Final Year Projects for CSE


JavaScript Training in Chennai
JavaScript Training in Chennai

ROKU.COM/LINK said...

Wonderful blog post, thank you so much for the great information which you provided.
https://rokucomlinks.org/

Softgen Infotech said...

Wonderful thanks for sharing an amazing idea. keep it...

Learn Best SAP S4 HANA Simple Finance Training in Bangalore from Experts. Softgen Infotech offers the Best S4 HANA Simple Finance Training in Bangalore.100% Placement Assistance, Live Classroom Sessions, Only Technical Profiles, 24x7 Lab Infrastructure Support.

Durai Moorthy said...

Very nice post. thanks for sharing with us.

aws Training in Bangalore
python Training in Bangalore
hadoop Training in Bangalore
angular js Training in Bangalore
bigdata analytics Training in Bangalore
python Training in Bangalore
aws Training in Bangalore

j said...

sheck out java books.gretings from my used bookstore

Rajesh Anbu said...

Really nice post. Thank you for sharing amazing information.
aws Training in Bangalore
python Training in Bangalore
hadoop Training in Bangalore
angular js Training in Bangalore
bigdata analytics Training in Bangalore
python Training in Bangalore
aws Training in Bangalore

Salman said...

Effective blog with a lot of information. I just Shared you the link below for Courses .They really provide good level of training and Placement,I just Had Hadoop Classes in this institute , Just Check This Link You can get it more information about the Hadoop course.


Java training in chennai | Java training in annanagar | Java training in omr | Java training in porur | Java training in tambaram | Java training in velachery

subha said...

Particular interviews furnish firsthand message on mart size, industry trends, ontogeny trends, capitalist landscape and outlook, keep it up
Ai & Artificial Intelligence Course in Chennai
PHP Training in Chennai
Ethical Hacking Course in Chennai Blue Prism Training in Chennai
UiPath Training in Chennai

Training for IT and Software Courses said...

I recently came across your article and have been reading along. I want to express my admiration of your writing skill and ability to make readers read from the beginning to the end. I would like to read newer posts and to share my thoughts with you.

python certification Online Training in bangalore

python certification courses in bangalore

python certification classes in bangalore

python certification Online Training institute in bangalore

python certification course syllabus

best python certification Online Training

python certification Online Training centers

Training for IT and Software Courses said...

Such a very useful article. Very interesting to read this article.I would like to thank you for the efforts you had made for writing this awesome article.

SAP BASIS Online Training

SAP BASIS Classes Online

SAP BASIS Training Online

Online SAP BASIS Course

SAP BASIS Course Online


Training for IT and Software Courses said...

Very interesting blog Thank you for sharing such a nice and interesting blog and really very helpful article.

Sailpoint Online Training

Sailpoint Classes Online

Sailpoint Training Online

Online Sailpoint Course

Sailpoint Course Online

sudhan said...

Nice information. Thanks for sharing content and such nice information for me. I hope you will share some more content about. Please keep sharing!

Robotic Process Automation (RPA) Training in Chennai | Robotic Process Automation (RPA) Training in anna nagar | Robotic Process Automation (RPA) Training in omr | Robotic Process Automation (RPA) Training in porur | Robotic Process Automation (RPA) Training in tambaram | Robotic Process Automation (RPA) Training in velachery



radhika said...

Nice information. Thanks for sharing content and such nice information for me. I hope you will share some more content about. Please keep sharing!

AWS training in Chennai

AWS Online Training in Chennai

AWS training in Bangalore

AWS training in Hyderabad

AWS training in Coimbatore

AWS training

Vé máy bay từ Canada về việt nam said...

Mua vé máy bay tại Aivivu, tham khảo

ve may bay di my gia re

vé máy bay từ texas về việt nam

vé máy bay từ Toronto về việt nam

từ nhật về việt nam có bị cách ly không

dat ve may bay tu han quoc ve viet nam

Vé máy bay từ Đài Loan về Việt Nam

khách sạn cách ly ở cam ranh

Anonymous said...

uu06070@gmail.com