[Kroupware] could not bind anonymously -- error

Stephan Buys kroupware@mail.kde.org
Sun, 30 Mar 2003 09:23:27 +0200


Hi Holger,

The way I fixed it was to assure that the password for "nobody" in=20
LDAP was indeed the ones in the file /kolab/etc/kolab/kolab.conf file (php_=
pw).=20
I found that somehow these passwords became out of sync...

You can use the OpenLDAP binaries to change the password or the=20
easy way is to get yourself a copy of LDAPbrowser=20
(http://www.iit.edu/~gawojar/ldap) which supports LDAP password changes=20
natively.

Regards,
Stephan




On Saturday 29 March 2003 09:18, Holger Schr=F6der wrote:
> 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 logg=
ed
> 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 =3D FALSE;
>     $conn=3Dldap_connect($_SESSION["ldap_server"],$_SESSION["ldap_port"]);
>     if ($conn) {
> -      if ((ldap_bind($conn, $_SESSION["php_dn"],$_SESSION["php_pw"]))) {
> +      if ((ldap_bind($conn))) {
>            $result =3D ldap_search($conn, $_SESSION["base_dn"],
>                  "(&(objectclass=3DinetOrgPerson)(uid=3D$uid))");
>            if ($result) {
> @@ -35,7 +35,7 @@
>     $fn =3D FALSE;
>     $conn=3Dldap_connect($_SESSION["ldap_server"],$_SESSION["ldap_port"]);
>     if ($conn) {
> -      if ((ldap_bind($conn, $_SESSION["php_dn"],$_SESSION["php_pw"]))) {
> +      if ((ldap_bind($conn))) {
>            $result =3D ldap_search($conn, $_SESSION["base_dn"],
>                  "(&(objectclass=3DinetOrgPerson)(uid=3D$uid))");
>            if ($result) {
> @@ -55,7 +55,7 @@
>     $dn =3D FALSE;
>     $conn=3Dldap_connect($_SESSION["ldap_server"],$_SESSION["ldap_port"]);
>     if ($conn) {
> -      if ((ldap_bind($conn, $_SESSION["php_dn"],$_SESSION["php_pw"]))) {
> +      if ((ldap_bind($conn))) {
>            $result =3D ldap_search($conn, $_SESSION["base_dn"],
>                  "(&(objectclass=3DinetOrgPerson)(uid=3D$uid))");
>            if ($result) {
> @@ -81,7 +81,7 @@
>     $group =3D "user";
>     $conn=3Dldap_connect($_SESSION["ldap_server"],$_SESSION["ldap_port"]);
>     if ($conn) {
> -      $rc =3D ldap_bind($conn, $_SESSION["php_dn"],$_SESSION["php_pw"]);
> +      $rc =3D ldap_bind($conn);
>        if ($rc =3D=3D TRUE) {
>            $dn =3D uid2dn($uid);
>  	  if ($dn) {
> @@ -105,7 +105,7 @@
>     $uid =3D "";
>     $conn=3Dldap_connect($_SESSION["ldap_server"],$_SESSION["ldap_port"]);
>     if ($conn) {
> -      if ((ldap_bind($conn, $_SESSION["php_dn"],$_SESSION["php_pw"]))) {
> +      if ((ldap_bind($conn))) {
>            $result =3D ldap_read($conn, $dn, "(objectclass=3D*)");
>            if ($result) {
>               $entry =3D ldap_first_entry($conn,$result);
>
> _______________________________________________
> Kroupware mailing list
> Kroupware@mail.kde.org
> http://mail.kde.org/mailman/listinfo/kroupware