Reply to ldap_search timeout?

Your name:

Reply:


Posted by Max on 07/06/06 19:45

Hi,

I've got a web GUI in which users can add server IP, ldap base,
username, password to enable connectivity to Active Directory.
Everything works great in the connection, etc. However, if the user
adds the wrong ldap base/filter parameters (which is easy to do), the
LDAP_SEARCH function will hang for the longest time before it times out
and releases the UI. I've tried the following two documented methods to
make the timeout period 3 seconds, but neither effects the long timeout
period at all! Is this a bug or am I doing something wrong?

ldap_set_option($ldap, LDAP_OPT_TIMELIMIT,3);

$result = ldap_search($ldap, $ldapbase,
"userPrincipalName=*",array("cn"),0,0,3,LDAP_DEREF_NEVER);

Anybody know of a way I can get this to work?

Thanks,
Max

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация