You are here: Fedora - php - ldap - w2003 « PHP Programming Language « IT news, forums, messages
Fedora - php - ldap - w2003

Posted by h00s on 02/05/06 14:19

I have problem with binding on active directory from php (fedora4
core)

There is 2 machines. On one machine is w2003 with succesfully
installed AD. The other machine is Fedora4 with out-of-the-box
installed Apache, php and mysql. In php.ini is loaded module for ldap.
The goal is to query AD from php to check username and password.

This is code:
// ------------
$ldap_server = "ldap://192.168.0.1";
$auth_user = "Administrator";
$auth_pass = "password";

if (!($connect=@ldap_connect($ldap_server))) {
die ("unable to connect");
}

if (!($bind=@ldap_bind($connect, $auth_user, $auth_pass))) {
die("unable to bind");
}
// -------------

Code die at binding.
Is there something i am doing wrong? Or is it something more to config
(php/linux)?

Thank you and sorry for the long post!
--
- Marketer to coder: "You start coding. I'll go find out what they want." -
kruno(at)binel(dot)hr | uin: 2040925

 

Navigation:

[Reply to this 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

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