Be careful when using ldap_connect with the sun client libraries that come bundled with solaris. When specifyng the host with the ldap protocol, my connection failed and it took me a good day to trouble shoot. ie. ldap_connect("ldap://somwhere.com"); Just remove the 'ldap://' and specify the host. This was on Solaris 10 sparc.