Monday, March 21, 2011

X startup failed in Fedora 10

When I install fedora 10 in my PC it does not show the X start up. It performs the text mode installation.

* If the graphic card is not support or can not be auto detected the installer goes to the text mode.

* You can try the xdriver=vesa to force graphical install using the VESA graphics driver.

* To do this you have to edit boot option.

*Press tab button and enter xdriver=vesa

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(...);

Solved PHP LDAP error - Fatal error: Call to undefined function ldap_connect()


1. find the php.ini file in apache bin folder

2. In php.ini, enable setting extension=php_ldap.dll
- find the line with this setting
- remove the comment-indicating semicolon in front of it
- save php.ini
- restart apache

User authentication with LDAP server sample code

ldap_set_option($ds, LDAP_OPT_PROTOCOL_VERSION, 3);
$ldapconfig['host'] =';// IP Address
$ldapconfig['port'] = 389; //port(default port is 389)
$ldapconfig['basedn'] ='dc=yyy,dc=yy';

$ds=ldap_connect($ldapconfig['host'], $ldapconfig['port']);


if ($bind=ldap_bind($ds, $dn, $password))
echo("Login correct");

echo("Unable to bind to server.