by Syed Ahmad.
found out the different is :
$ldap_result = ldap_search($ldapconnection, $context,
'(&'.$objectclass.'('.$search_attrib.'='.ldap_filter_addslashes($username).'))',
array($search_attrib));
regardng the objectclass. how to 'not use' object class?
thanks