[Kroupware] could not bind anonymously -- error
Holger Schröder
kroupware@mail.kde.org
Sat, 29 Mar 2003 08:18:34 +0100
Hi,
i successfully installed a kolab server on my gentoo box. it works quite fine,
but the QIM manual is not very good, as the packages to build are listed in
the wrong order and the apache rpm does not build with rpm -bb at all...
after i got aroung these problems, i had only one problem, i had to do the
following changes to the file
/kolab/var/kolab/www/admin/include/ldap_utils.php to "fix" the error messages
saying "could not bind anonymously" when i had successfully logged into the
kolab web interface.
can somebody tell me if this is really needed, or what else went wrong for me?
does this have any security implications?
thanks, Holger
--- ldap_utils.php-orig 2003-03-29 07:25:52.000000000 +0100
+++ ldap_utils.php 2003-03-29 07:27:01.000000000 +0100
@@ -12,7 +12,7 @@
$fn = FALSE;
$conn=ldap_connect($_SESSION["ldap_server"],$_SESSION["ldap_port"]);
if ($conn) {
- if ((ldap_bind($conn, $_SESSION["php_dn"],$_SESSION["php_pw"]))) {
+ if ((ldap_bind($conn))) {
$result = ldap_search($conn, $_SESSION["base_dn"],
"(&(objectclass=inetOrgPerson)(uid=$uid))");
if ($result) {
@@ -35,7 +35,7 @@
$fn = FALSE;
$conn=ldap_connect($_SESSION["ldap_server"],$_SESSION["ldap_port"]);
if ($conn) {
- if ((ldap_bind($conn, $_SESSION["php_dn"],$_SESSION["php_pw"]))) {
+ if ((ldap_bind($conn))) {
$result = ldap_search($conn, $_SESSION["base_dn"],
"(&(objectclass=inetOrgPerson)(uid=$uid))");
if ($result) {
@@ -55,7 +55,7 @@
$dn = FALSE;
$conn=ldap_connect($_SESSION["ldap_server"],$_SESSION["ldap_port"]);
if ($conn) {
- if ((ldap_bind($conn, $_SESSION["php_dn"],$_SESSION["php_pw"]))) {
+ if ((ldap_bind($conn))) {
$result = ldap_search($conn, $_SESSION["base_dn"],
"(&(objectclass=inetOrgPerson)(uid=$uid))");
if ($result) {
@@ -81,7 +81,7 @@
$group = "user";
$conn=ldap_connect($_SESSION["ldap_server"],$_SESSION["ldap_port"]);
if ($conn) {
- $rc = ldap_bind($conn, $_SESSION["php_dn"],$_SESSION["php_pw"]);
+ $rc = ldap_bind($conn);
if ($rc == TRUE) {
$dn = uid2dn($uid);
if ($dn) {
@@ -105,7 +105,7 @@
$uid = "";
$conn=ldap_connect($_SESSION["ldap_server"],$_SESSION["ldap_port"]);
if ($conn) {
- if ((ldap_bind($conn, $_SESSION["php_dn"],$_SESSION["php_pw"]))) {
+ if ((ldap_bind($conn))) {
$result = ldap_read($conn, $dn, "(objectclass=*)");
if ($result) {
$entry = ldap_first_entry($conn,$result);