From aff7ae08430743398473a8f89bfe7eba1bb225c7 Mon Sep 17 00:00:00 2001 From: rettenbe Date: Mon, 30 Jun 2008 13:20:48 +0000 Subject: [PATCH] * more debug infos to fix bug 495 (no ldap infos for clients which are in more than one object group) * has to be tested at customer system git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11480 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-si/modules/ClientPackages.pm | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/gosa-si/modules/ClientPackages.pm b/gosa-si/modules/ClientPackages.pm index 77cc61880..1a0c71e45 100644 --- a/gosa-si/modules/ClientPackages.pm +++ b/gosa-si/modules/ClientPackages.pm @@ -792,13 +792,13 @@ sub new_ldap_config { filter => "(&(objectClass=gosaGroupOfNames)(member=$dn))"); #$mesg->code && die $mesg->error; if($mesg->code) { - &main::daemon_log("$session_id ".$mesg->error, 1); + &main::daemon_log("$session_id ERROR: unable to search for '(&(objectClass=gosaGroupOfNames)(member=$dn))': ".$mesg->error, 1); return; } # Sanity check if ($mesg->count != 1) { - &main::daemon_log("$session_id WARNING: no LDAP information found for client mac $macaddress", 1); + &main::daemon_log("$session_id WARNING: no or more via an object class inherited LDAP information found for client mac $macaddress", 1); return; } @@ -816,6 +816,11 @@ sub new_ldap_config { @servers= sort (@servers); + # complain if no ldap information found + if (@servers == 0) { + &main::daemon_log("$session_id ERROR: no gotoLdapServer information for LDAP entry with filter '(&(objectClass=gosaGroupOfNames)(member=$dn))'"); + } + foreach $server (@servers){ # Conversation for backward compatibility if (not $server =~ /^\d+:[^:]+:ldap[^:]*:\/\// ) { -- 2.30.2