Re: ldap_bind issues
No.
On Dec 29, 7:10 pm, "Richard" <root@localhost> wrote:
"mtuller" <mitul...@xxxxxxxxx> wrote in message
news:0d13e96c-00e9-4fbe-837b-76d3a414c98d@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I have been attempting to do a bind to an LDAP server that requires
SSL. No matter what I do though, the bind fails. I have tried
everything I can think to try, but this is not working. The server
admins think the server is setup correctly, but I am beginning to
think differently. Here is the code I have:
<?php
$surname = "T";
//Connect
$connect = ldap_connect("ldaps://ldapserver.com", "636");
ldap_set_option($connect, LDAP_OPT_PROTOCOL_VERSION, 3);
//Bind to the ldap directory
$bd =
ldap_bind($connect,"cn=me,ou=People,o=work,c=US","password")
or die("Couldn't bind to LDAP server!");
$filter="(|(sn=$surname*))";
//Search the directory
$result = ldap_search($connect, "ou=People,o=work,c=US",
$filter);
//Create result set
$entries = ldap_get_entries($connect, $result);
//Sort and print
echo "User count: " . $entries["count"] . "<br /><br
/><b>Users:</
b><br />";
for ($i=0; $i < $entries["count"]; $i++)
{
echo $entries[$i]["displayname"][0]."<br />";
}
ldap_unbind($connect);
?>
Hi,
any messages returned?
R.
.
Relevant Pages
- Re: ldap_bind issues
... No matter what I do though, the bind fails. ... admins think the server is setup correctly, ... //Bind to the ldap directory ... (comp.lang.php) - Re: Fedora Desktop future- RedHat moves
... in marketing and they still manage only 30% of the server market. ... I don't as yet know what Ubuntu's niche is - windows malcontents? ... servers due to the desktop support as well as gui management tools. ... Part of the issue in the past has been many admins that new Unix found ... (Fedora) - Re: How to restrict DC privileges for Site Admins?
... By allowing those admins to log on into to the DCs you're granting them the necessary rights so that they can do whatever they want, even if they're members of backup operators or any other lowlevel group. ... You said that they need to perform maintenance tasks on the DCs, Like Backups and shutdown/restart the server, create user accounts, well to perform these tasks these admins don't need to logon the server, they can do that remotely with mmc console, etc... ... My problem, however, is the domain controller: ... (microsoft.public.windows.server.active_directory) - Re: How to restrict DC privileges for Site Admins?
... By allowing those admins to log on into to the DCs you're granting them the ... members of backup operators or any other lowlevel group. ... Backups and shutdown/restart the server, create user accounts, well to ... his/her "own" domain controller in order to perform relatively simple ... (microsoft.public.windows.server.active_directory) - Re: Migration EXC 2003 to 2007
... I'am trying to remove E2K7 sp1 and reinstall it but i'am stuck on the last public folder, E2K7 asks me to move the last public folder to an other server before uninstall all roles. ... the OU has been created and the exchange organisations admins were empty and exchange servers only contained the 2K7 server. ... exchange 2007 there was new OU created called MSExchange Security Group and it has the following in there: ... (microsoft.public.exchange.setup) |
|